Click to See Complete Forum and Search --> : Dual functions in Javascript


WriteWorks
04-24-2003, 07:10 AM
I am a newbie to jscript and I am having problems getting dual functionality in jscript. For example, I want to have a link display a tooltip AND play a sound ( for example, DING.wav)on a mouseover event. Currently, I can get the tool-tip portion but not the sound. I am using two separate scripts, one for the tool-tip and one for the sound. I've tried several different ways in the onmouseover event to get both working, but have not been successful, probably due to my lack of knowledge. Any help would be appreciated?

requestcode
04-24-2003, 07:17 AM
You can perform two functions with the onMouseOver event by separating them with a semicolon like this:
onMouseOver="func1();func2()"

It is also possible that one function is canceling out the other.

Padrill
04-24-2003, 07:19 AM
Could you please paste the code here?