July 11, 200818 yr *** EDIT *** to make this post easier, what would be the best way to get a mouse over image change and a sound play at the same time? *** EDIT *** Old post:- ive got the code i need to play the sound... onMouseOver="playSound(0)" onMouseOut="stopSound(0)" and this is what my link currently looks like, how do i get the mouse over to change picture, and play the sound?? <a onmouseover="var img=document['fpAnimswapImgFP6'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img.src;" onmouseout="document['fpAnimswapImgFP6'].src=document['fpAnimswapImgFP6'].imgRolln" href="welcome.htm"> <img border="0" src="welcome.gif" width="121" height="54" id="fpAnimswapImgFP6" name="fpAnimswapImgFP6" dynamicanimation="fpAnimswapImgFP6" lowsrc="welcome%20up.gif"></a></p> Thanks for your help Neil
July 11, 200818 yr onMouseOver="playSound(0)" onMouseOut="stopSound(0)" this is actionscript isn't it?? this is to be used in flash and wont work with standard html in my knowlege. i might be wrong though, but im sure its actionscript to do a role over in html you can use an image change using CSS, something like the corgi logo in the banner here www.villagebathroom.co.uk which is done like this http://www.tutorio.com/tutorial/pure-css-image-rollovers/ you can even use java if you wish, google java image rollover
July 11, 200818 yr Author this is actionscript isn't it?? this is to be used in flash and wont work with standard html in my knowlege. i might be wrong though, but im sure its actionscript to do a role over in html you can use an image change using CSS, something like the corgi logo in the banner here www.villagebathroom.co.uk which is done like this http://www.tutorio.com/tutorial/pure-css-image-rollovers/ you can even use java if you wish, google java image rollover yeah it might be action script, i got it from *here*, thanks for your css info, but it doesnt show anything for sound, and im using front page to do most of the site. to make it easier, what would be the best way to get a mouse over image change and a sound play at the same time?
July 14, 200818 yr you will have to learn flash and make the button and add the flash to your html pages is the easiest way IMO
July 14, 200818 yr That code is javascript, although it would probably be better to do it in Flash. But the best thing would be to not annoy your users with stupid sounds when they move over a button unless it is absolutely necessary.
Create an account or sign in to comment