I need for both changes to occur when 1 item is selected in dropdown.
This code changes the textarea ...
<body>
<form name="WNBA">
<textarea name="ladies" cols="35"> The WNBA selected team is: </textarea><br>
<select name = "novelties"
style = "background:'yellow' "
onchange= "
document.WNBA.ladies.value=
'The WNBA selected team is: '+ document.WNBA.novelties.value ;
"
>
<option value=""> The WNBA selected team is: </option>
<option value = "Charlotte" >Charlotte_Sting</option>
<option value = "Cleveland" >Cleveland_Rockers</option>
<option value = "Connecticut" >Connecticut_Sun</option>
</select>
</form>
</body>
This code changes the picture...
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>WNBAteams</title>
<script>
function change_gif (val)
{
document.TL_name.src = document.WNBA.TeamInfo.value ;
}
</script>
</head>
<body>
<table border="3" width="9%" height="99" bordercolor="#0000FF"
id="TeamStuff" cellpadding=0>
<tr >
<td align=center width="71" >
<img width="60" height="80" name=TL_name alt="TeamLogo"
src="TL_Door.gif"
</td>
</tr>
</table>
<form name="WNBA">
<textarea name="teams" cols="34"> The selected team is: </textarea><br>
<select name="TeamInfo" size=1
style="background:'yellow'"
style="font-size:'28'"
onchange="change_gif(value);">
<option value=" "> Select a WNBA team
<option value="TLCharlotte.gif ">Charlotte
<option value="TLCleveland.gif ">Cleveland
<option value="TLConnecticut.gif ">Connecticut
</select>
<br><br>
</form>
</body>
</html>




Bookmarks