View Full Version : Combining 2JavaScripts with 2Mouseon Events

10-01-2003, 09:11 PM

I'm trying to "combine" two JavaScripts, each with it's own Mouseover/Mouseout events...

[/b]The first one basically slides out a menu and has this for MouseEvents:[/b]

<td class="txt" onmouseover="changeBG(this,'#ff0000')" onmouseout="changeBG(this,'#0099CC')"><a href="#">home</a></td>

The other one, has this to produce sounds on Mousevents:

<a href="#" onmouseover="playSound(0)" onmouseout="stopSound(1)" onclick="playSound(1)">1MOUSE-OVER THIS LINK TO PLAY SOUND</A>

How can I combine the 2 to make them work both at the same time, wherein as soon as I slide out a menu and mouseover links (both outside and inside) it'll produce the same results? You may want to look at the attached TXT file for the entire script...(btw, the SoundOnMouseOver part doesn't work at all)

10-01-2003, 09:16 PM
Btw, I have made the following "failed" combinations:


<body onload="slideMenuInit()">

<table id="menu" width="180" border="1" cellpadding="3" cellspacing="0" bgcolor="#0099CC" bordercolor="#FFFF00" onmouseover="slideIn()" onmouseout="slideOut()">
<td class="txt" onmouseover="changeBG(this,'#ff0000');playSound(0)" onmouseout="changeBG(this,'#0099CC');playSound(1)" onclick="playSound(2)"><a href="#">home</a></td>
<td rowspan=6 class="txt">M<br/>E<br/>N<br/>U</td>

<td class="txt" onmouseover="changeBG(this,'#ff0000')" onmouseout="changeBG(this,'#0099CC')"><a href="#" onmouseover="playSound(2)" onmouseout="stopSound(3)" onclick="playSound(3)">dhtml scripts</a></td>

Neither of which worked :(

10-04-2003, 09:55 AM
BUMP :thumbsup:


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum