📄 感应灵敏的鼠标文字.txt
字号:
首先将下列代码插入到<head></head>之间:
<SCRIPT language=JavaScript >
function LoadCookie(Key)
{
var CookieString = document.cookie
var CookieSet = CookieString.split(';')
var SetSize = CookieSet.length
var CookiePieces
var ReturnValue = ""
var x = 0
for (x = 0; ((x < SetSize) && (ReturnValue == "")); x ++)
{
CookiePieces = CookieSet[x].split ('=')
if (CookiePieces[0].substring (0,1) == ' ')
CookiePieces[0] = CookiePieces[0].substring (1, CookiePieces[0].length)
if (CookiePieces[0] == Key)
{
ReturnValue = CookiePieces[1]
break
}
}
return ReturnValue
}
if ("" == LoadCookie("etangWHAD"))
{
document.cookie = "etangWHAD=done; path=/"
var myURL='/-fs0/4/4/d/home_ad/ad.html';
var myWidth='468';
var myHeight='130';
var popV='width='+myWidth+',height='+myHeight+',titlebar=0,toolbar=0,location=0,menubar=0,scrollbars=no,resizable=no';
popV+='scrollbars=0,resizable=0,channelmode=0,directories=0,status=0'; var dz=document;
if(parseFloat(navigator.appVersion)>=4){var myTI=screen.height/2-myHeight/2;
var myLI=screen.width/2-myWidth/2;popV+=',top='+myTI+',left='+myLI;}
if(dz.cookie.indexOf('e=llo')<=0){self.focus();fastClickpopWindow();dz.cookie='he=llo';}
function fastClickpopWindow(){window.open(myURL,'etangWHAD',popV);self.focus();}
}
</SCRIPT>
再将下列代码插入到<head></head>之间:
<!-- 特效开始 -->
<DIV id=dot0
style="HEIGHT: 9px; POSITION: absolute; VISIBILITY: hidden; WIDTH: 9px; Z-INDEX: 9">*</DIV>
<DIV id=dot1
style="COLOR: #ff0000; FILTER: dropshadow(color=#999999,OffX=3,OffY=3,positive=1); HEIGHT: 9px; POSITION: absolute; WIDTH: 9px; Z-INDEX: 9">红</DIV>
<DIV id=dot2
style="COLOR: #00ff00; FILTER: dropshadow(color=#999999,OffX=3,OffY=3,positive=1); HEIGHT: 12px; POSITION: absolute; WIDTH: 13px; Z-INDEX: 9">蜻</DIV>
<DIV id=dot3
style="COLOR: #0000ff; FILTER: dropshadow(color=#999999,OffX=3,OffY=3,positive=1); HEIGHT: 19px; POSITION: absolute; WIDTH: 20px; Z-INDEX: 9">蜓</DIV>
<DIV id=dot4
style="COLOR: #ff00ff; FILTER: dropshadow(color=#999999,OffX=3,OffY=3,positive=1); HEIGHT: 26px; POSITION: absolute; WIDTH: 26px; Z-INDEX: 9">创</DIV>
<DIV id=dot5
style="COLOR: #000000; FILTER: dropshadow(color=#999999,OffX=3,OffY=3,positive=1); HEIGHT: 30px; POSITION: absolute; WIDTH: 31px; Z-INDEX: 9">作</DIV>
<DIV id=dot6
style="COLOR: #ff0000; FILTER: dropshadow(color=#999999,OffX=3,OffY=3,positive=1); HEIGHT: 32px; POSITION: absolute; WIDTH: 33px; Z-INDEX: 9">室</DIV>
<SCRIPT language="JavaScript">
var nDots = 7;
if (document.all&&window.print)
document.body.style.cssText="overflow-x:hidden;overflow-y:scroll"
var Xpos = -990;
var Ypos = -990;
var DELTAT = .01;
var SEGLEN = 10;
var SPRINGK = 10;
var MASS = 1;
var GRAVITY = 50;
var RESISTANCE = 10;
var STOPVEL = 0.1;
var STOPACC = 0.1;
var DOTSIZE = 11;
var BOUNCE = 0.75;
var isNetscape = navigator.appName=="Netscape";
var followmouse = true;
var dots = new Array();
init();
function init()
{
var i = 0;
for (i = 0; i < nDots; i++) {
dots[i] = new dot(i);
}
if (!isNetscape) {
}
for (i = 0; i < nDots; i++) {
dots[i].obj.left = dots[i].X;
dots[i].obj.top = dots[i].Y;
}
if (isNetscape) {
startanimate();
} else {
setTimeout("startanimate()", 2000);
}
}
function dot(i)
{
this.X = Xpos;
this.Y = Ypos;
this.dx = 0;
this.dy = 0;
if (isNetscape) {
this.obj = eval("document.dot" + i);
} else {
this.obj = eval("dot" + i + ".style");
}
}
function startanimate() {
setInterval("animate()", 20);
}
function setInitPositions(dots)
{
var startloc = document.all.tags("LI");
var i = 0;
for (i = 0; i < startloc.length && i < (nDots - 1); i++) {
dots[i+1].X = startloc[i].offsetLeft
startloc[i].offsetParent.offsetLeft - DOTSIZE;
dots[i+1].Y = startloc[i].offsetTop +
startloc[i].offsetParent.offsetTop + 2*DOTSIZE;
}
dots[0].X = dots[1].X;
dots[0].Y = dots[1].Y - SEGLEN;
}
function MoveHandler(e)
{
Xpos = e.pageX;
Ypos = e.pageY;
return true;
}
function MoveHandlerIE() {
Xpos = window.event.x + document.body.scrollLeft;
Ypos = window.event.y + document.body.scrollTop;
}
if (isNetscape) {
document.captureEvents(Event.MOUSEMOVE);
document.onMouseMove = MoveHandler;
} else {
document.onmousemove = MoveHandlerIE;
}
function vec(X, Y)
{
this.X = X;
this.Y = Y;
}
function springForce(i, j, spring)
{
var dx = (dots[i].X - dots[j].X);
var dy = (dots[i].Y - dots[j].Y);
var len = Math.sqrt(dx*dx + dy*dy);
if (len > SEGLEN) {
var springF = SPRINGK * (len - SEGLEN);
spring.X += (dx / len) * springF;
spring.Y += (dy / len) * springF;
}
}
function animate() {
var start = 0;
if (followmouse) {
dots[0].X = Xpos;
dots[0].Y = Ypos;
start = 1;
}
for (i = start ; i < nDots; i++ ) {
var spring = new vec(0, 0);
if (i > 0) {
springForce(i-1, i, spring);
}
if (i < (nDots - 1)) {
springForce(i+1, i, spring);
}
var resist = new vec(-dots[i].dx * RESISTANCE,
-dots[i].dy * RESISTANCE);
var accel = new vec((spring.X + resist.X)/ MASS,
(spring.Y + resist.Y)/ MASS + GRAVITY);
dots[i].dx += (DELTAT * accel.X);
dots[i].dy += (DELTAT * accel.Y);
if (Math.abs(dots[i].dx) < STOPVEL &&
Math.abs(dots[i].dy) < STOPVEL &&
Math.abs(accel.X) < STOPACC &&
Math.abs(accel.Y) < STOPACC) {
dots[i].dx = 0;
dots[i].dy = 0;
}
dots[i].X += dots[i].dx;
dots[i].Y += dots[i].dy;
var height, width;
if (isNetscape) {
height = window.innerHeight + document.scrollTop;
width = window.innerWidth + document.scrollLeft;
} else {
height = document.body.clientHeight + document.body.scrollTop;
width = document.body.clientWidth + document.body.scrollLeft;
}
if (dots[i].Y >= height - DOTSIZE - 1) {
if (dots[i].dy > 0) {
dots[i].dy = BOUNCE * -dots[i].dy;
}
dots[i].Y = height - DOTSIZE - 1;
}
if (dots[i].X >= width - DOTSIZE) {
if (dots[i].dx > 0) {
dots[i].dx = BOUNCE * -dots[i].dx;
}
dots[i].X = width - DOTSIZE - 1;
}
if (dots[i].X < 0) {
if (dots[i].dx < 0) {
dots[i].dx = BOUNCE * -dots[i].dx;
}
dots[i].X = 0;
}
dots[i].obj.left = dots[i].X;
dots[i].obj.top = dots[i].Y;
}
} </SCRIPT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -