📄 an12.htm
字号:
<html>
<head>
<title>自由打开各种窗口</title>
<style type="text/css">
<!--
body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px}
A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none }
A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline }
a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#fef4d9">
<br>
<br>
<center><font color=red face="隶书" size=6>自由打开各种窗口</font></center>
<br>
<br><center>
<table border=5 bordercolor=blue borderlight=green>
<tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>下面框中为脚本显示区</strong></font></td></tr>
<tr><td align=center width=460><script language="JAVASCRIPT">
<!-- hide
function customize(form) {
var address = document.form1.url.value;
var op_tool = (document.form1.tool.checked== true) ? 1 : 0;
var op_loc_box = (document.form1.loc_box.checked == true) ? 1 : 0;
var op_dir = (document.form1.dir.checked == true) ? 1 : 0;
var op_stat = (document.form1.stat.checked == true) ? 1 : 0;
var op_menu = (document.form1.menu.checked == true) ? 1 : 0;
var op_scroll = (document.form1.scroll.checked == true) ? 1 : 0;
var op_resize = (document.form1.resize.checked == true) ? 1 : 0;
var op_wid = document.form1.wid.value;
var op_heigh = document.form1.heigh.value;
var option = "toolbar=" + op_tool + ",location=" + op_loc_box + ",directories="
+ op_dir + ",status=" + op_stat
+ ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizeable=" + op_resize
+ ",width="
+ op_wid + ",height=" + op_heigh;
var win3 = window.open("", "what_I_want", option);
var win4 = window.open(address, "what_I_want");
}
function clear(form){
document.form1.wid.value="";
document.form1.heigh.value="";
}
// done hiding -->
</script>
<form name="form1" action="javascript:" method="POST">
<div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td colspan="4" height="35"> URL:
<input type="text" size="40" name="url" value="http://">
</td>
</tr>
<tr align="center">
<td width="25%" height="25">
<input
type="checkbox" name="tool" value="ON">
: 快捷键</td>
<td width="25%" height="25">
<input type="checkbox" name="loc_box" value="ON">
: 地址栏 </td>
<td width="25%" height="25">
<input
type="checkbox" name="dir" value="ON">
: 链 接 </td>
<td width="25%" height="25">
<input type="checkbox" name="stat" value="ON">
: 状态栏</td>
</tr>
<tr align="center">
<td width="25%" height="25">
<input
type="checkbox" name="resize" value="ON">
: 调大小 </td>
<td width="25%" height="25">
<input type="checkbox" name="scroll" value="ON">
: 滚动条</td>
<td width="25%" height="25">
<input
type="checkbox" name="menu" value="ON">
: 菜 单 </td>
<td width="25%" height="25"> </td>
</tr>
<tr align="center">
<td colspan="2" height="35">
<input type="text" name="wid"
size="14">
: 宽</td>
<td colspan="2" height="25">
<input type="text" name="heigh" size="14">
: 高</td>
</tr>
<tr align="center">
<td colspan="4" height="25">
<input
type="button" size="10" value="确认" onClick="customize(this.form)" name="button">
<input type="reset"
size="10" value="重填" onClick="clear(this.form)" name="reset">
</td>
</tr>
</table>
</div>
</form>
</td></tr></table></center>
<br>
<br>
<center>
<textarea name=source rows=12 cols=45 class=yk9>
脚本说明:
把如下代码加入<body>区域中
<script language="JAVASCRIPT">
<!-- hide
function customize(form) {
var address = document.form1.url.value;
var op_tool = (document.form1.tool.checked== true) ? 1 : 0;
var op_loc_box = (document.form1.loc_box.checked == true) ? 1 : 0;
var op_dir = (document.form1.dir.checked == true) ? 1 : 0;
var op_stat = (document.form1.stat.checked == true) ? 1 : 0;
var op_menu = (document.form1.menu.checked == true) ? 1 : 0;
var op_scroll = (document.form1.scroll.checked == true) ? 1 : 0;
var op_resize = (document.form1.resize.checked == true) ? 1 : 0;
var op_wid = document.form1.wid.value;
var op_heigh = document.form1.heigh.value;
var option = "toolbar=" + op_tool + ",location=" + op_loc_box + ",directories="
+ op_dir + ",status=" + op_stat
+ ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizeable=" + op_resize
+ ",width="
+ op_wid + ",height=" + op_heigh;
var win3 = window.open("", "what_I_want", option);
var win4 = window.open(address, "what_I_want");
}
function clear(form){
document.form1.wid.value="";
document.form1.heigh.value="";
}
// done hiding -->
</script>
<form name="form1" action="javascript:" method="POST">
<div align="left">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td colspan="4" height="35"> URL:
<input type="text" size="40" name="url" value="http://">
</td>
</tr>
<tr align="center">
<td width="25%" height="25">
<input
type="checkbox" name="tool" value="ON">
: 快捷键</td>
<td width="25%" height="25">
<input type="checkbox" name="loc_box" value="ON">
: 地址栏 </td>
<td width="25%" height="25">
<input
type="checkbox" name="dir" value="ON">
: 链 接 </td>
<td width="25%" height="25">
<input type="checkbox" name="stat" value="ON">
: 状态栏</td>
</tr>
<tr align="center">
<td width="25%" height="25">
<input
type="checkbox" name="resize" value="ON">
: 调大小 </td>
<td width="25%" height="25">
<input type="checkbox" name="scroll" value="ON">
: 滚动条</td>
<td width="25%" height="25">
<input
type="checkbox" name="menu" value="ON">
: 菜 单 </td>
<td width="25%" height="25"> </td>
</tr>
<tr align="center">
<td colspan="2" height="35">
<input type="text" name="wid"
size="14">
: 宽</td>
<td colspan="2" height="25">
<input type="text" name="heigh" size="14">
: 高</td>
</tr>
<tr align="center">
<td colspan="4" height="25">
<input
type="button" size="10" value="确认" onClick="customize(this.form)" name="button">
<input type="reset"
size="10" value="重填" onClick="clear(this.form)" name="reset">
</td>
</tr>
</table>
</div>
</form>
</textarea>
<SCRIPT LANGUAGE="JavaScript">
<!-- hide
function goHist(a)
{
history.go(a);
}
//-->
</script>
<FORM METHOD="post">
<INPUT TYPE="button" VALUE="返回" onClick="goHist(-1)" style="background-color: #8000FF; color: rgb(255,255,255)">
</form>
</center>
<br>
<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -