Results 1 to 3 of 3

Thread: PopIt Menu Compatibility

  1. #1
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PopIt Menu Compatibility

    1) Script Title: Popitmenu

    2) Script URL (on DD): www.dynamicdrive.com/dynamicindex1/popit_dev.htm

    3) Describe problem: I modified the code a little bit so that it popups when I click a link:

    Code:
    echo "<div id=\"News\"><a style='cursor: default;' onMouseDown=\"showmenu(event, $avar, '140', '$p')\" alt=\"Click here for details\">".ucwords($sites[$i])."</a></div>";
    It works perfectly and beautifully in Firefox, but in IE/Opera/Safari it doesn't work. When I click the link, it just opens and closes within half a second.

    The JS file is here: http://www.givememore.co.uk/poop.js

    Anybody know why this would happen?

    Thankyou,
    Ashley

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hi:
    You'll want to:

    1) Change the default onMouseover code to onClick instead:

    Code:
    <a href="#" onClick="showmenu(event,linkset[0]); return false" onMouseout="delayhidemenu()">Webmaster Links</a>
    2) Then, make a small change to the Script itself, by commenting out two lines:

    Code:
    //if (ie5||ns6)
    //document.onclick=hidemenu

  3. #3
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your fast reply
    It's working beautifully now I love you!

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
  •