Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Attaching sound to buttons ect?


Tubbing

Recommended Posts

Posted

Hi everyone, Im just messing around trying to have fun with building my website, and wanted to learn how to attach a sound to buttons, or drop down menu motions and such. Any search on the fourms ive tried bring up 10001 fourm topics starting off with "this might sound stupid" so I couldnt find the answer :(. Thanks for any help given.

 

Regards

 

Tubz

Posted

You might be better off asking on a HTML type forum. You want an action on mouse over or click and that is generally javascript or something.

Posted

I've done this before.

 

Like Kym said, you have to download the sound you want to play, then you attach a Javascript "OnClick" event to the button that plays the sound. I think that's how it worked.

 

I can't get to the source code at the moment, but when I can (later today) I'll post it (if I still have it).

 

Or you can probably find examples on Google somewhere.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...