Link not working in site

Discussion in 'HTML & Website Design' started by Notting, Sep 10, 2007.

  1. #1
    I have created a menu system using javascript and css and attached it to a button. However now the button does not take you to the destination page.

    I think this is because the behaviours attached to the button overrule the href.

    http://emigratingexpert.com/emigratingexpertnew/

    (Choose newzealand from the left menu bar, although the menu drops down you cannot click on the button).

    Has anyone got any suggestions on this one?

    Thanks
    Notting
     
    Notting, Sep 10, 2007 IP
  2. Grumps

    Grumps Peon

    Messages:
    592
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
  3. Notting

    Notting Notable Member

    Messages:
    3,210
    Likes Received:
    335
    Best Answers:
    0
    Trophy Points:
    280
    #3
    Notting, Sep 10, 2007 IP
  4. Rasczak

    Rasczak Peon

    Messages:
    131
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Simply try moving the linking script from A to IMG ;-)

    like this:

    
    <img src="..." [B]onclick="document.location.href='linked_page.htm'"[/B] alt="..." />
    
    Code (markup):
    of course you should add a class with "cursor:pointer" - just to be sure - to make the image act as a link (changing cursor to a hand, like A does)
     
    Rasczak, Sep 10, 2007 IP