📄 打开自定义式窗口下拉列表.txt
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="JavaScript">
<!--
DestinationAndTitle=new Array()
//修改链接
DestinationAndTitle[0]="http://www.jxau.edu.cn/*江西农大"
DestinationAndTitle[1]="http://www.laohsh.com/*晨阳在线"
DestinationAndTitle[2]="http://www.mycolour.net/*创美室—出色女人"
DestinationAndTitle[3]="http://go88.net/~asp*asp俱乐部"
DestinationAndTitle[4]="http://www.51js.com/*无忧代码"
DestinationAndTitle[5]="http://www.d2sky.com/*子昂轩"
//修改窗口位置大小
Top=0;
Left=0;
Height=400;
Width=600;
//修改窗口属性,1 = yes, 0 = no
ToolBar=0;
Location=0;
Directories=0;
Status=0;
MenuBar=0;
Scroll=0;
Resize=0;
function PopUp(){
var url=document.F.S.options[document.F.S.options.selectedIndex].value;
if (url != ''){
if (!window.popupwin || popupwin.closed)
popupwin=open(url,"","top="+Top+",left="+Left+",width="+Width+",height="+Height+",status="+Status+",directories="+Directories+",location="+Location+",toolbar="+ToolBar+",menubar="+MenuBar+"scrollbars="+Scroll+",resizable="+Resize+"");
else{
popupwin.close();
popupwin=open(url,"","top="+Top+",left="+Left+",width="+Width+",height="+Height+",status="+Status+",directories="+Directories+",location="+Location+",toolbar="+ToolBar+",menubar="+MenuBar+"scrollbars="+Scroll+",resizable="+Resize+"");
}
}
else return false;
}
document.write("<form name='F'><select name='S'class=textfields onchange=PopUp()> <optionvalue='#'>访问我们的友情站点</option>");for (i=0; i < DestinationAndTitle.length; i++){
var urlMsg=DestinationAndTitle[i].split('*')
document.write("<option value="+urlMsg[0]+">"+urlMsg[1])}
document.write("</select></form>");
//-->
</script>
<style type="text/css">
<!--
body {
background-color: #FFCC99;
}
-->
</style></head>
<body>
<p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><br />
<title>无标题文档</title></p>
<p><script language="JavaScript"><br />
<!-- <br />
DestinationAndTitle=new Array()<br />
//修改链接<br />
DestinationAndTitle[0]="http://www.jxau.edu.cn/*江西农大"<br />
DestinationAndTitle[1]="http://www.laohsh.com/*晨阳在线"<br />
DestinationAndTitle[2]="http://www.mycolour.net/*创美室—出色女人"<br />
DestinationAndTitle[3]="http://go88.net/~asp*asp俱乐部"<br />
DestinationAndTitle[4]="http://www.51js.com/*无忧代码"<br />
DestinationAndTitle[5]="http://www.d2sky.com/*子昂轩"<br />
//修改窗口位置大小<br />
Top=0;<br />
Left=0;<br />
Height=400;<br />
Width=600;<br />
//修改窗口属性,1 = yes, 0 = no<br />
ToolBar=0;<br />
Location=0;<br />
Directories=0;<br />
Status=0;<br />
MenuBar=0;<br />
Scroll=0;<br />
Resize=0;<br />
function PopUp(){<br />
var url=document.F.S.options[document.F.S.options.selectedIndex].value;<br />
if (url != ''){<br />
if (!window.popupwin || popupwin.closed)<br />
popupwin=open(url,"","top="+Top+",left="+Left+",width="+Width+",height="+Height+",status="+Status+",directories="+Directories+",location="+Location+",toolbar="+ToolBar+",menubar="+MenuBar+"scrollbars="+Scroll+",resizable="+Resize+"");<br />
else{<br />
popupwin.close(); <br />
popupwin=open(url,"","top="+Top+",left="+Left+",width="+Width+",height="+Height+",status="+Status+",directories="+Directories+",location="+Location+",toolbar="+ToolBar+",menubar="+MenuBar+"scrollbars="+Scroll+",resizable="+Resize+"");<br />
}<br />
}<br />
else return false;<br />
}<br />
document.write("<form name='F'><select name='S'class=textfields onchange=PopUp()> <optionvalue='#'>访问我们的友情站点</option>");for (i=0; i < DestinationAndTitle.length; i++){<br />
var urlMsg=DestinationAndTitle[i].split('*')<br />
document.write("<option value="+urlMsg[0]+">"+urlMsg[1])}<br />
document.write("</select></form>");<br />
//--><br />
</script><br />
</p>
<p></head></p>
<p><body><br />
</body><br />
</html><br />
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -