zoukankan
html css js c++ java
javascript幻灯片
<!
DOCTYPE HTML PUBLIC
"
-//W3C//DTD HTML 4.0 Transitional//EN
"
>
<
HTML
>
<
HEAD
>
<
TITLE
>
New Document
<
/
TITLE>
<
META NAME
=
"
Generator
"
CONTENT
=
"
EditPlus
"
>
<
META NAME
=
"
Author
"
CONTENT
=
""
>
<
META NAME
=
"
Keywords
"
CONTENT
=
""
>
<
META NAME
=
"
Description
"
CONTENT
=
""
>
<
/
HEAD>
<
BODY
>
<
div align
=
"
center
"
><
div id
=
AdRotator
><
/
div><
/
div
>
<
SCRIPT LANGUAGE
=
"
JavaScript
"
>
<!--
function
adRotator()
{}
;
adRotator.initialize
=
function
(o)
{
//
script by blueDestiny
this
._t
=
new
Array();
this
._l
=
new
Array();
this
._p
=
new
Array();
this
._i
=
new
Image();
this
._c
=
0
;
this
._f
=
false
;
this
._o
=
o;
this
._timeout
=
null
;
this
._html
=
""
;
//
configration.
//
@ image width
//
@ image height
//
@ rotator speed
//
@ filter type
this
._w
=
202
;
this
._h
=
300
;
this
._s
=
3
;
this
._x
=
23
;
return
this
;
}
;
adRotator.add
=
function
(p,t,l)
{
with
(
this
)
{
_p.push(p);
_t.push(t);
_l.push(l);
}
}
;
adRotator.load
=
function
()
{
with
(adRotator)
{
if
( _i.readyState
==
'
complete
'
)
{
if
(_p.length
-
1
==
_c)
{
_f
=
true
;
_c
=
0
;
window.clearTimeout(_timeout);
//
getRef("AdRotator").innerHTML="complete";
adRotator.play();
}
else
{
_c
++
;
getRef(_o).innerHTML
=
"
total images
"
+
_p.length
+
"
, loading picture
"
+
_c
+
'
'
+
_i.readyState
+
"
"
;
_timeout
=
window.setTimeout(adRotator.load,
10
)
}
}
else
{
getRef(_o).innerHTML
=
"
total images
"
+
_p.length
+
"
, loading picture
"
+
_c
+
'
'
+
_i.readyState
+
"
"
;
_timeout
=
window.setTimeout(adRotator.load,
10
)
}
}
}
;
adRotator.play
=
function
()
{
with
(adRotator)
{
if
( _f )
{
_html
=
""
;
_html
+=
'
<table style="border:0px solid #333333;" bgcolor="#ff0000"><tr><td style="font-size:9pt;font-family:tahoma;font-weight:bold;">
'
_html
+=
'
<div id="rotatorPlayer"
'
+
'
style="
'
+
_w
+
''
+
'
;height:"
'
+
_h
+
'
"
'
+
'
>
'
_html
+=
'
<a href="
'
+
( _l[_c]
?
_l[_c] :
"
javascript:void(0);
"
)
+
'
">
'
;
_html
+=
'
<img id="rotatorPic" src="
'
+
_p[_c]
+
'
"
'
+
'
width="
'
+
_w
+
'
"
'
+
'
height="
'
+
_h
+
'
"
'
+
(_t[_c]
?
'
title="
'
+
_t[_c]
+
'
"
'
:
''
)
+
'
style="border:1px solid blue;FILTER:revealTrans(transition=
'
+
_x
+
'
,duration=1);"
'
+
'
>
'
;
_html
+=
'
</a>
'
;
_html
+=
"
</div>
"
;
_html
+=
'
<div align="right">
'
;
_html
+=
'
<span style="height:23px"></span>
'
;
for
(
var
i
=
0
; i
<
_p.length; i
++
)
_html
+=
'
<span
'
+
'
style="border:1px solid #333333;padding:1px;height:20px;text-align:center;cursor:
'
+
(_c
==
i
?
(
'
default;background-color:red;"
'
) :
'
hand;" onclick="adRotator.select(
'
+
i
+
'
)"
'
)
+
'
>
'
+
(i
>
8
?
(i
+
1
):(
'
0
'
+
(i
+
1
)))
+
'
</span>
'
;
_html
+=
'
<span style="height:25px"></span>
'
;
_html
+=
(_t[_c]
?
(
'
<div align="center">
'
+
(_c
+
1
)
+
'
.
'
+
_t[_c]
+
'
</div>
'
):
'
<p></p>
'
);
_html
+=
"
</div></td></tr></table>
"
;
getRef(_o).innerHTML
=
_html;
getRef(
"
rotatorPic
"
).filters[
0
].Apply();
getRef(
"
rotatorPic
"
).filters[
0
].Play();
next();
}
else
{
_i.src
=
_p[_c];
adRotator.load();
}
}
}
;
adRotator.next
=
function
()
{
with
(
this
)
{
(_p.length
-
1
==
_c)
?
_c
=
0
: _c
++
;
_timeout
=
window.setTimeout(adRotator.play,_s
*
1000
);
}
}
;
adRotator.select
=
function
(i)
{
with
(
this
)
{
window.clearTimeout(_timeout);
_c
=
i;
adRotator.play();
}
}
;
adRotator.set
=
function
(second)
{
with
(
this
)
{
window.clearTimeout(_timeout);
if
((
/
\d+
/
).test(second)
==
true
)
{
_s
=
second;
adRotator.play();
}
else
{
alert(
"
must be digit!
"
)
adRotator.play();
}
}
}
;
function
getRef(id)
{
return
(document.all
?
document.all(id):document.getElementById(id));
}
adRotator.initialize(
"
AdRotator
"
);
adRotator.add(
"
http://img1.qq.com/ent/20060218/3215110.jpg
"
,
"
aa
"
,
"
http://www.blueidea.com
"
)
adRotator.add(
"
http://img1.qq.com/ent/20060218/3215111.jpg
"
,
"
bb
"
,
"
http://www.baidu.com
"
);
adRotator.add(
"
http://img1.qq.com/ent/20060218/3215112.jpg
"
)
adRotator.add(
"
http://img1.qq.com/ent/20060218/3215113.jpg
"
)
adRotator.add(
"
http://img1.qq.com/ent/20060218/3215114.jpg
"
)
adRotator.play();
//
-->
<
/
SCRIPT>
<
/
BODY>
<
/
HTML>
查看全文
相关阅读:
org.dom4j.DocumentException: Error on line 1 of document: 前言中不允许有内容
学习过程中的随手笔记
IT技术团队行而有效的管理之道
九宫格抽奖HTML+JS版
Nginx负载均衡深入浅出
PHP 二维数组根据某个字段排序
MYSQL INSERT INTO SELECT 不插入重复数据
小米2成功使用google组件的办法(为了coc游戏能登录google账户)
PHP 数组排序方法总结
普通标和转让标的回款和还款日期的算法。
原文地址:https://www.cnblogs.com/jinweida/p/1237345.html
最新文章
使用webpack打包ThinkPHP的资源文件
使用React、Node.js、MongoDB、Socket.IO开发一个角色投票应用的学习过程(三)
使用React、Node.js、MongoDB、Socket.IO开发一个角色投票应用的学习过程(二)
使用React、Node.js、MongoDB、Socket.IO开发一个角色投票应用的学习过程(一)
使用 Express 和 waterline 创建简单 Restful API
浏览器解析js
intent 参数的规范
Fiddler如何自动修改请求和响应包
Burp Suite学习之Intruder的4种攻击模式
对Android系统权限的认识
热门文章
"INSTALL_FAILED_DUPLICATE_PERMISSION "错误解决
Android hook神器frida(二)
移动广告作弊技术研究
Android如果有一个任意写入的漏洞,如何将写权限转成执行权限
如何下载MySQL的历史版本?
《java并发编程实战》(二)
《java并发编程实战》(一)
Python读取txt文件时第一行出现 ufeff 这个字符
使用jieba分词时,自定义词典(jieba.load_userdict('userdict.txt'))不生效的一种可能原因
通过HtmlCleaner与xpath解析html内容时出现的问题
Copyright © 2011-2022 走看看