| View previous topic :: View next topic |
| Author |
Message |
jessewenger
Joined: 27 Nov 2008
Posts: 4
|
| Posted: Thu Nov 27, 2008 12:12 pm "onMouseOver" I want to put two commands there |
|
|
I want to put a rollover sound as well as a rollover image, how do I separate the two commands so it does BOTH? do I put ANOTHER "onMouseOver" or can I separate them with a comma, or a semicolon, or something else?
this is what I currently have, and it is not working
<a href="http://www.heritagechristiancenter.net/hartenbower/index.html"
onMouseOut="MM_swapImgRestore()"
onMouseOver= "soundOne()", "MM_swapImage('home','','images/home1.jpg',1)" onMouseDown="MM_swapImage('home','','images/home3.jpg',1)">
this is the idea I am using behind the sound rollover
http://www.htmlcodetutorial.com/help/ftopic4572.html
but it is not working at all, even when I include the javascript right on the page (like I have already done) but the post was four years ago - I am not sure if that has anything to do with it.
I am basically trying to copy the layout idea of www.pixar.com home page
ALSO - when I open my page with FireFox, I have blue rectangles around my links. I dont have that on safari, or internet explorer - how do I get rid of them?!
the page that I am working on is:
http://heritagechristiancenter.net/hartenbower/index2.html
thanks in advance!! |
|
|
Straystudio
Joined: 14 Apr 2008
Posts: 297
Location: Nord Italy
|
| Posted: Thu Nov 27, 2008 1:39 pm |
|
|
onMouseOver= "soundOne()", "MM_swapImage('home','','images/home1.jpg',1)"
into
onMouseOver="soundOne(); MM_swapImage('home', ' ', 'images/home1.jpg', 1);"
1 or '1'
Keep unbroken executable string:
function soundOne() {
document.all.sound1.src ="/sounds/button.au"
}
document.getElementById("sound1") likely would be a good replacement, though. |
|
|
| |
|
|
|