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
>
查看全文
相关阅读:
浅谈Linux进程
POJ 1426 Find The Multiple
JS JavaScript闭包和作用域
JS JavaScript深拷贝、浅拷贝
JS JavaScript中的文档碎片 DocumentFragement JS性能优化
前端DOM知识点
JS JavaScript中的this
JS JavaScript实现杨辉三角
JS JavaScript事件循环机制
ES6基本语法
原文地址:https://www.cnblogs.com/nasdaqhe/p/542017.html
最新文章
this.$emit('on-select-change' emit里面不能写大写字母
多表单异步验证 可以用 Promise validate
navicat 链接数据库查看的工具 可以同时查看各种数据库 MySql SqlServer
清空表单方法 清空变量 iview modal
iview modal 点击打开窗口,打开前先销毁里面的内容再打开
iview table 已选项的数据 this.$refs.tables.$refs.tablesMain.getSelection()
Modal 高度 在里面css里写高 | iview
chart 图片组件 生成后不能动态更新,需要销毁dom,从新载入 用 v-if 和 this.$nextTick(() => {
iview table 勾选当前行代码 data key _checked: true
Object.assign(o1, o2, o3) 对象 复制 合拼
热门文章
vscode vue template 下 style 的样式自动提示 #bug 这个搞完vue语法esLint就又不好使了,ERR
VsCode使用之HTML 中 CSS Class 智能提示
FZU 2150 Fire Game
feof()函数问题
浅谈LInux线程
POJ 3414 Pots
数据结构学习--树(一)
POJ 3087 Shuffle'm Up
POJ 2362 Square
POJ 3126 Prim Parh
Copyright © 2011-2022 走看看