眩!亮暗变化的图片
<P>把如下代码复制到<head>与</head>之间</P><P><STYLE type=text/css><BR><!--<BR>TD {<BR> COLOR: #000000; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt<BR>;}<BR>A:visited {<BR> COLOR: #000000; TEXT-DECORATION: none<BR>;}<BR>A:link {<BR> COLOR: #000000; TEXT-DECORATION: none<BR>;}<BR>A:hover {<BR> TEXT-DECORATION: none<BR>;}<BR>#spotlight {<BR> FILTER: light<BR>}<BR>--><BR></STYLE></P>
<P>把如下代码复制到<body>与</body>之间</P>
<P><p align="center"><IMG height="120" id="spotlight" src="1/8.gif" width="96" speed="50"></P> <BR> <SCRIPT language=JavaScript1.2></P>
<P>if (document.all&&window.spotlight){<BR>var x=new Array()<BR>var direction=new Array()<BR>var y=new Array()<BR>if (spotlight.length==null){<BR>spotlight[0]=document.all.spotlight<BR>x[0]=0<BR>direction[0]="right"<BR>y[0]=spotlight[0].height<BR>spotlight[0].filters.light.addPoint(100,50,100,255,255,255,90)<BR>}<BR>else<BR>for (i=0;i<spotlight.length;i++){<BR>x[i]=0<BR>direction[i]="right"<BR>y[i]=spotlight[i].height<BR>spotlight[i].filters.light.addPoint(100,50,100,255,255,255,90)<BR>}<BR>}</P>
<P>function slidelight(cur){<BR>spotlight[cur].filters.light.MoveLight(0,x[cur],y[cur],200,-1)</P>
<P>if (x[cur]<spotlight[cur].width+200&&direction[cur]=="right")<BR>x[cur]+=10<BR>else if (x[cur]>spotlight[cur].width+200){<BR>direction[cur]="left"<BR>x[cur]-=10<BR>}<BR>else if (x[cur]>-200&&x[cur]<-185){<BR>direction[cur]="right"<BR>x[cur]+=10<BR>}<BR>else{<BR>x[cur]-=10<BR>direction[cur]="left"<BR>}<BR>}</P>
<P>if (document.all&&window.spotlight){<BR>if (spotlight.length==null)<BR>setInterval("slidelight(0)",spotlight[0].speed)<BR>else<BR>for (t=0;t<spotlight.length;t++){<BR>var temp='setInterval("slidelight('+t+')",'+spotlight[t].speed+')'<BR>eval(temp)<BR>}<BR>}<BR></SCRIPT></P>
页:
[1]