Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2003
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Combining 2JavaScripts with 2Mouseon Events

    Hi,

    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)
    Attached Files Attached Files
    Thanks in advance for any replies! :)

  • #2
    New Coder
    Join Date
    Feb 2003
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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()">
    <tr>
    <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>
    </tr>

    and....
    <tr>
    <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>
    </tr>

    _________________________________

    Neither of which worked
    Thanks in advance for any replies! :)

  • #3
    New Coder
    Join Date
    Feb 2003
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Bumping

    BUMP

    THANKS!
    Thanks in advance for any replies! :)


  •  

    Posting Permissions

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