[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 08-08-2005, 11:08 AM   #1 (permalink)
New Member
 
Join Date: Aug 2005
Posts: 4
6.00 NP$ (Donate)

Kenny Bania is an unknown quantity at this point


how to delay a pull-down menu in DW

hi.

i'm not an advanced web guy, and i know very little about coding.
but anyways...


i want to put a slight delay on a pull-down in dreamweaver using javascript. i've been able to do so successfully by using:

onMouseOver="MM_showHideLayers('blah','','blah','' ,'blah')" in the body and

function hideIt() {
timer=setTimeout("MM_showHideLayers('blah','','bla h','','blah')",1000);
}

in the head


the problem is that if i (or a visitor) scrolls past the menu bar to get to the top or bottom of the page, the corresponding drop down menu will pull down, even though that's not what the viewer wants.
what i want is so that it only comes down after the mouse has been _idle_ on it for 1000 milliseconds. this way, you will able to scroll the mouse past the menu and not have this menu popping up unannounced.

do you guys understand?
and i would rather not use the onClick="MM_showHideLayers"


any insight would be greatly appreciated.
Kenny Bania is offline  
Old 08-08-2005, 11:59 AM   #2 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Can you link us up to a sample page where we can see the script?
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 08-08-2005, 01:25 PM   #3 (permalink)
NamePros Member
 
whyme953's Avatar
 
Join Date: Jun 2004
Posts: 92
183.00 NP$ (Donate)

whyme953 is an unknown quantity at this point


if you make a dropdown menu in fireworks you can set the delay time. (i havent done it in quite a while so i dont remember exactly how) if you have fireworks make one there and just copy the code

its very likely that dreamweaver gives you that option also by the behavior properties
__________________
Bais Menachem
whyme953 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
This may be the right place to post this...Here's a nice article I thought I'd share. Eric Website Development 3 04-11-2005 07:24 PM
Worthwile Menu Building Software? TheAllusionist Web Design Discussion 0 02-11-2004 02:45 PM
Simple JavaScript pull down quick menu deadserious CODE 2 02-03-2004 11:49 PM
inserting dhtml menu knightthrone Programming 9 11-24-2003 11:46 AM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 04:07 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85