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

📄 spotlight.html

📁 java脚本即用特效源码从入门到精通帮你渡过难关
💻 HTML
字号:
<HTML>
<HEAD>
<TITLE>聚光灯</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE>#spotlight {
	FILTER: light
}
body {  margin: 0px; font-size: 9pt}
</STYLE>
<SCRIPT language=JavaScript1.2>

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=40
}



function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}

</SCRIPT>
</HEAD>
<BODY bgColor=#000000 text="#FFFFFF" link="#66FF33" vlink="#66FF33" alink="#99FF33">


  <div align="center"> 
    <p><font size="5">聚光灯<b></font> </p>
    </div>
<table border=0 cellpadding=1 cellspacing=1>
  <tr> 
    <td valign="top"> 
      <div align=center><a 
            href="http://www.sstp.com.cn"><img 
            border=0 height=24 name=Image2 onMouseOut=low(this) 
            onMouseOver=high(this) 
            src="image01.gif" 
            style="FILTER: alpha(opacity=40)" width=154></a></div>
      <div align=center><a 
            href="http://www.sstp.com.cn/newbook/newbook.htm"><img border=0 
            height=24 name=Image3 onMouseOut=low(this) onMouseOver=high(this) 
            src="image03.gif" 
            style="FILTER: alpha(opacity=40)" width=154></a></div>
      <div align=center><a 
            href="http://www.sstp.com.cn/computer.htm"><img 
            border=0 height=24 name=Image4 onMouseOut=low(this) 
            onMouseOver=high(this) 
            src="image04.gif" 
            style="FILTER: alpha(opacity=40)" width=154></a></div>
      <div align=center><a 
            href="http://www.sstp.com.cn/chaxun.htm"><img 
            border=0 height=24 onMouseOut=low(this) onMouseOver=high(this) 
            src="image05.gif" 
            style="FILTER: alpha(opacity=40)" width=154 name="image5"></a></div>
      <div align=center><a 
            href="http://www.sstp.com.cn/buybook.htm" target="_blank"><img 
            border=0 height=24 name=Image6 onMouseOut=low(this) 
            onMouseOver=high(this) 
            src="image06.gif" 
            style="FILTER: alpha(opacity=40)" width=154></a></div>
      <div align=center><a href="http://www.sstp.com.cn/yemian/CERtusi.htm" 
            target=_blank><img border=0 height=24 name=Image7 
            onMouseOut=low(this) onMouseOver=high(this) 
            src="image01.gif" 
            style="FILTER: alpha(opacity=40)" width=154></a>
      </div>
    </td>
  </tr>
</table>
<P>
  <SCRIPT language=JavaScript1.2>


if (document.all&&window.spotlight){
var x=new Array()
var direction=new Array()
var y=new Array()
if (spotlight.length==null){
spotlight[0]=document.all.spotlight
x[0]=0
direction[0]="right"
y[0]=spotlight[0].height
spotlight[0].filters.light.addPoint(100,50,100,255,255,255,90)
}
else
for (i=0;i<spotlight.length;i++){
x[i]=0
direction[i]="right"
y[i]=spotlight[i].height
spotlight[i].filters.light.addPoint(100,50,100,255,255,255,90)
}
}

function slidelight(cur){
spotlight[cur].filters.light.MoveLight(0,x[cur],y[cur],200,-1)

if (x[cur]<spotlight[cur].width+200&&direction[cur]=="right")
x[cur]+=10
else if (x[cur]>spotlight[cur].width+200){
direction[cur]="left"
x[cur]-=10
}
else if (x[cur]>-200&&x[cur]<-185){
direction[cur]="right"
x[cur]+=10
}
else{
x[cur]-=10
direction[cur]="left"
}
}

if (document.all&&window.spotlight){
if (spotlight.length==null)
setInterval("slidelight(0)",spotlight[0].speed)
else
for (t=0;t<spotlight.length;t++){
var temp='setInterval("slidelight('+t+')",'+spotlight[t].speed+')'
eval(temp)
}
}
</SCRIPT>
</P>

</BODY></HTML>

⌨️ 快捷键说明

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