View Full Version : Links not working
jickpictures
07-29-2010, 08:57 AM
Hey,
A lot of the links are not working on my website where I have a simple jquery drop down menu which I replaced with css image buttons. For someone reason, my browser detects the links but will not go to that page when clicked, like something is blocking it. Can anyone tell me what's wrong with my code? Links are only not working in the drop down menus that are labeled "Extras" and "Watch More". My website is below:
http://www.jickpictures.com/preview
-Thank you for the help
Beverleyh
07-29-2010, 11:12 AM
You dont have any pages/links/urls specified the in the hrefs - they're all href="#"
Replace the #'s with appropriate page addresses and they should work.
FrickenTrevor
07-29-2010, 06:48 PM
Try
javascript: void(0);
jickpictures
07-29-2010, 07:15 PM
Even if the links are specified to go to '#" they should still go to "#" on that page. But they don't. I tested it with an actual URL but that doesn't work either.
Where do I insert "javascript: void(0);"?
Beverleyh
07-29-2010, 08:07 PM
in place of the # in the hrefs
bluewalrus
07-29-2010, 08:21 PM
or use the anchor links appropriately and give them names and then place them in the html.
http://www.w3.org/TR/html401/struct/links.html
Beverleyh
07-29-2010, 08:28 PM
OK - now I've had chance to have a proper look, there are a few conflicting factors that are probably affecting your website.
1 - You appear to be linked to 2 different versions of jQuery in your head section; the correctly named jquery-1.4.2.min.js and also version 1.3.2 which has been renamed "dropdown.js" - Possibly because its a script that you've borrowed from somebody elses site and they renamed it, and you didnt realise it was actually an earlier version of jquery.before including it in your own. Either way, the conflict is probably not helping matters so remove "dropdown.js".
2 - You have a few instances of the $(document).ready(function () { call to each jQuery powered effect. You should combine all your code effects into one call.
3 - Put the page addresses in the anchor tag hrefs in place of the #'s to see if that now makes a difference.
Hopefully these changes will have a positive result.
Let us know the outcome once your revised your code.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.