当前位置:首页 >> 实用素材 >> 特效代码 >> 变色代码
    
  双击自动滚屏  
变色代码

发表日期:2009年7月15日  出处:收藏  作者:ymxj  本页面已被访问 20209 次

<HEAD>
<TITLE>1234</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb_2312">
<META http-equiv=Content-Style-Type content=text/css>
<META http-equiv=imagetoolbar content=no>
<STYLE>
<!--
.time {
 BEHAVIOR: url(#default#time2)
}
v\:* {
 BEHAVIOR: url(#default#VML)
}
-->
</STYLE>
</HEAD>
<BODY onload=flash()>
<TABLE style="LEFT: 0px; WIDTH: 1000px; POSITION: absolute; TOP: 0px; HEIGHT: 650px" width=1000 border=0>
<TBODY>
<TR>
<TD height=650><IMG id=img1 style="FILTER: progid:DXImageTransform.Microsoft.Light()" height=650 src="图片地址" width=1000>

<DIV style="LEFT: -150px; POSITION: absolute; TOP: 109px">
<EMBED src=FLASH地址 width=730 height=449 type=application/x-shockwave-flash quality="high" wmode="transparent"第一个FLASH></EMBED></DIV>

</TD></TR></TBODY></TABLE>
<SCRIPT language=JavaScript><!--
var bcolor="#ffffff"//
var numax=50;//
ccolor=new Array("#999999","#ff9900","#015656","#e07247","#D2691E","#5F9EA0","#513f67","#90EE90","#DCDCDC","#4682B4");


img1.style.filter="progid:DXImageTransform.Microsoft.Light()"


iii=0
col="0123456789abcdef"
rr=col.indexOf(ccolor[0].substring(1,2))*16+col.indexOf(ccolor[0].substring(2,3));
gg=col.indexOf(ccolor[0].substring(3,4))*16+col.indexOf(ccolor[0].substring(4,5));
bb=col.indexOf(ccolor[0].substring(5,6))*16+col.indexOf(ccolor[0].substring(6,7));
eval("img1.filters['DXImageTransform.Microsoft.Light'].addAmbient("+rr+","+gg+","+bb+",100)")
iii=1
function changecolor(num,r,g,b){
if(num==0){
r=col.indexOf(ccolor[iii].substring(1,2))*16+col.indexOf(ccolor[iii].substring(2,3));
g=col.indexOf(ccolor[iii].substring(3,4))*16+col.indexOf(ccolor[iii].substring(4,5));
b=col.indexOf(ccolor[iii].substring(5,6))*16+col.indexOf(ccolor[iii].substring(6,7));
}
//status=num+","+((r-rr)*num/numax+rr)+","+((g-gg)*num/numax+gg)+","+((b-bb)*num/numax+bb)
eval("img1.filters['DXImageTransform.Microsoft.Light'].changecolor(0,"+((r-rr)*num/numax+rr)+","+((g-gg)*num/numax+gg)+","+((b-bb)*num/numax+bb)+",100)")
//eval("img1.filters['DXImageTransform.Microsoft.Light'].addAmbient("+((r-rr)*num/numax+rr)+","+((g-gg)*num/numax+gg)+","+((b-bb)*num/numax+bb)+",100)")
if(num<numax){
num=num+1;
setTimeout('changecolor('+num+','+r+','+g+','+b+')',100)
}else{
num=0;
rr=r;
gg=g;
bb=b;
iii=iii+1;
if(iii>ccolor.length-1) iii=0;
setTimeout('changecolor('+num+','+r+','+g+','+b+')',2000)
}
}
changecolor(0);
// -->
</SCRIPT>

 

<BR><BR>
<embed width="1" height="1" type="application/x-mplayer2" volume="0" playcount="0" autostart="TRUE" showgotobar="0" showstatusbar="0" showdisplay="0" filename="歌曲地址" autoplay="false" loop="true"></embed>



  双击自动滚屏  
  相关评论:    

 没有相关评论

  发表评论:    

用 户 名:
电子邮件:
评论内容:
(最多评论字数:500)

心缘之梦 | 设为首页 | 加入收藏 | 联系我们 | 进入管理 |

联系人:“心缘之梦”微信群yueyuanzhongqiu20080815