473,387 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ypSlideOutMenus issue

I have implemented ypSlideOutMenus
(http://ypslideoutmenus.sourcef*orge....comments.htm*l) on this
yet-to-open-officially site: Women of Substance
(http://www.womenofsubstance.us*/catalog). The drop-down menu is working
fine (only optimized for IE currently) but I need some help as I am
javascript challenged and nothing I've tried has worked.

Currently, the menu is enabled by a mouseover which my client really likes
but which makes the menus drop down whenever the cursor happens to move over
them. My client finally sees this as a potential problem. I'd like to change
to an onclick event but when I've tried that, the menus become very jerky
and weird. I'm hoping someone here can point me in a productive direction
since the script is no longer being supported (I have scoured its forum).

I can't include the code here as it would make the message too long. I'll
email it to anyone who wants to look at it.

Thanks and huge appreciation to all who look at this issue for me.

Anne
Jul 23 '05 #1
2 1565

Anne V. Masters <an**********@drum-communications.com> wrote in message news:UB*****************@twister.nyroc.rr.com...
I have implemented ypSlideOutMenus
(http://ypslideoutmenus.sourcef*orge....comments.htm*l) on this
yet-to-open-officially site: Women of Substance
(http://www.womenofsubstance.us*/catalog). The drop-down menu is working
fine (only optimized for IE currently) but I need some help as I am
javascript challenged and nothing I've tried has worked.

Currently, the menu is enabled by a mouseover which my client really likes
but which makes the menus drop down whenever the cursor happens to move over
them. My client finally sees this as a potential problem. I'd like to change
to an onclick event but when I've tried that, the menus become very jerky
and weird. I'm hoping someone here can point me in a productive direction
since the script is no longer being supported (I have scoured its forum).

I can't include the code here as it would make the message too long. I'll
email it to anyone who wants to look at it.

Thanks and huge appreciation to all who look at this issue for me.

Anne

I think the simplest fix is to implement a delay to the function call after the mouseover, which can be cancelled by a
mouseout event. This would require the cursor to remain over a link for half a second before the associated menu
appeared.

To save retyping all the existing calls, add the code below either into the head section of the page containing the
menus, or add it to the .js file (without the <script> tags).
Then in your html, perform a global search and replace on the exact text as shown below.

Replace
ypSlideOutMenu.showMenu
with
delayMenu

Replace
ypSlideOutMenu.hideMenu
with
cancelDelay

<script type='text/javascript'>
ypMenuTimer=null;

function delayMenu( id )
{
ypMenuTimer=setTimeout("ypSlideOutMenu.showMenu('" +id+"')", 500 );
}
function cancelDelay( id )
{
clearTimeout( ypMenuTimer );
ypSlideOutMenu.hideMenu( id );
}
</script>
--
Stephen Chalmers http://makeashorterlink.com/?H3E82245A

Jul 23 '05 #2
Thanks Stephen,

It worked. I may fiddle with the timing depending on response.

Much, much appreciation,

Anne

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul Mateer | last post by:
Hi, I have been running some queries against a table in a my database and have noted an odd (at least it seems odd to me) performance issue. The table has approximately 5 million rows and...
7
by: George Hester | last post by:
Please take a look at this google artcle: http://groups.google.com/groups?hl=en&lr=&frame=right&th=55d6f4b50f5f9382&seekm=411f370d%241%40olaf.komtel.net#link9 The op was having trouble with...
2
by: Anthony Cuttitta Jr. | last post by:
We have an application that outputs several different graphs from data downloaded from our AS400. The application has worked without (this) issue for several months now, but just recently, the...
0
by: Kevin Spencer | last post by:
Hi all, I am working on a service that uploads METAR weather information to the National Weather Service FTP site. The service I'm authoring is hosted on a Windows 200 server, and the NWS FTP...
2
by: Ben Rush | last post by:
Hello World, Okay, I have spent the day browsing the newsgroups and reading up on article after article concerning ViewState corruption and so forth, and I have a couple questions. We...
5
by: Robert | last post by:
I have a series of web applications (configured as separate applications) on a server. There is a main application at the root and then several virtual directories that are independant...
0
by: Charles Leonard | last post by:
I am having yet another issue with Windows Server 2003. This time, the web service (a file import web service) appears to run except for one odd message: "ActiveX component can't create object". ...
4
by: Paul | last post by:
Hi, I've been struggling with this today, I'm developing a DotNet2.0 website in C# that needs to call a long running data query. Obviously this is a good candidate for an Asynchronous call, so...
13
by: SAL | last post by:
Hello, I'm trying to include a popup in the ItemTemplate of a gridview row. The ItemTemplate for the field contains a textbox and when the user clicks in the textbox I want a popup panel to show...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.