Page 1 of 1

JavaScript Help!

Posted: Mon Mar 24, 2008 6:39 pm
by RhapX
Hello,

Basically I want to create a little JavaScript "player" that when a user clicks on the buttons labeled 1-6, it will display a different image in the same location. So if I click 2, the default (1) would be then be hidden.

Any help is appreciated!

Thanks,
Jake

Re: JavaScript Help!

Posted: Mon Mar 24, 2008 8:36 pm
by Christopher
Have the script set the "src" property of the <img> tag to the URL for the image associated with each button.

Re: JavaScript Help!

Posted: Mon Mar 24, 2008 8:46 pm
by RhapX
I will try that.

Thanks!