کد
<!--***********|www.gpgtools.blogsky.com|*********** --> <!-- Start of Link Message Script --> <!-- This script give a quick message before exiting --> <!-- Instructions: Just put the top portion of this script after your meta tags and before the closing head tag. Put the second portion in the body of your page anywhere you wish the links to appear. To add more links, simply copy and paste one of the below examples and then make sure that the next number is corresponded. Thrn add the link name at the bottom of the script. --> <!-- Script supplied with CoffeeCup HTML Editor --> <!-- www.coffeecup.com --> <script language="JavaScript"> <!-- function CC_Message(){ if (document.msgform.msgselect.options[0].selected){ window.location.href = "http://www.webloger.5u.com";} else if (document.msgform.msgselect.options[1].selected) { window.location.href = "http://www.tucows.com";} else if (document.msgform.msgselect.options[2].selected) { window.location.href = "http://www.download.com";} else if (document.msgform.msgselect.options[3].selected) { window.location.href = "http://www.download.net";} else if (document.msgform.msgselect.options[4].selected) { window.location.href = "http://www.yahoo.com";} return true; } function textValue(){ var msgInteger, msgString msgInteger=document.msgform.msgselect.selectedIndex msgString=document.msgform.msgselect.options[msgInteger].text document.msgform.msgtext.value = "Go to " + msgString +"!" } //--> </script> </head> <body> <form name="msgform"> <select name="msgselect" onChange="textValue()" multiple size="5"> <option>Webloger Website <option>TUCOWS Network <option>Download.com <option>Download.net <option>Yahoo </select> <br><p> <input type="button" name="msgbutton" value="Go!" onClick="CC_Message()"> <p> <input type="text" name="msgtext" value="" size="35" maxlength="35"> <p> </form> <!-- End of Link Message Script --> <!--***************| www.gpgir.org|************** -->