<!-- DROP-DOWN MENU WITH EXPLANATORY TEXT --> <!-- This goes into the HEAD of the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2001, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- var message=new Array(); message[0] = "When you select any links from the above menu their corresponding explanatory content will automatically be shown in this textarea. By clicking the 'Go' button you will be taken straight to the chosen link!" message[1] = "For some free and useful scripts that have been created keeping in mind their usability, practicability, and compatibility. Be sure to check them all!" message[2] = "The free complete web development resource center. The one place to go for all your web designing needs and for some very useful freeware programs and links to some of the best available web resources!" message[3] = "The best place to go for some very useful free DHTML scripts to enhance your web pages. Also including features such as a new forum, newsletter, feedback form, and more." function chooseText() { if (document.dpdw.choice.selectedIndex==0) { document.dpdw.text.value=message[0]; } if (document.dpdw.choice.selectedIndex==1) { document.dpdw.text.value=message[1]; } if (document.dpdw.choice.selectedIndex==2) { document.dpdw.text.value=message[2]; } if (document.dpdw.choice.selectedIndex==3) { document.dpdw.text.value=message[3]; } } function gotoURL() { if (document.dpdw.choice.selectedIndex==0) { return; } if (document.dpdw.choice.selectedIndex==1) { location.href="index.html"; } if (document.dpdw.choice.selectedIndex==2) { location.href="http://www.designerwiz.com/"; } if (document.dpdw.choice.selectedIndex==3) { location.href="http://www.dynamicdrive.com/"; } } //--> </script> <!-- Note the script in the "body" tag --> <body onLoad="document.dpdw.text.value=message[0];"> <!-- This goes into the BODY of the html file --> <table> <tr> <td> <form name="dpdw"> <select name="choice" onChange=chooseText()> <option selected value=0>Select from the following .... &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option> <option value=1>Sandeep's JavaScript Page</option> <option value=2>DesignerWiz</option> <option value=3>Dynamic Drive</option> </select> <input type="button" value="Go!" onClick="gotoURL();" /><br /> <textarea name="text" rows="6" cols="40" wrap="virtual"></textarea> </form> </td> </tr> </table>