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

📄 0099.htm

📁 最全的JS大全,希望大家喜欢.收录于网络.收录于网络.最全的JS大全,希望大家喜欢.
💻 HTM
字号:
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- saved from url=(0032)http://www.ie-zone.com/index.php --><HTML><!-- #BeginTemplate "/Templates/Js.dwt" --> <HEAD><!-- #BeginEditable "doctitle" --> <TITLE>模拟系统鼠标效果</TITLE><!-- #EndEditable --> <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK  href="../../fav.ico" rel="shortcut icon"><STYLE type=text/css>BODY {	MARGIN: 25px 25px 25px}#all TD {	FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"}INPUT {	FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"}SELECT {	FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"}P {	FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"}TEXTAREA {	FONT-SIZE: 12px; LINE-HEIGHT: 15px; FONT-FAMILY: "Verdana", "Arial","新宋体", "宋体"}#all A:active {	COLOR: #7d070c}#all A:visited {	COLOR: #7d070c}#all A:hover {	COLOR: #336699}#all A:link {	COLOR: #7d070c}</STYLE><SCRIPT language=JavaScript><!--function MM_goToURL() { //v3.0  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");}function JM_cc(ob){var obj=MM_findObj(ob); if (obj) { obj.select();js=obj.createTextRange();js.execCommand("Copy");}}function MM_findObj(n, d) { //v4.0  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && document.getElementById) x=document.getElementById(n); return x;}//--></SCRIPT><META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD><BODY id=all text=#000000 bgColor=#336699><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>  <TR bgColor=#ffffff>     <TD><IMG src="../images/sq_1.gif" width=11 height="14"></TD>    <TD width="100%"></TD>    <TD><IMG src="../images/sq_2.gif"    width=11 height="14"></TD>  </TR></TABLE><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>  <TR bgColor=#ffffff>     <TD><IMG src="../../images/space.gif" width=11 height="1"></TD>    <TD width="100%">       <table width="100%" border="0" cellpadding="8">        <tr>           <td align="center">             <script language="JavaScript">document.write("<font color=#7d070c style=\"font-size: 14px\">"+document.title+"</font>");</script>          </td>        </tr>        <tr>           <td bgcolor="#f7f7f7"><!-- #BeginEditable "example" -->             <style type="text/css">BODY {overflow: scroll; overflow-x: hidden;}</style>            <script language="JavaScript1.2"><!--/*Submitted by Marcin Wojtowicz [one_spook@hotmail.com] Featured on Website Abstraction (http://wsabstract.com)For this and over 400+ free scripts, visit http://wsabstract.com*/var trailLength = 8 // The length of trail (8 by default; put more for longer "tail")var path = "img/cursorx.gif" // URL of your image// do NOT modify anything beyond this pointvar isIE = false,isNav = false,range = "all.",style = ".style",i,d = 0var topPix = ".pixelTop",leftPix = ".pixelLeft",images,storageif (document.layers) { // browser sniffer	isNav = true,range = "layers.",style = "",topPix = ".top",leftPix = ".left"} else if (document.all) {	isIE = true}function initTrail() { // prepares the script	images = new Array() // prepare the image array	for (i = 0; i < parseInt(trailLength); i++) {		images[i] = new Image()		images[i].src = path	}	storage = new Array() // prepare the storage for the coordinates	for (i = 0; i < images.length*3; i++) {		storage[i] = 0	}	for (i = 0; i < images.length; i++) { // make divs for IE and layers for Navigator		(isIE) ? document.write('<div id="obj' + i + '" style="position: absolute; z-Index: 100; height: 0; width: 0"><img src="' + images[i].src + '"></div>') : document.write('<layer name="obj' + i + '" width="0" height="0" z-index="100"><img src="' + images[i].src + '"></layer>')	}	trail()}function trail() { // trailing function	for (i = 0; i < images.length; i++) { // for every div/layer		eval("document." + range + "obj" + i + style + topPix + "=" + storage[d]) // the Y-coordinate		eval("document." + range + "obj" + i + style + leftPix + "=" + storage[d+1]) // the X-coordinate		d = d+2	}	for (i = storage.length; i >= 2; i--) { // save the coordinate for the div/layer that's behind		storage[i] = storage[i-2]	}	d = 0 // reset for future use	var timer = setTimeout("trail()",10) // call recursively }function processEvent(e) { // catches and processes the mousemove event 	if (isIE) { // for IE		storage[0] = window.event.y+document.body.scrollTop+10		storage[1] = window.event.x+document.body.scrollLeft+10	} else { // for Navigator		storage[0] = e.pageY+12		storage[1] = e.pageX+12	}}if (isNav) {	document.captureEvents(Event.MOUSEMOVE) // Defines what events to capture for Navigator}if (isIE || isNav) { // initiates the script	initTrail() 	document.onmousemove = processEvent // start capturing}//--></script>            <!-- #EndEditable --></td>        </tr>        <tr>           <td><!-- #BeginEditable "code" -->1.将下面的代码复制到 &lt;head&gt; 内             <input type="button" name="Button" value="复制到我的剪贴板" onClick=JM_cc('js_1')>            <br>            <form name="form1" method="post" action="">              <textarea name="js_1" wrap="VIRTUAL" cols="80" rows="10">&lt;style type="text/css"&gt;BODY {overflow: scroll; overflow-x: hidden;}&lt;/style&gt;</textarea>            </form>            <br>            2.将下面的代码复制到 &lt;body&gt; 内             <input type="button" name="Button2" value="复制到我的剪贴板" onClick=JM_cc('js_2')>            <br>            <form name="form1" method="post" action="">              <textarea name="js_2" wrap="VIRTUAL" cols="80" rows="10">&lt;script language="JavaScript1.2"&gt;&lt;!--/*Submitted by Marcin Wojtowicz [one_spook@hotmail.com] Featured on Website Abstraction (http://wsabstract.com)For this and over 400+ free scripts, visit http://wsabstract.com*/var trailLength = 8 // The length of trail (8 by default; put more for longer "tail")var path = "cursor.gif" // URL of your image// do NOT modify anything beyond this pointvar isIE = false,isNav = false,range = "all.",style = ".style",i,d = 0var topPix = ".pixelTop",leftPix = ".pixelLeft",images,storageif (document.layers) { // browser sniffer	isNav = true,range = "layers.",style = "",topPix = ".top",leftPix = ".left"} else if (document.all) {	isIE = true}function initTrail() { // prepares the script	images = new Array() // prepare the image array	for (i = 0; i &lt; parseInt(trailLength); i++) {		images[i] = new Image()		images[i].src = path	}	storage = new Array() // prepare the storage for the coordinates	for (i = 0; i &lt; images.length*3; i++) {		storage[i] = 0	}	for (i = 0; i &lt; images.length; i++) { // make divs for IE and layers for Navigator		(isIE) ? document.write('&lt;div id="obj' + i + '" style="position: absolute; z-Index: 100; height: 0; width: 0"&gt;&lt;img src="' + images[i].src + '"&gt;&lt;/div&gt;') : document.write('&lt;layer name="obj' + i + '" width="0" height="0" z-index="100"&gt;&lt;img src="' + images[i].src + '"&gt;&lt;/layer&gt;')	}	trail()}function trail() { // trailing function	for (i = 0; i &lt; images.length; i++) { // for every div/layer		eval("document." + range + "obj" + i + style + topPix + "=" + storage[d]) // the Y-coordinate		eval("document." + range + "obj" + i + style + leftPix + "=" + storage[d+1]) // the X-coordinate		d = d+2	}	for (i = storage.length; i &gt;= 2; i--) { // save the coordinate for the div/layer that's behind		storage[i] = storage[i-2]	}	d = 0 // reset for future use	var timer = setTimeout("trail()",10) // call recursively }function processEvent(e) { // catches and processes the mousemove event 	if (isIE) { // for IE		storage[0] = window.event.y+document.body.scrollTop+10		storage[1] = window.event.x+document.body.scrollLeft+10	} else { // for Navigator		storage[0] = e.pageY+12		storage[1] = e.pageX+12	}}if (isNav) {	document.captureEvents(Event.MOUSEMOVE) // Defines what events to capture for Navigator}if (isIE || isNav) { // initiates the script	initTrail() 	document.onmousemove = processEvent // start capturing}//--&gt;&lt;/script&gt;</textarea>            </form>            <br>            3.本例中使用到的一张鼠标图片 <img src="img/cursorx.gif" width="11" height="19"><!-- #EndEditable --></td>        </tr>      </table>    </TD>    <TD><IMG src="../../images/space.gif"    width=11 height="1"></TD>  </TR></TABLE><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>  <TR bgColor=#ffffff>     <TD><IMG src="../images/sq_3.gif" width=11 height="14"></TD>    <TD width="100%"></TD>    <TD><IMG src="../images/sq_4.gif"    width=11 height="14"></TD>  </TR></TABLE></BODY><!-- #EndTemplate --></HTML>

⌨️ 快捷键说明

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