JavaScript Help!

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
RhapX
Forum Commoner
Posts: 30
Joined: Mon Dec 05, 2005 5:24 pm
Location: Seattle, Washington

JavaScript Help!

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: JavaScript Help!

Post by Christopher »

Have the script set the "src" property of the <img> tag to the URL for the image associated with each button.
(#10850)
RhapX
Forum Commoner
Posts: 30
Joined: Mon Dec 05, 2005 5:24 pm
Location: Seattle, Washington

Re: JavaScript Help!

Post by RhapX »

I will try that.

Thanks!
Post Reply