⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 window-sizer.html

📁 java脚本即用特效源码从入门到精通帮你渡过难关
💻 HTML
字号:
<!-- 安装 指定浏览器窗口大小 的两个步骤:

   1.  把数据复制到你的Html档案的Head标记下
   2.  把数据复制到你的Html档案的Body标记下 -->

<!-- 步骤一: 把以下数据复制到你的Html档案的Head标记下  -->

<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function regular() {
window.open('window-sizer.html','640x480','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=640,height=480')}
function large() {
window.open('window-sizer.html','800x600','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=800,height=600')}
function smallmacdefault() {
window.open('window-sizer.html','Mac','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=470,height=300')}
function smallpcdefault() {
window.open('window-sizer.html','PC','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=580,height=300')}
function mediummacdefault() {
window.open('window-sizer.html','Mac','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=470,height=430')}
function mediumpcdefault() {
window.open('window-sizer.html','PC','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=580,height=430')}
function largemacdefault() {
window.open('window-sizer.html','Mac','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=470,height=600')}
function largepcdefault() {
window.open('window-sizer.html','PC','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=580,height=600')}
// End -->
</SCRIPT>
</HEAD>

<!-- 步骤二: 把以下数据复制到你的Html档案的Body标记下  -->

<BODY>
<FORM>
打开一个640×480像素的窗口: 
<INPUT TYPE=BUTTON VALUE="640×480" onClick="regular()">
<P>
打开一个800×600像素的窗口: 
<INPUT TYPE=BUTTON VALUE="800×600" onClick="large()"><P>
<HR>
<P>
默认浏览器窗口大小:
<P>
<B>640×480</B>
<BR>
Mac = 470×300:
<INPUT TYPE=BUTTON VALUE="Mac" onClick="smallmacdefault()">
<BR>
PC  = 580×300: 
<INPUT TYPE=BUTTON VALUE="PC" onClick="smallpcdefault()">
<P>
<B>800×600</B>
<BR>
Mac = 470×430: 
<INPUT TYPE=BUTTON VALUE="Mac" onClick="mediummacdefault()">
<BR>
PC  = 580×430: 
<INPUT TYPE=BUTTON VALUE="PC" onClick="mediumpcdefault()">
<P>
<B>1024×768</B><BR>
Mac = 470×600: 
<INPUT TYPE=BUTTON VALUE="Mac" onClick="largemacdefault()">
<BR>
PC  = 580×600: <INPUT TYPE=BUTTON VALUE="PC" onClick="largepcdefault()">
<P>
<P>
<HR>
<P>
请关闭窗口: 
<INPUT TYPE=BUTTON VALUE="关闭" onClick="window.close()">
</FORM>
</BODY>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -