开发者

jQuery not working on this page in any browser. I can't figure out why!

http://www.fireviews.com/testing/tabs_and_toggles.html

The buttons with + signs are supposed to be drop-down toggles, and the mini-tabs below them should function as tabs. And at the bottom, the sample images should load (not just the spinning loader) and when clicked they should magnify the image, not go to another page. Also the magnifying glass in the t开发者_如何学运维op right should pop up a search bar when moused over. But none of this is working!

I think it may have something to do with the directory the js files are in (as I had to move them from their original location) but I thought I changed all the paths properly.

Can anyone help me identify where the errors/problems are?


You need to use debugging tools that will reveal JavaScript errors to you. Just by opening your page in Firefox, I get:

Error: jQuery("a[rel^='prettyPhoto'], a[rel^='lightbox']").prettyPhoto is not a function
Source File: http://www.fireviews.com/design/js/custom.js
Line: 239

And if I look at your JavaScript files, I see that http://www.fireviews.com/design/js/prettyPhoto//design/js/jquery.prettyPhoto.js is not actually JavaScript. That's your problem.

See: What is a good Javascript debugging tool?


Your prettyphoto.js is actually a HTML file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜