PDA

View Full Version : PopIt Menu Compatibility



smellynose
01-08-2007, 11:59 PM
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:



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

ddadmin
01-09-2007, 12:32 AM
Hi:
You'll want to:

1) Change the default onMouseover code to onClick instead:


<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:


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

smellynose
01-09-2007, 12:57 AM
Thanks for your fast reply :)
It's working beautifully now :D I love you! :D