Results 1 to 9 of 9

Thread: Chrome CSS Drop Down Menu

  1. #1
    Join Date
    Apr 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Chrome CSS Drop Down Menu

    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.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    window.timeout("original code goes here, remember to escape quotes", 50);
    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.
    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!

  3. #3
    Join Date
    Apr 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default corrected post

    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?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Put it in the HTML file:
    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>
    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().
    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!

  5. #5
    Join Date
    Apr 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy thanks for the replay, still no go

    and i get a js error: "member not found"
    Last edited by adrianv; 04-10-2006 at 06:21 AM.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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!

  7. #7
    Join Date
    Apr 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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>

  8. #8
    Join Date
    Apr 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default got back working on it

    still no replay here and i can't figure out the problem...

    someone? Twey? ....

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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

Posting Permissions

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