注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

 
 
 

日志

 
 

特效音画TXT上传文本代码  

2010-01-19 10:47:00|  分类: 博客代码系列 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

翻页特效音画TXT上传文本代码

 

 

 

<HTML>

<HEAD>

<TITLE>零落</TITLE>

</HEAD>

<BODY bgcolor="#000000" >

<!-- 案例代码1开始 -->

<script id=code language=JavaScript>

var Ga=new Array()  <!-- //定义一个变量数组Ga -->

Ga[0]="第一张图片地址";      <!-- // 设置要显示的图片地址,有几张就试几个,改变下标0,1,2等等,后面则是上传图片的地址-->

Ga[1]=" 第二张图片地址";

Ga[2]=" 第三张图片地址";

Ga[3]=" 第四张图片地址";

var hayasa=9500   <!-- //两个图片之间延迟时间,50000等于4秒 -->

var suu =1;

var iTransNumber=0;

var garTransitions = new Array(); //arrary of filter strings

garTransitions[0] = "progid:DXImageTransform.Microsoft.RandomDissolve()";

garTransitions[1] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='star', motion='out')";

garTransitions[2] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='diamond', motion='in')";

garTransitions[3] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='cross', motion='out')";

garTransitions[4] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='circle', motion='in')";

garTransitions[5] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='square', motion='out')";

garTransitions[6] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='plus', motion='in')";

garTransitions[7] = "progid:DXImageTransform.Microsoft.Barn(orientation='vertial' motion='in')";

garTransitions[8] = "progid:DXImageTransform.Microsoft.Barn(orientation='vertial' motion='out')";

garTransitions[9] = "progid:DXImageTransform.Microsoft.Barn(orientation='horizontal' motion='in')";

garTransitions[10] = "progid:DXImageTransform.Microsoft.Barn(orientation='horizontal' motion='out')";

garTransitions[11] = "progid:DXImageTransform.Microsoft.Pixelate()";

garTransitions[12] = "progid:DXImageTransform.Microsoft.Inset()";

garTransitions[13] = "progid:DXImageTransform.Microsoft.Checkerboard(Direction='left')";

garTransitions[14] = "progid:DXImageTransform.Microsoft.Checkerboard(Direction='right')";

garTransitions[15] = "progid:DXImageTransform.Microsoft.Checkerboard(Direction='down')";

garTransitions[16] = "progid:DXImageTransform.Microsoft.Checkerboard(Direction='up')";

garTransitions[17] = "progid:DXImageTransform.Microsoft.RandomBars(motion='horizontal')";

garTransitions[18] = "progid:DXImageTransform.Microsoft.RandomBars(motion='vertical')";

garTransitions[19] = "progid:DXImageTransform.Microsoft.Slide(bands=5, slideStyle='push')";

garTransitions[20] = "progid:DXImageTransform.Microsoft.Slide(bands=5, slidestyle='swap')";

garTransitions[21] = "progid:DXImageTransform.Microsoft.Slide(bands=5, slidestyle='hide')";

garTransitions[22] = "progid:DXImageTransform.Microsoft.Spiral()";

garTransitions[23] = "progid:DXImageTransform.Microsoft.Stretch(stretchStyle='push')";

garTransitions[24] = "progid:DXImageTransform.Microsoft.Stretch(stretchStyle='pop')";

garTransitions[25] = "progid:DXImageTransform.Microsoft.Fade(duration=2,overlap=0)";

garTransitions[26] = "progid:DXImageTransform.Microsoft.GradientWipe(duration=2,gradientSize=0.25,motion=forward )";

garTransitions[27] = "progid:DXImageTransform.Microsoft.Wheel(duration=2,spokes=16)";

garTransitions[28] = "progid:DXImageTransform.Microsoft.RadialWipe(duration=2,wipeStyle=CLOCK)";

var kirikaeGa=new Array()

for (kazu=0;kazu<Ga.length;kazu++){

kirikaeGa[kazu]=new Image()

kirikaeGa[kazu].src=Ga[kazu]}

function kirikae(){

if (window.createPopup)

rittai.style.filter = garTransitions[iTransNumber];

iTransNumber++;

if(iTransNumber==garTransitions.length)

iTransNumber=0;

if (window.createPopup)

rittai.filters[0].apply();

document.images.rittai.src=kirikaeGa[suu].src;

if (window.createPopup)

rittai.filters[0].play()

suu++

if (suu==kirikaeGa.length)

suu=0;

setTimeout("kirikae()",hayasa)

}

window.onload=new Function("setTimeout('kirikae()',hayasa)")

</script>

<center><img src="第一张图片地址" name="rittai" width=750 height=550 border=0 style="filter:progid:DXImageTransform.Microsoft.Stretch(stretchStyle='POP')"> 

</center>

<!-- //显示图片的方式,src=后面一般是第一张图片,宽度,高度位置都可以按html方法去设置 -->

</HTML>

<EMBED src=音乐 width=0 height=0 type=audio/x-pn-realaudio-plugin loop="true" autostart="true" controls="ControlPanel,StatusBar"></EMBED>

 

 

变换色调音画TXT上传文本代码

 

 

<IMG id=img1 height=高度 src="圖片網址" width=宽度>

<SCRIPT language=JavaScript><!--

var bcolor="#ffffff"//

var numax=50;//

ccolor=new Array("#999999","#ccffff","#dd0000","#ff9900","#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=" 音樂" hidden="true" autostart="true" loop="true">

<embed style="left:180px; top:200px;POSITION: absolute; width:720px; height:300px" src=透明动画width=838 height=500 type=application/x-shockwave-flash wmode="transparent">

 

 

向左移动特效音画TXT上传文本代码

 

 

<html>

<head>

<title>梦锁</title>

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

</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<!-- ImageReady Slices (梦锁.psd) -->

<table id="__01" width="宽度" height="高度" border="0" cellpadding="0" cellspacing="0">

       <tr>

              <td>       <img src="上传后的图片地址" width="切好的图宽度" height="高度" alt=""></td>

              <td><img src="上传后的图片地址" width="切好的图宽度" height="高度" alt=""></td>

              <td>

       </tr>

</table><EMBED style="FILTER: invert()" src=音乐地址 width=0 height=0 type=audio/mpeg volume="0" autostart="TRUE" loop="true" EnableContextMenu="0" allowNetworking="internal" allowScriptAccess="never">

 <EMBED

style="LEFT: 2800px; WIDTH: 1000px; POSITION: absolute; TOP: 250px; HEIGHT: 450px"

align=center src=动画地址 width=600 height=500

type=application/octet-stream wmode="transparent" quality="high" ;;>

<!-- End ImageReady Slices -->

</body>

</html>

 

 

(注意:图片有多少张,就复制多少张图片地址的代码,动画要加多少个也是一样,复制.)

  评论这张
 
阅读(1652)| 评论(16)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017