[thelist] simple Javascript help
Drew Shiel
ashiel at sportsinteraction.com
Fri Nov 1 07:59:01 CST 2002
I will freely admit that I'm no good at all at Javascript. And all the
scripts I can find on the web do something similar, but not the same.
What I need to happen is for the second drop-down (banner size) to appear
when the option in the first dropdown (category) is "banner".
Here's what I have:
<tr>
<td>
<select name="type" OnChange="CheckBanner(this)" >
<option>Type of Promo Tool</option>
<option value="All">All</option>
<option value="Banner">Banner</option>
<option value="Text Link">Text Link</option>
<option value="Web Services">Web
Services</option>
<option value="Web Services">Content</option>
</select>
</td>
<td>
<script language="JavaScript">
<!--
function CheckBanner(Option_List){
var Checkee =
Option_List.options[Options_List.selectedIndex].value;
if (Checkee == "Banner")
document.write ("<select name=size>
<option>Banner Size</option>
<option>60 x 60</option>
<option>120 x 60</option>
<option>180 x 60</option>
</select>");
}
// -->
</script>
</td>
</tr>
Help?
Cheers,
Drew.
Drew Shiel webmaster at swiftpay.com
+353-1-2365705
------------------------------------------------------------------
Swiftpay -- The best way to pay online -- http://www.swiftpay.com
More information about the thelist
mailing list