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

📄 java21.htm

📁 javascript book
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0049)http://pbuild.edu.chinaren.com/net/crosshair.html -->
<HTML><HEAD><TITLE>十字准星</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>#leftright {
	BACKGROUND-COLOR: black; FONT-SIZE: 1px; HEIGHT: 1px; LEFT: 0px; POSITION: absolute; TOP: 0px; WIDTH: 1px; Z-INDEX: 100; layer-background-color: black
}
#topdown {
	BACKGROUND-COLOR: black; FONT-SIZE: 1px; HEIGHT: 1px; LEFT: 0px; POSITION: absolute; TOP: 0px; WIDTH: 1px; Z-INDEX: 100; layer-background-color: black
}
BODY {
	FONT: 9pt "宋体"; MARGIN: 0px
}
.pt9 {
	FONT: 9pt "宋体"
}
TD {
	FONT-SIZE: 9pt
}
</STYLE>

<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<meta name="Microsoft Theme" content="maize 011">
</HEAD>
<BODY bgcolor=#ffffff background="maizbk.jpg" text="#000000" link="#669999" vlink="#999900" alink="#3366CC">
<!--mstheme--><font face="宋体">
<DIV id=leftright></DIV>
<DIV id=topdown></DIV>
<SCRIPT language=JavaScript1.2>
<!--

if (document.all&&!window.print){
leftright.style.width=document.body.clientWidth-2
topdown.style.height=document.body.clientHeight-2
}
else if (document.layers){
document.leftright.clip.width=window.innerWidth
document.leftright.clip.height=1
document.topdown.clip.width=1
document.topdown.clip.height=window.innerHeight
}


function followmouse1(){
//move cross engine for IE 4+
leftright.style.pixelTop=document.body.scrollTop+event.clientY+1
topdown.style.pixelTop=document.body.scrollTop
if (event.clientX<document.body.clientWidth-2)
topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1
else
topdown.style.pixelLeft=document.body.clientWidth-2
}

function followmouse2(e){
//move cross engine for NS 4+
document.leftright.top=e.y+1
document.topdown.top=pageYOffset
document.topdown.left=e.x+1
}

if (document.all)
document.onmousemove=followmouse1
else if (document.layers){
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=followmouse2
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
setTimeout("window.onresize=regenerate",400)
}
if ((document.all&&!window.print)||document.layers)
//if the user is using IE 4 or NS 4, both NOT IE 5+
window.onload=regenerate2

//-->
</SCRIPT>

<P align=center><FONT size=5>十 字 准 星</FONT>  
<FORM action="" method=post> 
<DIV align=center>以下代码加入&lt;HEAD&gt;&lt;/HEAD&gt;之间:<BR><TEXTAREA class=pt9 cols=65 name=textfield rows=8 wrap=VIRTUAL>&lt;style&gt;
&lt;!--
#leftright, #topdown{
position:absolute;
left:0;
top:0;
width:1px;
height:1px;
layer-background-color:black;
background-color:black;
z-index:100;
font-size:1px;
}
--&gt;
&lt;/style&gt;</TEXTAREA> </DIV></FORM> 
<FORM action="" method=post> 
<DIV align=center>以下代码加入&lt;BODY&gt;&lt;/BODY&gt;之间:<BR><TEXTAREA class=pt9 cols=65 name=textfield2 rows=8 wrap=VIRTUAL>&lt;div id="leftright" style="width:expression(document.body.clientWidth-2)"&gt;&lt;/div&gt;
&lt;div id="topdown" style="height:expression(document.body.clientHeight-2)"&gt;&lt;/div&gt;

&lt;script language="JavaScript1.2"&gt;
&lt;!--

if (document.all&amp;&amp;!window.print){
leftright.style.width=document.body.clientWidth-2
topdown.style.height=document.body.clientHeight-2
}
else if (document.layers){
document.leftright.clip.width=window.innerWidth
document.leftright.clip.height=1
document.topdown.clip.width=1
document.topdown.clip.height=window.innerHeight
}


function followmouse1(){
//move cross engine for IE 4+
leftright.style.pixelTop=document.body.scrollTop+event.clientY+1
topdown.style.pixelTop=document.body.scrollTop
if (event.clientX&lt;document.body.clientWidth-2)
topdown.style.pixelLeft=document.body.scrollLeft+event.clientX+1
else
topdown.style.pixelLeft=document.body.clientWidth-2
}

function followmouse2(e){
//move cross engine for NS 4+
document.leftright.top=e.y+1
document.topdown.top=pageYOffset
document.topdown.left=e.x+1
}

if (document.all)
document.onmousemove=followmouse1
else if (document.layers){
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=followmouse2
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
setTimeout("window.onresize=regenerate",400)
}
if ((document.all&amp;&amp;!window.print)||document.layers)
//if the user is using IE 4 or NS 4, both NOT IE 5+
window.onload=regenerate2

//--&gt;
&lt;/script&gt;</TEXTAREA> </DIV></FORM> 
<P align=center><BR> 
<P align=center> </P><!--mstheme--></font></BODY></HTML> 

⌨️ 快捷键说明

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