[thelist] simple Javascript help

Tarrant Costelloe taz at insur-e.net
Fri Nov 1 08:14:01 CST 2002


I am sorry but I cannot help you with the JavaScript question, however I
just wanted to complement you on a very nice design.

-----Original Message-----
From: Drew Shiel [mailto:ashiel at sportsinteraction.com]
Sent: 01 November 2002 13:57
To: thelist at lists.evolt.org
Subject: [thelist] simple Javascript help



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

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !



More information about the thelist mailing list