<html> <head><script language="javascript1.2"> <!-- //checking to see if user has NS or IE IE = (document.all)?1:0 NS = (document.layers)?1:0 if(navigator.appVersion.charAt(0)< 4){ alert("sorry your browser isn't able to read this page") history.go(-1) } var SportsTeams = "Buffalo Bills, San Fransisco Giants, Chicago Bulls, Buffalo Sabres" var MusicGroups = "Rolling Stones, Beastie Boys, Led Zeppelin, Nirvana, Pink Floyd" var Beverages = "Jack and Coke, Corona, Newcastle, Brass Monkey, Gin and Juice, Snapple, Slurpees" function createBox(x){ var category = new Array() category = eval(x.menu.options[x.menu.selectedIndex].value).split(",") var temp = '<form><select name = "menu2"><option>' for(y = 0;y<category.length;y++){ temp += '<option value =' + category[y] + '>' + category[y] } temp +='</select></form>' if(IE){newBox.innerHTML=(temp)} else if(NS){ document.newBox.document.write(temp) document.newBox.document.close() } } //--> </script> <title>New Page 18</title> </head> <body> <form> <p><select name="menu" onChange="createBox(this.form)" size="1"> <option> </option> <option value="SportsTeams">Best Teams </option> <option value="MusicGroups">Best Music </option> <option value="Beverages">Best Drinks </option> </select> </p> </form> <div id="newBox" style="position:absolute; top:200;"></div> </body> </html>

1998 Copyright (C) Next Step All Rights Reserved