...

View Full Version : OnChange problem



Taylor_1978
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;
}
?>
</select>
<img src='http://www.ysuperleague.com/system/images/avatar/1.gif' name='avatar' id='avatar' alt='' />

Thanks in advance :thumbsup:
Taylor

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum