- 回帖
- 0
- 主题
- 精华
- 积分
- 6988
- 注册时间
- 2014-1-18
- 最后登录
- 1970-1-1
- 阅读权限
- 90
- 积分
- 6988
|
楼主 |
发表于 2015-11-16 22:37
|
显示全部楼层
婠婠 发表于 2015-11-16 22:31
变换的效果图好美啊,若水老师,能分享一下图片变换的代码吗?
好的,我发给你
<HTML xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:t =
"urn:schemas-microsoft-com:time"><HEAD><TITLE>-槿汐音画-</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META http-equiv=Content-Style-Type content=text/css>
<META content="MSHTML 6.00.2800.1561" name=GENERATOR>
<META http-equiv=imagetoolbar content=no>
<STYLE>.time {
BEHAVIOR: url(#default#time2)
}
t\:* {
BEHAVIOR: url(#default#time2)
}
</STYLE>
<embed style="POSITION: absolute;LEFT: 0px; TOP: 0px" src="http://www3.6000y.com/toumingflash/swf500/1wosowoso_flash_14.swf" width="1500" height="700" type="application/octet-stream" quality="high" wmode="transparent" >
<!-- 案例代码1开始 -->
<SCRIPT language=JavaScript id=code>
var Ga=new Array() <!-- //定义一个变量数组Ga -->
Ga[0]="http://www.9yuef.com/data/attachment/forum/201511/15/101219ariurrcoyeoopzi0.jpg"; <!-- // 设置要显示的图片地址,有几张就试几个,改变下标0,1,2等等,后面则是上传图片的地址-->
Ga[1]="http://www.9yuef.com/data/attachment/forum/201511/15/101217xsp9d5h4bipwtqdd.jpg";
Ga[2]="http://www.9yuef.com/data/attachment/forum/201511/15/101218km7zt872avqs87a6.jpg";
var hayasa=4000 <!-- //两个图片之间延迟时间,4000等于6秒 -->
var suu =1;
var iTransNumber=0;
var garTransitions = new Array(); //arrary of filter strings
garTransitions[0] = "progid:DXImageTransform.Microsoft.Stretch(stretchStyle='push')";
garTransitions[1] = "progid:DXImageTransform.Microsoft.Slide(slidestyle=swap,bands=1)";
garTransitions[2] = "progid:DXImageTransform.Microsoft.Pixelate(maxSquare=20)";
garTransitions[3] = "progid:DXImageTransform.Microsoft.CheckerBoard(direction=up,squaresX=12,squaresY=12)";
garTransitions[4] = "progid:DXImageTransform.Microsoft.CheckerBoard(direction=left,squaresX=12,squaresY=12)";
garTransitions[5] = "progid:DXImageTransform.Microsoft.Slide(slidestyle=swap,bands=1)";
garTransitions[6] = "progid:DXImageTransform.Microsoft.Slide(slidestyle=hide,bands=1)";
garTransitions[7] = "progid:DXImageTransform.Microsoft.Stretch(stretchstyle=hide)";
garTransitions[8] = "progid:DXImageTransform.Microsoft.Strips(motion=rightdown)";
garTransitions[9] = "progid:DXImageTransform.Microsoft.Strips(motion=rightup)";
garTransitions[10] = "progid:DXImageTransform.Microsoft.Barn(motion=in,orientation=vertical)";
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>
<IMG
style="FILTER: progid:DXImageTransform.Microsoft.Stretch(stretchStyle='POP')"
height=700 src="http://www.9yuef.com/data/attachment/forum/201511/15/101219ariurrcoyeoopzi0.jpg" width=1500 border=0 name=rittai>
<!-- //显示图片的方式,src=后面一般是第一张图片,宽度,高度位置都可以按html方法去设置 -->
</body>
<embed src="http://music.163.com/style/swf/widget.swf?sid=5275055&type=2&auto=1&width=320&height=66" width="0" height="0" allowNetworking="all"></embed>
|
|