zoukankan
html css js c++ java
超酷的 javascript 图片转换 效果
<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
>
<!--
saved from url=(0022)http://cpu.zol.com.cn/
-->
<
HTML
><
HEAD
><
TITLE
>
图片转换
</
TITLE
>
</
HEAD
>
<
BODY
>
<!--
动态图开始
-->
<
SCRIPT
language
=javascript
type
=text/javascript
>
<!--
//
var
imgUrl
=
new
Array();
var
imgLink
=
new
Array();
var
imgTitle
=
new
Array();
var
imgDigest
=
new
Array();
var
adNum
=
0
;imgUrl[
1
]
=
'http:
//
img.zol.com.cn/article/4/559/lihsZHG3eV8Es.jpg';
imgLink[
1
]
=
'
/
26
/
266536
.html';
imgTitle[
1
]
=
'还不快行动?盒装奔腾4 506降价拍卖';
imgUrl[
2
]
=
'http:
//
img.zol.com.cn/article/4/525/liYd33MzUGHJM.jpg';
imgLink[
2
]
=
'
/
26
/
265928
.html';
imgTitle[
2
]
=
'CPU价格骤降 双核心奔腾D引燃导火索';
imgUrl[
3
]
=
'http:
//
img.zol.com.cn/article/4/425/liy4cyGtOdXxk.jpg';
imgLink[
3
]
=
'
/
26
/
264586
.html';
imgTitle[
3
]
=
'1GB海盗船配6600 五千元A64游戏方案';
var
imgPre
=
new
Array();
var
j
=
0
;
for
(i
=
1
;i
<=
3
;i
++
)
{
if
( (imgUrl[i]
!=
""
)
&&
(imgLink[i]
!=
""
) )
{
j
++
;
}
else
{
break
;
}
}
function
playTran()
{
if
(document.all)
imgInit.filters.revealTrans.play();
}
var
key
=
0
;
function
nextAd()
{
if
(adNum
<
j)adNum
++
;
else
adNum
=
1
;
if
( key
==
0
)
{
key
=
1
;
}
else
if
(document.all)
{
imgInit.filters.revealTrans.Transition
=
Math.floor(Math.random()
*
23
);
imgInit.filters.revealTrans.apply();
playTran();
}
document.images.imgInit.src
=
imgUrl[adNum];
document.images.imgInit.alt
=
imgTitle[adNum];
img_title.innerHTML
=
'
<
a href
=
'
+
imgLink[adNum]
+
' class
=
a_bei12 title
=
'
+
imgTitle[adNum]
+
'
>
'
+
imgTitle[adNum]
+
'
</
a
>
';
theTimer
=
setTimeout(
"
nextAd()
"
,
6000
);
}
function
goUrl()
{
jumpUrl
=
imgLink[adNum];
jumpTarget
=
'_blank';
if
(jumpUrl
!=
'')
{
if
(jumpTarget
!=
'')
window.open(jumpUrl,jumpTarget);
else
location.href
=
jumpUrl;
}
}
//
-->
</
SCRIPT
>
<!--
动态图结束
-->
<
SPAN
style
="CURSOR: hand"
onclick
=javascript:goUrl()
><
IMG
class
=img01
id
=imgInit
style
="BORDER-LEFT-COLOR: black; FILTER: revealTrans(duration=1,transition=5); BORDER-BOTTOM-COLOR: black; COLOR: #000000; BORDER-TOP-COLOR: black; BORDER-RIGHT-COLOR: black"
height
=180
alt
=""
src
="http://img.zol.com.cn/article/4/559/lihsZHG3eV8Es.jpg"
width
=240
border
=0
name
=imgInit
></
SPAN
>
<
SPAN
id
=img_title
></
SPAN
>
<
SCRIPT
language
=javascript
type
=text/javascript
>
document.getElementById(
"
imgInit
"
).src
=
"
javascript:nextAd()
"
;
</
SCRIPT
>
</
body
></
HTML
>
查看全文
相关阅读:
puttytray
让程序同时输出到文件与屏幕(tee)
R将文件转化为矩阵
gnome3下gedit乱码的解决方案
perl随机打乱数组
gnome 3.6
google earth 离线下载地址
wget 使用技巧
运行pindel注意事项
获取当前行号与列号
原文地址:https://www.cnblogs.com/chengulv/p/354938.html
最新文章
一些关于面向对象的思考(摘自python基础教程)
python中KeyError解决方法
python笔记之数据结构
HDOJ 1091 A+B for InputOutput Practice (III)
HDOJ 1093 A+B for InputOutput Practice (V)
HDOJ 1092 A+B for InputOutput Practice (IV)
HDOJ 1090 A+B for InputOutput Practice (II)
HDOJ 1094 A+B for InputOutput Practice (VI)
HDOJ 1089 A+B for InputOutput Practice (I)
学习框架(截取自:程序员之路——学习技术的方法十三燕)
热门文章
vba将select的值直接赋给变量
vba中的函数,判断日期格式数字和求个数
sql语句字符串拼接时技巧运用
vba中计算程序运行时间
sql中case when 的用法,字符串拼接,以及连接其他服务器数据库。
sql中的if语句的用法
excel或vba中的字符串拼接
vba中截取字符串,计算空格的个数
sql 中case when 用法 和 拼接字符串
gatk遇到Too many open files错误的解决办法
Copyright © 2011-2022 走看看