Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

add mouseover image change and playsound?

Featured Replies

*** 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

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

  • 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?

you will have to learn flash and make the button and add the flash to your html pages is the easiest way IMO

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.