UID305
主题
帖子
积分16558
金钱
贡献
阅读权限150
在线时间 小时
最后登录1970-1-1
注册时间2016-8-15
|
地板
楼主 |
发表于 2016-10-30 00:35:38
|
只看该作者
html渐变滤镜代码
<HTML xmlns:t = "urn:schemas-microsoft-com:time" xmlns:v =
"urn:schemas-microsoft-com:vml"><HEAD><TITLE>漫步特效</TITLE>
<STYLE type=text/css>.time {
BEHAVIOR: url(#default#time2)
}
t\:* {
BEHAVIOR: url(#default#time2)
}
v\:* {
BEHAVIOR: url(#default#VML)
}
</STYLE>
</head>
<TABLE style="LEFT: 0px; POSITION: absolute; TOP: 0px;
width : 250px;
height :400px;
" border="0" width="250">
<TBODY>
<TR>
<BODY bgColor=#000000><!-- 案例代码1开始 -->
<SCRIPT language=JavaScript id=code>
var Ga=new Array() <!-- //定义一个变量数组Ga -->
Ga[0]="http://ftp6.oolove.com/ydmb/c/w9.jpg "; <!-- // 设置要显示的图片地址,有几张就试几个,改变下标0,1,2等等,后面则是上传图片的地址-->
Ga[1]="http://ftp6.oolove.com/ydmb/c/w2.jpg";
Ga[2]="http://ftp6.oolove.com/ydmb/c/w3.jpg";
Ga[3]="http://ftp6.oolove.com/ydmb/c/w4.jpg";
Ga[4]="http://ftp6.oolove.com/ydmb/c/w5.jpg";
Ga[5]="http://ftp6.oolove.com/ydmb/c/w6.jpg";
Ga[6]="http://ftp6.oolove.com/ydmb/c/w7.jpg";
Ga[7]="http://ftp6.oolove.com/ydmb/c/w8.jpg";
var hayasa=9000 <!-- //两个图片之间延迟时间,5000等于6秒 -->
var suu =1;
var iTransNumber=0;
var garTransitions = new Array(); //arrary of filter strings
garTransitions[0] = "progid:DXImageTransform.Microsoft.Iris(irisstyle=square,motion=in)";
garTransitions[1] = "progid:DXImageTransform.Microsoft.Iris(irisstyle=cross,motion=out)";
garTransitions[2] = "progid:DXImageTransform.Microsoft.Iris(irisstyle=diamond,motion=in)";
garTransitions[3] = "progid:DXImageTransform.Microsoft.Iris(irisstyle=cross,motion=in)";
garTransitions[4] = "progid:DXImageTransform.Microsoft.Iris(irisstyle=plus,motion=out)";
garTransitions[5] = "progid:DXImageTransform.Microsoft.Iris(irisstyle=plus,motion=in)";
garTransitions[6] = "progid:DXImageTransform.Microsoft.Iris(irisstyle=star,motion=out)";
garTransitions[7] = "progid:DXImageTransform.Microsoft.CheckerBoard (direction=down,squaresX=12,squaresY=12)";
garTransitions[8] = "progid:DXImageTransform.Microsoft.Slide(slidestyle=push,bands=1)";
garTransitions[9] = "progid:DXImageTransform.Microsoft.Slide(slidestyle=swap,bands=1)";
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=345 src="http://ftp6.oolove.com/ydmb/c/w1.jpg" width=563 border=0 name=rittai>
<!-- //显示图片的方式,src=后面一般是第一张图片,宽度,高度位置都可以按html方法去设置 -->
</body>
|
评分
-
3
查看全部评分
-
|