Could anyone tell me what would be the code for this effect please.

I want the code for a button effect

The button is for a graphic button, on clicking it it changes its graphic to an ('on' image), plays a sound effect, then changes graphic to the first image('off' image), then it goes to a link.

Files would be

Images/offbutton.jpg
Images/onbutton.jpg
sound/buttonclick.wav

Thank you for any help given.

5 pages deep in Google and not what I want it to do to be found, google does not give the answer.
Very simple things are often not to be found, people presume its common knowledge, and these things are often overlooked.

just sick of people not making any attempt,
now post the code you have worked out for assistance

I looked 5 pages in, that's 50 web sites, ranked at most viable, so the further back we go the less relevance. Often simple pieces of code are not found on the net, in the same way one cannot google on how to ride a bike, one is presumed to know. I do not, so I ask help from those willing to help. I myself do the same thing in areas I specialise in, and is part of being in and participating in a community.

'looking' is not an attempt,

this community has rules, RTFM

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.