|
-
Jul 10th, 2001, 06:26 AM
#1
Thread Starter
Hyperactive Member
Possible???
Hello,
I want to change an image which I have on my page everytime a different
select box is clicked!!
IE. I have 2 select boxes. One called "Red" and the other "BLUE".
When the user clicks on "RED" - red.gif is loaded and shown, when the
user clicks on "BLUE" - blue.gif is loaded and shown.
This is just an idea I have - can it be done?? Can it be done without
having to RELOAD the page??
Thanks,
T
-
Jul 10th, 2001, 07:32 AM
#2
Frenzied Member
yes,
<img src="whatever.gif" name="toBeChange">
<input type="button" value="change" onClick="change('red');">
function change(color){
toBeChange.src=color + '.gif';
}
-
Jul 10th, 2001, 03:32 PM
#3
Thread Starter
Hyperactive Member
HECK!!!!
Heck, that was easy!!!!!!!! Thanks sebs.
I REALY(!!!!) do not know what I would have done without YOU guys AND this forum.
Thank you very much all.
T
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|