zoukankan
html css js c++ java
javascript图片渐变轮换效果
<
html
>
<
head
>
<
title
>
图片渐变轮换效果
</
title
>
<
meta name
=
"
generator
"
content
=
"
editplus
"
>
<
meta name
=
"
author
"
content
=
"
5dshow.com
"
>
</
head
>
<
body
>
<
p
>
图片渐变轮换效果(IE),请等几秒钟看效果
</
p
>
<
a href
=
"
#
"
id
=
"
javascript.a
"
><
img src
=
"
UploadFiles/2006-6/69311881.jpg
"
id
=
"
javascript.img
"
border
=
0
style
=
"
filter:blendTrans(duration=2)
"
width
=
"
240
"
height
=
"
180
"
></
a
>
<
script
>
<!--
var
ImgSrc
=
new
Array();
//
图片地址
ImgSrc[
0
]
=
"
UploadFiles/2006-6/69846915.jpg
"
ImgSrc[
1
]
=
"
UploadFiles/2006-7/73557027.jpg
"
ImgSrc[
2
]
=
"
UploadFiles/2006-7/73557027.jpg
"
ImgSrc[
3
]
=
"
UploadFiles/2006-7/79256345.jpg
"
for
(
var
i
=
0
;i
<
ImgSrc.length;i
++
)
{(
new
Image()).src
=
ImgSrc[i];}
//
预加载图片
var
ImgAlt
=
new
Array();
//
鼠标放上去显示的文字
ImgAlt[
0
]
=
"
合纵堂相簿1
"
ImgAlt[
1
]
=
"
合纵堂相簿2
"
ImgAlt[
2
]
=
"
合纵堂相簿3
"
ImgAlt[
3
]
=
"
合纵堂相簿4
"
var
ImgHerf
=
new
Array();
//
链接
ImgHerf[
0
]
=
"
0/5dshow/archives/2006/200669165010.html
"
ImgHerf[
1
]
=
"
0/5dshow/archives/2006/200669165010.html
"
ImgHerf[
2
]
=
"
0/qiaomai/archives/2006/200673211517.html
"
ImgHerf[
3
]
=
"
0/qiaomai/archives/2006/200679131446.html
"
var
step
=
0
;
function
slideit()
{
var
oImg
=
document.getElementById(
"
javascript.img
"
);
if
(document.all)
{oImg.filters.blendTrans.apply();}
oImg.src
=
"
ImgSrc[step]
"
;
document.getElementById(
"
javascript.a
"
).href
=
"
ImgHerf[step]
"
;
oImg.title
=
ImgAlt[step];
if
(document.all)
{oImg.filters.blendTrans.play();}
step
=
(step
<
(ImgSrc.length
-
1
))
?
(step
+
1
):
0
;
(
new
Image()).src
=
ImgSrc[step];
//
加载下一个图片
}
setInterval(
"
slideit()
"
,
3000
);
//
-->
</
script
>
</
body
>
</
html
>
查看全文
相关阅读:
Class加载顺序
Java中9大内置基本数据类型Class实例和数组的Class实例(转载)
java配置日志总结
Java格式化CST时间(mysql date类型)
对称二叉树
模拟--滑动窗口最大值
group by两个条件
P1996 约瑟夫问题
C++命名空间、标准库(std,全局命名空间)
java中引用对比C++指针
原文地址:https://www.cnblogs.com/nasdaqhe/p/542017.html
最新文章
RPC
OOP七大原则
佛教
从单机到集群MySQL
db2 连接问题
concat
可以使用流体布局 display:'-webkit-box' 来实现div 平铺
前端 当两个数组合并时 a,b
前端 flex 布局
JVM 探究
热门文章
Spring事务传播特性
虚拟机安装centOS7带图形界面
JS 对象做追加, 直接把B对象的属性追加到A对象!
微信公众号推送消息给关注的用户遇到的问题
easypoi 报错You can define up to 64000styles in a .xlsx workbook
win mysql8.0.20安装
IllegalMonitorStateException异常
MySQL 按年龄分组统计
IDEA git 出现的异常.
mybatis if test 条件参数为0 语句为加入到查询语句中解决
Copyright © 2011-2022 走看看