Results 1 to 7 of 7

Thread: Links not working

  1. #1
    Join Date
    Apr 2010
    Posts
    23
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Unhappy Links not working

    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

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    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.

  3. #3
    Join Date
    Aug 2009
    Location
    utf-8
    Posts
    205
    Thanks
    4
    Thanked 7 Times in 7 Posts

    Default

    Try
    Code:
    javascript: void(0);

  4. #4
    Join Date
    Apr 2010
    Posts
    23
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    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);"?

  5. #5
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    in place of the # in the hrefs

  6. #6
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    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
    Corrections to my coding/thoughts welcome.

  7. #7
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •