主要是演示按扭事件!
<%
@LANGUAGE
=
"
JAVASCRIPT
"
CODEPAGE
=
"
936
"
%>
<! 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 >
< style type ="text/css" >
<!--
.STYLE1 { color : #FF0000 }
-->
</ style >
</ head >
< body >
< label > 演示一 :移动窗体(这个演示是将IE窗口移动到屏幕的最左上角,window.moveTo(0,0) 后面的两个参数是自己输入的) < br />
< br />
< input type ="submit" name ="Submit" value ="移动窗体到左上角" onclick ="window.moveTo(0,0)" />
< input type ="submit" name ="Submit" value ="移动窗体到右下角" onclick ="window.moveTo(512,400)" />
< br />
< br />
< span class ="STYLE1" > 注意,别移动到超出屏幕分辨率大小的位置了,否则你看不见了,例如 600,800/1024,800 </ span >< br />
< br />
</ label >
< p > 演示二 :弹出提示(当按下按钮,就弹一个对话框出来,当按下第二个按钮后,你可能会有点问题,那么请继续关注 < a href ="http://thcjp.cnblogs.com" > http://thcjp.cnblogs.com </ a > 或者搜索 < a href ="http://thcjp.cnblogs.com" > 天轰穿 </ a > 我将会从JS到AJAX和ATLAS一直到.net(c#)与AJAX的整合出一系列的入门级实例教程) </ p >
< p >
< label >
< input type ="submit" name ="Submit2" value ="单是提示" onclick ="alert('是你吵醒我睡觉的?')" />
</ label >
< input type ="submit" name ="Submit3" value ="询问对话框" onclick ="confirm('老实交待不?')" />
</ p >
</ body >
</ html >
<! 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 >
< style type ="text/css" >
<!--
.STYLE1 { color : #FF0000 }
-->
</ style >
</ head >
< body >
< label > 演示一 :移动窗体(这个演示是将IE窗口移动到屏幕的最左上角,window.moveTo(0,0) 后面的两个参数是自己输入的) < br />
< br />
< input type ="submit" name ="Submit" value ="移动窗体到左上角" onclick ="window.moveTo(0,0)" />
< input type ="submit" name ="Submit" value ="移动窗体到右下角" onclick ="window.moveTo(512,400)" />
< br />
< br />
< span class ="STYLE1" > 注意,别移动到超出屏幕分辨率大小的位置了,否则你看不见了,例如 600,800/1024,800 </ span >< br />
< br />
</ label >
< p > 演示二 :弹出提示(当按下按钮,就弹一个对话框出来,当按下第二个按钮后,你可能会有点问题,那么请继续关注 < a href ="http://thcjp.cnblogs.com" > http://thcjp.cnblogs.com </ a > 或者搜索 < a href ="http://thcjp.cnblogs.com" > 天轰穿 </ a > 我将会从JS到AJAX和ATLAS一直到.net(c#)与AJAX的整合出一系列的入门级实例教程) </ p >
< p >
< label >
< input type ="submit" name ="Submit2" value ="单是提示" onclick ="alert('是你吵醒我睡觉的?')" />
</ label >
< input type ="submit" name ="Submit3" value ="询问对话框" onclick ="confirm('老实交待不?')" />
</ p >
</ body >
</ html >