TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

drop down image swap

Page: 1 Reply
Apr 18th 2003#100310 Report
Member since: Feb 14th 2002
Posts: 619
is there a way to take a drop down menu and when the item is selected it will automactically switch the picture above..
sorry if this doesnt make send its still early for me..
here is what i mean.

http://store.yahoo.com/hockeygiant/nexfluidseni.html

is there a way to take that drop down menu and when the people select a diff color it will switch the pic above it to show the color they selected..

will i need 2 submit buttons for that? or is there a way where if they just click it on the drop down it will show it?
Reply with Quote Reply
Apr 20th 2003#100475 Report
Member since: Feb 14th 2002
Posts: 619
noone? aww come on ladies help a brother out
Reply with Quote Reply
Apr 20th 2003#100479 Report
Member since: Mar 24th 2002
Posts: 3114
it's possible..
I'm a bit easter-ish right now.. (read: drunk)
but use the "onChange" thing on the select tag, and call for a function that changes the picture.

the function would look something like this:
[PHP]

function changePantsTo(color){
setTimeout("document.pants.src='pants_pics/pants_"+color+".gif'",0)
}

[/PHP]

I know it shouldn't need a setTimeout, but I've yet to discover how to insert the variables into a string of script like that... -__-

the onChange would be something like
< select name='pantycolors' onChange=changePantsTo('red')>

I don't know if that makes any sense, but...yeah. :p
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum