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

📄 0101.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/JsExample.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){ob.select();js=ob.createTextRange();js.execCommand("Copy");}//--></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><!-- #BeginEditable "Example%20and%20Sources" --> <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"><!-- #BeginLibraryItem "/Library/js_title.lbi" --><script language="JavaScript">document.write("<font color=#7d070c style=\"font-size: 14px\">"+document.title+"</font>");</script><!-- #EndLibraryItem --></td>        </tr>        <tr>           <td bgcolor="#f7f7f7">             <layer name="a0" left=10 top=10 visibility=SHOW bgcolor="#ffffff" clip="0,0,1,1"></layer>            <layer name="a1" left=10 top=10 visibility=SHOW bgcolor="#fff000" clip="0,0,1,1"></layer>            <layer name="a2" left=10 top=10 visibility=SHOW bgcolor="#ffa000" clip="0,0,1,1"></layer>            <layer name="a3" left=10 top=10 visibility=SHOW bgcolor="#ff00ff" clip="0,0,1,1"></layer>            <layer name="a4" left=10 top=10 visibility=SHOW bgcolor="#00ff00" clip="0,0,1,1"></layer>            <layer name="a5" left=10 top=10 visibility=SHOW bgcolor="#FF00FF" clip="0,0,1,1"></layer>            <layer name="a6" left=10 top=10 visibility=SHOW bgcolor="#FF0000" clip="0,0,1,1"></layer>            <layer name="a7" left=10 top=10 visibility=SHOW bgcolor="#ffffff" clip="0,0,2,2"></layer>            <layer name="a8" left=10 top=10 visibility=SHOW bgcolor="#fff000" clip="0,0,2,2"></layer>            <layer name="a9" left=10 top=10 visibility=SHOW bgcolor="#ffa000" clip="0,0,2,2"></layer>            <layer name="a10" left=10 top=10 visibility=SHOW bgcolor="#ff00ff" clip="0,0,2,2"></layer>            <layer name="a11" left=10 top=10 visibility=SHOW bgcolor="#00ff00" clip="0,0,2,2"></layer>            <layer name="a12" left=10 top=10 visibility=SHOW bgcolor="#0000ff" clip="0,0,2,2"></layer>            <layer name="a13" left=10 top=10 visibility=SHOW bgcolor="#FF0000" clip="0,0,3,3"></layer>            <div id="starsDiv" style="position:absolute;top:0px;left:0px">               <div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px;visibility:visible"></div>              <div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px;visibility:visible"></div>              <div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px;visibility:visible"></div>              <div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px;visibility:visible"></div>              <div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px;visibility:visible"></div>              <div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px;visibility:visible"></div>              <div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px;visibility:visible"></div>              <div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px;visibility:visible"></div>              <div style="position:relative;width:2px;height:2px;background:#fff000;font-size:2px;visibility:visible"></div>              <div style="position:relative;width:2px;height:2px;background:#ffa000;font-size:2px;visibility:visible"></div>              <div style="position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px;visibility:visible"></div>              <div style="position:relative;width:2px;height:2px;background:#00ff00;font-size:2px;visibility:visible"></div>              <div style="position:relative;width:2px;height:2px;background:#0000ff;font-size:2px;visibility:visible"></div>              <div style="position:relative;width:3px;height:3px;background:#FF0000;font-size:3px;visibility:visible"></div>            </div>            <script language="JavaScript"><!-- Original:  Kurt Grigg (kurt.grigg@virgin.net) --><!-- Web Site:  http://freespace.virgin.net/kurt.grigg --><!-- This script and many more are available free online at --><!-- The JavaScript Source!! http://javascript.internet.com --><!-- Beginvar Clrs = new Array(6);Clrs[0] = 'ff0000';Clrs[1] = '00ff00';Clrs[2] = '000aff';Clrs[3] = 'ff00ff';Clrs[4] = 'fff000';Clrs[5] = 'fffff0';var yBase = 200;var xBase = 200;var step;var currStep = 0;var Xpos = 1;var Ypos = 1;var Xs = 200;var Ys = 400;if (document.layers) {window.captureEvents(Event.MOUSEMOVE);}if (document.all) {function MoveHandler() {Xpos = document.body.scrollLeft+event.x;Ypos = document.body.scrollTop+event.y;}document.onmousemove = MoveHandler;}else if (document.layers) {function xMoveHandler(evnt) {Xpos = evnt.pageX;Ypos = evnt.pageY;}window.onMouseMove = xMoveHandler;}function Comet() {if (document.all) {yBase = window.document.body.offsetHeight / 4;xBase = window.document.body.offsetWidth / 4;}else if (document.layers) {yBase = window.innerHeight / 4;xBase = window.innerWidth / 4;}if (document.all) {for ( i = 0 ; i < starsDiv.all.length ; i++ ) {step = 3;starsDiv.all[i].style.top = Ypos + yBase*Math.cos((currStep + i*4)/12)*Math.cos(0.7+currStep/200);starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(8.2+currStep/400);for (ai = 0; ai < Clrs.length; ai++) {var c=Math.round(Math.random()*[ai]);}starsDiv.all[i].style.background = Clrs[c];   }}else if (document.layers) {for ( j = 0 ; j < 14 ; j++ ) { //number of NS layers!step = 6;var templayer = "a"+j;document.layers[templayer].top = Ypos + yBase*Math.cos((currStep + j*4)/12)*Math.cos(0.7+currStep/200);document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(8.2+currStep/400);for (aj=0; aj < Clrs.length; aj++){ var c=Math.round(Math.random()*[aj]);}document.layers[templayer].bgColor = Clrs[c];    }}currStep += step;setTimeout("Comet()", 5);}Comet();//  End --></script>            提示:一个不错的鼠标跟随,但比较消耗系统资源.</td>        </tr>        <tr>           <td>1.将下面的代码复制到&lt;body&gt;内             <input type="button" name="Button" value="复制到我的剪贴板" onClick=JM_cc(js_1)>            <br>            <textarea name="js_1" wrap="VIRTUAL" cols="80" rows="10"><LAYER NAME="a0" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffffff" CLIP="0,0,1,1"></LAYER><LAYER NAME="a1" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#fff000" CLIP="0,0,1,1"></LAYER><LAYER NAME="a2" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000" CLIP="0,0,1,1"></LAYER><LAYER NAME="a3" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ff00ff" CLIP="0,0,1,1"></LAYER><LAYER NAME="a4" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#00ff00" CLIP="0,0,1,1"></LAYER><LAYER NAME="a5" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF00FF" CLIP="0,0,1,1"></LAYER><LAYER NAME="a6" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF0000" CLIP="0,0,1,1"></LAYER><LAYER NAME="a7" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffffff" CLIP="0,0,2,2"></LAYER><LAYER NAME="a8" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#fff000" CLIP="0,0,2,2"></LAYER><LAYER NAME="a9" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000" CLIP="0,0,2,2"></LAYER><LAYER NAME="a10" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ff00ff" CLIP="0,0,2,2"></LAYER><LAYER NAME="a11" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#00ff00" CLIP="0,0,2,2"></LAYER><LAYER NAME="a12" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#0000ff" CLIP="0,0,2,2"></LAYER><LAYER NAME="a13" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF0000" CLIP="0,0,3,3"></LAYER><div id="starsDiv" style="position:absolute;top:0px;left:0px"><div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px;visibility:visible"></div><SCRIPT LANGUAGE="JavaScript"><!-- Original:  Kurt Grigg (kurt.grigg@virgin.net) --><!-- Web Site:  http://freespace.virgin.net/kurt.grigg --><!-- This script and many more are available free online at --><!-- The JavaScript Source!! http://javascript.internet.com --><!-- Beginvar Clrs = new Array(6);Clrs[0] = 'ff0000';Clrs[1] = '00ff00';Clrs[2] = '000aff';Clrs[3] = 'ff00ff';Clrs[4] = 'fff000';Clrs[5] = 'fffff0';var yBase = 200;var xBase = 200;var step;var currStep = 0;var Xpos = 1;var Ypos = 1;var Xs = 200;var Ys = 400;if (document.layers) {window.captureEvents(Event.MOUSEMOVE);}if (document.all) {function MoveHandler() {Xpos = document.body.scrollLeft+event.x;Ypos = document.body.scrollTop+event.y;}document.onmousemove = MoveHandler;}else if (document.layers) {function xMoveHandler(evnt) {Xpos = evnt.pageX;Ypos = evnt.pageY;}window.onMouseMove = xMoveHandler;}function Comet() {if (document.all) {yBase = window.document.body.offsetHeight / 4;xBase = window.document.body.offsetWidth / 4;}else if (document.layers) {yBase = window.innerHeight / 4;xBase = window.innerWidth / 4;}if (document.all) {for ( i = 0 ; i < starsDiv.all.length ; i++ ) {step = 3;starsDiv.all[i].style.top = Ypos + yBase*Math.cos((currStep + i*4)/12)*Math.cos(0.7+currStep/200);starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(8.2+currStep/400);for (ai = 0; ai < Clrs.length; ai++) {var c=Math.round(Math.random()*[ai]);}starsDiv.all[i].style.background = Clrs[c];   }}else if (document.layers) {for ( j = 0 ; j < 14 ; j++ ) { //number of NS layers!step = 6;var templayer = "a"+j;document.layers[templayer].top = Ypos + yBase*Math.cos((currStep + j*4)/12)*Math.cos(0.7+currStep/200);document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(8.2+currStep/400);for (aj=0; aj < Clrs.length; aj++){ var c=Math.round(Math.random()*[aj]);}document.layers[templayer].bgColor = Clrs[c];    }}currStep += step;setTimeout("Comet()", 5);}Comet();//  End --></script></textarea>            <br>            <br>            2.请按Script内的指示按你的需要修改,我已把重点部分翻译了。还有不明白的地方请到论坛发表。              </table>        <TD><IMG src="../images/space.gif"    width=11 height="1"></TD>  </TABLE><!-- #EndEditable --><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 + -