Tip: You can modify some of the code before running
<title> Browser Detection Builder </title> script Description: First step: Add the following code to <pead> area: <script language= "JavaScript" > <!-- function Createcodes (entry) {line= "<script>version=parseint (navigator.appversion); browser= ' other '; if ( navigator.appname== ' Netscape ') {browser= ' NS ' +version} if (navigator.appname== ' Microsoft Internet Explorer ') { Browser= ' Msie ' +version;} if (Navigator.appVersion.indexOf (' Msie 3 ') >0) {browser= ' MSIE3 ';} '; With (Document.detectform) {if (msie3.value!= "") {line=line+ "if" (browser== ' MSIE3 ') {window.location= ' "+msie3.value+" '}";} if (msie4.value!= "") {line=line+ "if" (browser== ' MSIE4 ') {window.location= ' "+msie4.value+" '} ";} if (msie5.value!= "") {line=line+ "if" (browser== ' MSIE5 ') {window.location= ' "+msie5.value+" '} ";} if (ns3.value!= "") {line=line+ "if" (browser== ' NS3 ') {window.location= ' "+ns3.value+" '} ";} if (ns4.value!= "") {line=line+ "if" (browser== ' NS4 ') {window.location= ' "+ns4.value+" '} ";} if (ns5.value!= "") {line=line+ "if" (browser== ' NS5 ') {window.location= ' "+ns5.vaLue+ "'}";} if (other.value!= "") {line=line+ "if" (browser== ' other ') {window.location= ' "+other.value+" '} ";} } line=line+ "</script>" entry.code.value=line; //--> </script> Step Two: Add the following code to the <body> area: <table width= "100%" border= "0" cellspacing= "0" cellpadding= " 0 "align=" CENTER "valign=" Top "> <tr> <td colspan=3 bgcolor=" #6C6C6C "></td> </tr> < Tr> <td height= "3" ></td> <table align= "CENTER" > <tr> <td> <form name= "Detectform" > <table align= "center" > <tr> <t d></td> <td> <div align= "center" > <CENTER&G T <table border= "1" width= "100%" > <tr> <td bgcolor= "#CCCCD D "colspan=" 2 "width=" 100% "> <p> Please enter each connection </td> </tr> <tr align= "center" > <TD bgcolor= "#FFFFFF" colspan=2 align=left> </td> </tr> <TR align= "center" > <td bgcolor= "#EEEEFF" colspan= "" >browser& lt;/td> <td bgcolor= "#EEEEFF" colspan= "" >PAGE-URL</td> &L t;/tr> <tr align= "center" > <td bgcolor= "#E4E4E4" colspan= "" ><font color= "#000000" size= "2" > Msie 3 </font></td> <TD bgcolor= "#E4E4E4" colspan= "" > <input type= "text" name= "MSIE3" size= "M" va Lue= "http://www.yahoo.com" > </td> </tr> <tr align= "center "> <td bgcolor=" #E4E4E4 "colspan=" "><font color=" #000000 "size=" 2 "> Msie 4 </font></td> <td bgcolor= "#E4E4E4" colspan= "" > <input type= "text" name= "MSIE4" size= "" value= "http://www.yahoo.com" > </td> </tr> <tr align= "center" > <TD bgcolor= "#E4E4E4" colspan= "" ><font color= "#000000" size= "2" > MSIE 5 </font></td> <td bgcolor= "#E4E4E4" colspan= "" > ; input type= "text" name= "MSIE5" size= "value=" > </td> </tr> <tr align= "center" > <td bgcolor= "#E 4e4e4 "colspan=" ">< font color= "#000000" size= "2" >netscape 3</font></td> <TD bgcolor= "#E4E4E4" colspan= "" > <input type= "text" name= "NS3" size= "" value= "HT Tp://www.yahoo.com "> </td> </tr> <TR align= "center" > <td bgcolor= "#E4E4E4" colspan= "" ><font color= "#000000" size= "2" >netscape 4</font></td> <td bgcolor= "#E4E4E4" Colspan= "" > <input type= "text" name= "NS4" size= "" value= "http://www.yahoo.com" > </td> </tr> <tr align= "center" > <TD bgcolor= "#E4E4E4" colspan= "" ><font color= "#000000" size= "2" >netscape 5</font></td> <td bgcolor= "#E4E4E4" colspan= "" > <inpu T type= "text" name= "NS5" size= "value=" > </td> </tr> <tr align= "center" > <td bgcolor= "#E4E4E4" Colspan= "" "><font color=" #000000 "size=" 2 ">other browsers</font></td> <TD bgcolor= "#E4E4E4" colspan= "" > <input type= "text" Name= "OTH ER "size=" value= "http://www.yahoo.com" > </td> </tr> <TR align= "center" > <td colspan= "2" bgcolor= "#C0C0C0" align= "le FT "> <input type=" button "value=" code generation "name = "B1" onclick= "createcodES (this.form) "class=" Pt9 "> <br> <input type=" Rese T "value=" clear re-election "name=" B2 "class=" Pt9 "> </td> </tr> </table> </center> </div> </td& Gt <td></td> </tr> </table> <table align= "Center "> <tr> <td> <table border=" 1 "align=" Center "> <tr> <td bgcolor= "#CCCCDD" colspan= "2" > <p> ; The generated code is as follows: </td> </tr> <t r> <tr> <td bgcolor= "#EEEEFF" > <div Align= "center" > <center> <p> copy of the following code </p> </center> </div> </td> </tr> <tr> <td bgcolor= "#EEEEEE" > ;d IV align= "center" > <center> <p> <textarea name= "code" cols= "rows=" wrap= "physical" class= "Pt9" > select the project generated code above------------------- -------------------------------------------------------------
Tip: You can modify some of the code before running