就下载 —— 安全下载、无毒手机软件、绿色软件官方下载网站最近更新|下载排行|热门标签|收藏本站

您现在的位置是:就下载 > IT资讯 > 软件教程 > ps教程:变色大图音画代码

ps教程:变色大图音画代码

时间:2014-10-17 09:54:47 来源: 复制分享

变色大图音画教材 - LUANFENG--158168 - LUANFENG--158168

代码如下:
<TABLE style="LEFT: -120px; WIDTH: 1000px; POSITION: relative; TOP: 0px" cellSpacing=0 cellPadding=0 width=1000 align=center border=0>

<TBODY>

<TR>

<TD><IMG id=img1 height=600 src="http://down.9xz.net/tupian/201042994939434.jpg" width=1000> </TD></TR>

<TR>
<SCRIPT language=JavaScript><!--

var bcolor="#ffffff"//

var numax=50;//

ccolor=new Array("#999999","#ff9900","#dd0000","#ccffff","#0000ff","#9cdc3d","#444444","#ff99ff");

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>
<EMBED src=http://storage.pomoho.com/mv/music/a327466075_768865220.mp3 hidden=true type=audio/mpeg autostart="true" loop="true"></EMBED>

上一篇:ps教程:单色背景扣图法

本文地址:软件教程 >> http://www.9xz.net/it/ruanjianjiaocheng/20637.html

下一篇:CSS入门教程:关于CSS样式表

  • 打印
推荐阅读
热门专题
推荐内容
热点内容