vonkoba
04-28-2008, 01:36 PM
Hi guys,
I've seen some threads where people has had issues using onmouseover in firefox, so i'm sorry if i may be repeating one of those, but I cannot figure it out. I used Dreamweaver 8 to play a sound when the cursor moves to an image, and it works fine on IE7 but not in Firefox. Basically I just draw a rectangle and tell Dreamweaver to play the sound when the mouse is over that rectangle. This is the code
<area shape="rect" coords="109,7,265,106" href="#" onMouseOver="MM_controlSound('play','document.CS1209139293671','tv.mp3')">
</map>
<EMBED NAME='CS1209139293671' SRC='tv.mp3' LOOP=false
AUTOSTART=false MASTERSOUND HIDDEN=true WIDTH=0 HEIGHT=0></EMBED>
</body>
</html>
A second problem I have deals with the Rollover image. I also do this in Dreamweaver (I create a layer, and over that layer put the images to be swapped). When I open this on IE7 it looks the same way it looks on Dreamweaver, and it works fine, but when I do it in Firefox the images are not in place, they just fall somewhere else in the picture :mad: I mean, the images do swap in firefox (they change from one to the other when the mouse is over them as they are supposed to) but the images themselves are not where I want them to be, they are off by an inch or two :(
Any help would be appreciated! Thanks guys
Oh, and here's the code for when I try to do that:
<body bgcolor="#000000" onLoad="MM_preloadImages('tv cropped.jpg')">
<embed hidden=true loop=true src="transistor.mp3"
type="video/quicktime">
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','tv cropped.jpg',1)"></a><img src="subte%20byn.jpg" width="1000" height="600" align="middle" id="Image1">
<div id="Layer1"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','tv cropped.jpg',1)"><img src="tv cropped black.jpg" name="Image3" width="166" height="101" border="0" onMouseOver="MM_controlSound('play','document.CS1209385111640','tv.mp3')"></a></div>
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','tv cropped.jpg',1)"></a>
<EMBED NAME='CS1209385111640' SRC='tv.mp3' LOOP=false
AUTOSTART=false MASTERSOUND HIDDEN=true WIDTH=0 HEIGHT=0></EMBED>
</body>
</html>
I've seen some threads where people has had issues using onmouseover in firefox, so i'm sorry if i may be repeating one of those, but I cannot figure it out. I used Dreamweaver 8 to play a sound when the cursor moves to an image, and it works fine on IE7 but not in Firefox. Basically I just draw a rectangle and tell Dreamweaver to play the sound when the mouse is over that rectangle. This is the code
<area shape="rect" coords="109,7,265,106" href="#" onMouseOver="MM_controlSound('play','document.CS1209139293671','tv.mp3')">
</map>
<EMBED NAME='CS1209139293671' SRC='tv.mp3' LOOP=false
AUTOSTART=false MASTERSOUND HIDDEN=true WIDTH=0 HEIGHT=0></EMBED>
</body>
</html>
A second problem I have deals with the Rollover image. I also do this in Dreamweaver (I create a layer, and over that layer put the images to be swapped). When I open this on IE7 it looks the same way it looks on Dreamweaver, and it works fine, but when I do it in Firefox the images are not in place, they just fall somewhere else in the picture :mad: I mean, the images do swap in firefox (they change from one to the other when the mouse is over them as they are supposed to) but the images themselves are not where I want them to be, they are off by an inch or two :(
Any help would be appreciated! Thanks guys
Oh, and here's the code for when I try to do that:
<body bgcolor="#000000" onLoad="MM_preloadImages('tv cropped.jpg')">
<embed hidden=true loop=true src="transistor.mp3"
type="video/quicktime">
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','tv cropped.jpg',1)"></a><img src="subte%20byn.jpg" width="1000" height="600" align="middle" id="Image1">
<div id="Layer1"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','tv cropped.jpg',1)"><img src="tv cropped black.jpg" name="Image3" width="166" height="101" border="0" onMouseOver="MM_controlSound('play','document.CS1209385111640','tv.mp3')"></a></div>
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','tv cropped.jpg',1)"></a>
<EMBED NAME='CS1209385111640' SRC='tv.mp3' LOOP=false
AUTOSTART=false MASTERSOUND HIDDEN=true WIDTH=0 HEIGHT=0></EMBED>
</body>
</html>