人静版主的音画制作堪称湖知网一绝!我硬是佩服的五体投地,羡慕不己!好想好想学几招啊!如若有机会一定向 ... 绿水青山 发表于 2011-3-29 21:07
青山君,做得不好,湖知网网络高手如云,各有特色,我只是套用一下音画代码。其实采用Html网络语言制作音画很简单,达到唯美效果却很难,如何去变通,首先要去理解每一组代码的功用,理解了,就能变通它据为己有。这副音画代码如下:
<HTML> <HEAD> <TITLE>特效音画--夜深人静编制</TITLE> </HEAD> <BODY bgcolor="#fef4d2" > <script id=code language=JavaScript> var Ga=new Array() <!-- //定义一个变量数组Ga --> Ga[0]="http://2010.hnzqw.com/UploadFile/2011-3/20113281385762571.jpg";
Ga[1]="http://2010.hnzqw.com/UploadFile/2011-3/20113281385743370.jpg"; Ga[2]="http://2010.hnzqw.com/UploadFile/2011-3/20113281385723546.jpg"; Ga[3]="http://2010.hnzqw.com/UploadFile/2011-3/201132817174799685.jpg"; Ga[4]="http://2010.hnzqw.com/UploadFile/2011-3/201132815334890100.jpg"; Ga[5]="http://2010.hnzqw.com/UploadFile/2011-3/201132815334865818.jpg"; Ga[6]="http://2010.hnzqw.com/UploadFile/2011-3/201132815334845994.jpg"; Ga[7]="http://2010.hnzqw.com/UploadFile/2011-3/201132815334887171.jpg"; Ga[8]="http://2010.hnzqw.com/UploadFile/2011-3/201132823153339625.jpg"; Ga[9]="http://2010.hnzqw.com/UploadFile/2011-3/201132823154571010.jpg"; Ga[10]="http://2010.hnzqw.com/UploadFile/2011-3/20113281385742289.jpg"; Ga[11]="http://2010.hnzqw.com/UploadFile/2011-3/201132915165680487.jpg"; Ga[12]="http://2010.hnzqw.com/UploadFile/2011-3/201132915165667422.jpg"; Ga[13]="http://2010.hnzqw.com/UploadFile/2011-3/201132915165664423.jpg"; Ga[14]="http://2010.hnzqw.com/UploadFile/2011-3/201132915165699992.jpg";
var hayasa=2000 <!-- //两个图片之间延迟时间,4000等于4秒 一共14副图片组合 --> var suu =1; var iTransNumber=0; var garTransitions = new Array(); //arrary of filter strings garTransitions[0] = "progid DXImageTransform.Microsoft.RandomDissolve()"; garTransitions[1] = "progidDXImageTransform.Microsoft.Iris(irisStyle=, motion=out)"; garTransitions[2] = "progidDXImageTransform.Microsoft.Iris(irisStyle=diamond, motion=in)"; garTransitions[3] = "progidDXImageTransform.Microsoft.Iris(irisStyle=cross, motion=)"; garTransitions[4] = "progidDXImageTransform.Microsoft.Iris(irisStyle=circle, motion=)"; garTransitions[5] = "progidDXImageTransform.Microsoft.Iris(irisStyle=square, motion=out)"; garTransitions[6] = "progidDXImageTransform.Microsoft.Iris(irisStyle=plus, motion=in)"; garTransitions[7] = "progidDXImageTransform.Microsoft.Barn(orientation=vertial motion=in)"; garTransitions[8] = "progidDXImageTransform.Microsoft.Barn(orientation=vertial motion=out)"; garTransitions[9] = "progidDXImageTransform.Microsoft.Barn(orientation=horizontal motion=in)"; garTransitions[10] = "progidDXImageTransform.Microsoft.Barn(orientation=horizontalmotion=out)"; garTransitions[11] = "progidDXImageTransform.Microsoft.Pixelate()"; garTransitions[12] = "progidDXImageTransform.Microsoft.Inset()"; garTransitions[13] = "progidDXImageTransform.Microsoft.Checkerboard(Direction=left)"; garTransitions[14] = "progidDXImageTransform.Microsoft.Checkerboard(Direction=right)"; garTransitions[15] = "progidDXImageTransform.Microsoft.Checkerboard(Direction=down)"; garTransitions[16] = "progidDXImageTransform.Microsoft.Checkerboard(Direction=up)"; garTransitions[17] = "progidXImageTransform.Microsoft.RandomBars(motion=horizontal)"; garTransitions[18] = "progidDXImageTransform.Microsoft.RandomBars(motion=vertical)"; garTransitions[19] = "progidDXImageTransform.Microsoft.Slide(bands=5, slideStyle=push)"; garTransitions[20] = "progidDXImageTransform.Microsoft.Slide(bands=5, slidestyle=swap)"; garTransitions[21] = "progidDXImageTransform.Microsoft.Slide(bands=5, slidestyle=hide)"; garTransitions[22] = "progidDXImageTransform.Microsoft.Spiral()"; garTransitions[23] = "progidDXImageTransform.Microsoft.Stretch(stretchStyle=push)"; garTransitions[24] = "progidDXImageTransform.Microsoft.Stretch(stretchStyle=pop)"; garTransitions[25] = "progidDXImageTransform.Microsoft.Fade(duration=2,overlap=0)"; garTransitions[26] = "progidDXImageTransform.Microsoft.GradientWipe(duration=2,gradientSize=0.25,motion=forward )"; garTransitions[27] = "progidDXImageTransform.Microsoft.Wheel(duration=2,spokes=16)"; garTransitions[28] = "progidDXImageTransform.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) } setTimeout("kirikae()",hayasa)
</script> <center><img src="http://2010.hnzqw.com/UploadFile/2011-3/20113281385742289.jpg" name="rittai" width=756 height=355 border=0 style="filter:progidXImageTransform.Microsoft.Stretch(stretchStyle=)"> </center> <!-- //显示图片的方式,src=后面一般是第一张图片,宽度,高度位置在这里设置 --><BGSOUND balance=0 src="http://975.96911.com/music/%e5%85%b0%e8%8a%b1%e8%8d%89.wma" volume=-240 loop=infinite> </HTML> <SCRIPT language=javascript> function click() {
if (event.button==2) { // alert('赠湘西知青 谢谢欣赏!') } } document.onmousedown=click </SCRIPT> <SCRIPT language=JavaScript>
|