script: Chrome CSS Drop Down Menu
http://dynamicdrive.com/dynamicindex1/chrome/index.htm
can anyone tell me how to add delay to the dropdown menu onShow?
i will really appriciate it.
by the way, this is a great script!
script: Chrome CSS Drop Down Menu
http://dynamicdrive.com/dynamicindex1/chrome/index.htm
can anyone tell me how to add delay to the dropdown menu onShow?
i will really appriciate it.
by the way, this is a great script!
Last edited by adrianv; 04-09-2006 at 02:40 PM.
where 50 is the delay in milliseconds. I can't be more specific than that unless you Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question. or PLEASE: Include the URL to your problematic webpage that you want help with.Code:window.timeout("original code goes here, remember to escape quotes", 50);
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
script: Chrome CSS Drop Down Menu
http://dynamicdrive.com/dynamicindex1/chrome/index.htm
I could not figure out where in the .js file to insert the delay.
could you please show me?
Put it in the HTML file:If you need to do it with other menus too, change "ce" to something else. It's a bit ugly, but you need to store a reference to the element and the event for setTimeout().Code:<div id="chromemenu"> <ul> <li><a href="http://www.dynamicdrive.com">Home</a></li> <li><a href="#" onMouseover="document.ce=new Array(this,event);window.setTimeout('cssdropdown.dropit(document.ce[0],document.ce[1],\'dropmenu1\')', 200);">Resources</a></li> <li><a href="#" onMouseover="cssdropdown.dropit(this,event,'dropmenu2')">News</a></li> </ul> </div>
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
and i get a js error: "member not found"
Last edited by adrianv; 04-10-2006 at 06:21 AM.
Using exactly the code above?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
yes, using the exact code, here it is:
Code:<div id="chromemenu"> <ul style="width:100%;"> <li><a href="http://www.domain.com/">aa</a></li> <li><a href="http://www.domain.com/profile.asp">bb</a></li> <li><a href="#" onMouseover="document.ce=new Array(this,event);window.setTimeout('cssdropdown.dropit(document.ce[0],document.ce[1],\'dropmenuArt\')', 200);">xxx</a></li> <li><a href="http://www.domain.com/links.asp">cc</a></li> <li><a href="#" onMouseover="cssdropdown.dropit(this,event,'dropmenuGallery')">cc</a></li> <li><a href="#" onMouseover="cssdropdown.dropit(this,event,'dropmenuTed')">dd</a></li> <li><a href="http://www.domain.com/forum/">ee</a></li> <li><a href="http://www.domain.com/contact.asp">ff</a></li> <li><a href="http://www.domain.com/DUgallery/?gallery=2">gg</a></li> <li><a href="http://www.domain.com/gallery/">hh</a></li> </ul> </div>
still no replay here and i can't figure out the problem...
someone? Twey? ....
Well, I've tested this, and I see no reason it shouldn't work. Sorry. Maybe someone else will have an idea.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks