<SCRIPT LANGUAGE = "JavaScript"> <!-- function newlink(href, descr) { document.write ('<FORM><INPUT TYPE="checkbox" NAME="picklink" VALUE="off"><a href="' + href +'">' + href + '</a><br>' + descr +'<INPUT TYPE=HIDDEN NAME="site" VALUE="' + href + '"><INPUT TYPE=HIDDEN NAME="desc" VALUE="' + descr +'"></FORM>'); } function makepage () { linkPage = '<HTML><HEAD><TITLE>Your Links:</TITLE></HEAD>' + '<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#800000" VLINK="#800000" ALINK="#800000">' + '<h1>Your Links:</H1><hr noshade color="#880000">'; for (var i = 0; i < document.forms.length; i++) { if (document.forms[i].picklink.checked == true) { var site = document.forms[i].site.value; var desc = document.forms[i].desc.value; link = '<a href="' + site + '" target="opener">' + site + '</a><br>' + desc + '<br><br>'; linkPage = linkPage + link } } linkPage = linkPage + '<hr noshade color="#880000"></BODY></HTML>'; remote = window.open("","remotewin","width=350,height=400"); remote.document.write (linkPage); remote.document.close() if (remote.opener == null) remote.opener = window; remote.opener.name = "opener"; } //--> </SCRIPT> <head> <title></title> </head> <body bgcolor="#006699"> <br> <br> <font color="#FFFFFF"> <center><font face="隶书" size=6>同时打开多个链接</font></center> <br> </font> <center> <table border=5 bordercolor=blue borderlight=green> <tr><td align=center><strong><font size=5 color=#FFFFFF>下面框中为脚本显示区</font></strong></td></tr> <tr><td align=center height=80> 请选择下面的链接,你可以同时打开 <script> newlink ("http://www.webreference.com", "The coolest page on earth"); newlink ("http://www.infoseek.com", "The best search engine around"); newlink ("http://www.mailexcite.com", "Free E-Mail for all"); newlink ("http://www.geocities.com", "Free web space for all"); newlink ("http://www.microsoft.com/ie/", "The best browser around (NOT!)"); </SCRIPT> <BR> <a HREF="javascript:makepage()" style="color: #FF0000">打开所选链接 </a> <input type="BUTTON" value="查看源代码" onClick= 'window.location = "view-source:" + window.location.href' name="BUTTON"> </td></tr></table></center> <br> <br> <center> 载入中... 载入中...
Copyright © 2000-2006 Nkcn.Net 天津网站优化 All Rights Reserve.