View Full Version : OnChange problem

01-13-2004, 11:19 AM
Okay - bare in mind I know very little about JavaScript - can someone tell me what I am doing wrong? Basically I want the picture to change upon selecting a different option. (This also has PHP in it but would not effect the JavaScript in anyway.)

<select size='1' onChange='showImgSelected("avatar", "avatar", "avatar", "", "http://www.ysuperleague.com/system/images/")' name='avatar' id='avatar'>

$count = 1;
while ($count < 151) {

echo "<option value='$count.gif'># $count</option>";
$count = $count + 1;
<img src='http://www.ysuperleague.com/system/images/avatar/1.gif' name='avatar' id='avatar' alt='' />

Thanks in advance :thumbsup:

01-13-2004, 02:09 PM
we don't see the function you are firing onChange... Where's the function showImgSelected ()?