PakiGangsta Posted January 16, 2007 Share Posted January 16, 2007 Alright I am trying to do thi[code]<form action='mywebpage.php' method='POST'><select name='bird'><option value='bigbird'>BigBird</option><option value='medium'>Medium Bird</option><option value='smallbird'>Small Bird</option></select></form><img src='img/bird/bigbird.gif'>[/code]I am wondering how can i use javascript to change that image on the bottom when i choose smallbird or back to bigbird Quote Link to comment Share on other sites More sharing options...
kobmat Posted January 16, 2007 Share Posted January 16, 2007 try<select name='bird' onchange="document.getElementById('birdimage').src='img/bird/' + this.value + '.gif';"><option value='bigbird'>BigBird</option><option value='medium'>Medium Bird</option><option value='smallbird'>Small Bird</option></select></form><img src='img/bird/bigbird.gif' id="birdimage"> Quote Link to comment Share on other sites More sharing options...
PakiGangsta Posted January 16, 2007 Author Share Posted January 16, 2007 I tried but it just stays the samehttp://tpba.byethost9.com/signup1.php Quote Link to comment Share on other sites More sharing options...
kobmat Posted January 16, 2007 Share Posted January 16, 2007 it seem to be working from here.. Quote Link to comment Share on other sites More sharing options...
PakiGangsta Posted January 16, 2007 Author Share Posted January 16, 2007 thank you. but also can i say like if the first one is Age Group Under 8 and second one is 9-17how can i do it when the images change too Quote Link to comment Share on other sites More sharing options...
PakiGangsta Posted January 16, 2007 Author Share Posted January 16, 2007 Never mind i figured it outTopic is solved[i][b]fenway: how?[/b][/i] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.