zoukankan
html css js c++ java
又一滚动图片脚本
<
center
>
<
table
border
="0"
cellpadding
="0"
cellspacing
="0"
style
="border-collapse: collapse"
width
="26%"
id
="AutoNumber1"
>
<
tr
>
<
td
width
="100%"
>
<
p
align
="center"
>
<
script
language
="JavaScript1.2"
>
var
slideshow_width
=
468
//
SET SLIDESHOW WIDTH (set to largest image's width if multiple dimensions exist)
var
slideshow_height
=
60
//
SET SLIDESHOW HEIGHT (set to largest image's height if multiple dimensions exist)
var
pause
=
3000
//
SET PAUSE BETWEEN SLIDE (2000=2 seconds)
var
dropimages
=
new
Array()
//
SET IMAGE PATHS. Extend or contract array as needed
dropimages[
0
]
=
"
http://image2.sina.com.cn/book/nzt/liv/badyq/U135P112T78D1455F1709DT20060320180025.jpg
"
dropimages[
1
]
=
"
http://image2.sina.com.cn/book/nzt/lit/paomozhixia/U3P112T78D1431F1709DT20060314145851.jpg
"
dropimages[
2
]
=
"
http://image2.sina.com.cn/book/nzt/lit/shengsipilao/U3P112T78D1406F1709DT20060308154446.jpg
"
var
droplinks
=
new
Array()
//
SET IMAGE URLs. Extend or contract array as needed
droplinks[
0
]
=
"
http://www.blueidea.com/bbs
"
droplinks[
1
]
=
"
http://www.blueidea.com
"
droplinks[
2
]
=
"
http://LeXRus.com
"
//
//NO need to edit beyond here/////////////
var
preloadedimages
=
new
Array()
for
(p
=
0
;p
<
dropimages.length;p
++
)
{
preloadedimages[p]
=
new
Image()
preloadedimages[p].src
=
dropimages[p]
}
var
ie4
=
document.all
&&
navigator.userAgent.indexOf(
"
Opera
"
)
==-
1
var
dom
=
document.getElementById
&&
navigator.userAgent.indexOf(
"
Opera
"
)
==-
1
if
(ie4
||
dom)
document.write('
<
div style
=
"
position:relative;'+slideshow_width+';height:'+slideshow_height+';overflow:hidden
"
><
div id
=
"
canvas0
"
style
=
"
position:absolute;'+slideshow_width+';height:'+slideshow_height+';top:-'+slideshow_height+'
"
></
div
><
div id
=
"
canvas1
"
style
=
"
position:absolute;'+slideshow_width+';height:'+slideshow_height+';top:-'+slideshow_height+'
"
></
div
></
div
>
')
else
document.write('
<
a href
=
"
javascript:rotatelink()
"
><
img name
=
"
defaultslide
"
src
=
"
'+dropimages[0]+'
"
border
=
0
></
a
>
')
var
curpos
=
slideshow_height
*
(
-
1
)
var
degree
=
10
var
curcanvas
=
"
canvas0
"
var
curimageindex
=
0
var
nextimageindex
=
1
function
movepic()
{
if
(curpos
<
0
)
{
curpos
=
Math.min(curpos
+
degree,
0
)
tempobj.style.top
=
curpos
}
else
{
clearInterval(dropslide)
nextcanvas
=
(curcanvas
==
"
canvas0
"
)
?
"
canvas0
"
:
"
canvas1
"
tempobj
=
ie4
?
eval(
"
document.all.
"
+
nextcanvas) : document.getElementById(nextcanvas)
tempobj.innerHTML
=
'
<
a href
=
"
'+droplinks[curimageindex]+'
"
><
img src
=
"
'+dropimages[curimageindex]+'
"
border
=
0
></
a
>
'
nextimageindex
=
(nextimageindex
<
dropimages.length
-
1
)
?
nextimageindex
+
1
:
0
setTimeout(
"
rotateimage()
"
,pause)
}
}
function
rotateimage()
{
if
(ie4
||
dom)
{
resetit(curcanvas)
var
crossobj
=
tempobj
=
ie4
?
eval(
"
document.all.
"
+
curcanvas) : document.getElementById(curcanvas)
crossobj.style.zIndex
++
var
temp
=
'setInterval(
"
movepic()
"
,
50
)'
dropslide
=
eval(temp)
curcanvas
=
(curcanvas
==
"
canvas0
"
)
?
"
canvas1
"
:
"
canvas0
"
}
else
document.images.defaultslide.src
=
dropimages[curimageindex]
linkindex
=
curimageindex
curimageindex
=
(curimageindex
<
dropimages.length
-
1
)
?
curimageindex
+
1
:
0
}
function
rotatelink()
{
window.location
=
droplinks[linkindex]
}
function
resetit(what)
{
curpos
=
slideshow_height
*
(
-
1
)
var
crossobj
=
ie4
?
eval(
"
document.all.
"
+
what) : document.getElementById(what)
crossobj.style.top
=
curpos}
function
startit()
{
var
crossobj
=
ie4
?
eval(
"
document.all.
"
+
curcanvas) : document.getElementById(curcanvas)
crossobj.innerHTML
=
'
<
a href
=
"
'+droplinks[curimageindex]+'
"
><
img src
=
"
'+dropimages[curimageindex]+'
"
border
=
0
></
a
>
'
rotateimage()
}
if
(ie4
||
dom)
window.onload
=
startit
else
setInterval(
"
rotateimage()
"
,pause)
</
script
></
td
>
</
tr
>
</
table
>
</
center
>
<
p
>
</
p
>
<
script
language
="JavaScript"
defer
>
//
code by windy_sk <windy_sk@126.com> 20040127
var
obj_marquee
=
document.getElementById(
"
marquee
"
);
var
marquee_spd
=
4000
;
var
step_c
=
0
;
function
marquee_init()
{
var
obj_unit
=
obj_marquee.firstChild;
var
n
=
Math.ceil(parseInt(obj_marquee.style.height)
/
obj_unit.offsetHeight);
for
(
var
i
=
0
; i
<
n; i
++
) obj_marquee.appendChild(obj_unit.cloneNode(
true
));
return
;
}
function
marquee_show()
{
var
marquee_high
=
parseInt(obj_marquee.style.height);
var
step
=
marquee_high
/
10
;
if
(obj_marquee.scrollTop
>=
obj_marquee.children[
1
].offsetTop)
{
obj_marquee.scrollTop
=
0
;
marquee_show();
return
;
}
obj_marquee.scrollTop
+=
step;
if
(step_c
++
<
9
) setTimeout(
"
marquee_show()
"
,
50
);
return
;
}
marquee_init();
setInterval(
"
step_c=0;setTimeout('marquee_show()',50)
"
, marquee_spd);
</
script
>
<
table
style
="border:1px black solid;"
><
tr
><
td
>
<
div
id
="marquee"
style
="overflow:hidden;height:60px;210px;border:0px;padding:0px;"
>
<
div
style
="border:0px;padding:0px"
>
<!--
Marquee Body Head
-->
<
div
style
="height:60px;210px;font-size:12px"
>
<
a
href
="http://www.kdt.cn/kdt/introduce.php"
><
img
src
="http://www.blueidea.com/gg/kdt/206.gif"
border
="0"
style
="208px"
></
a
>
这个是广告~~~~~~~~~
</
div
>
<
div
style
="height:60px;210px;font-size:12px"
>
<
a
href
="http://www.idc2008.com/index5.htm"
><
img
src
="http://www.blueidea.com/gg/idc2008/208X33.gif"
border
="0"
style
="208px"
></
a
>
这个也是广告~~~~~~~~~~~~~~~~
</
div
>
<
div
style
="height:60px;210px;font-size:12px"
>
<
a
href
="http://www.qycity.com/"
><
img
src
="http://www.blueidea.com/gg/qycity/blueidea.gif"
border
="0"
style
="208px"
></
a
>
这个怎么还是广告??????
</
div
>
<
div
style
="height:60px;210px;font-size:12px"
>
<
a
href
="http://www.blueidea.com/bbs/viewuser.asp?username=windy2000"
><
img
src
="http://www.blueidea.com/bbs/icon/user1.gif"
border
="0"
>
Windy2000
</
a
><
br
>
也给自己做个广告~~~~~~~~~~
</
div
>
<!--
Marquee Body Bottom
-->
</
div
>
</
div
>
</
td
></
tr
></
table
>
<
br
>
<
br
><
br
><
br
><
br
><
br
>
查看全文
相关阅读:
mysql 查看数据库及表大小以及数据库扩容评估
idea中配置mybatis 映射文件模版及 mybatis plus 自定义sql
mybatis plus 中增删改查及Wrapper的使用
mybatis plus 主键策略
搭建 spring boot + mybatis plus 项目框架并进行调试
jeecg datagrid重新指定数据源
java 日志脱敏框架 sensitive-新版本0.0.2-深度拷贝,属性为对象和集合的
java 实现敏感词(sensitive word)工具详解使用说明
java 日志脱敏框架 sensitive,优雅的打印脱敏日志
互联网公司OpenAPI链接
原文地址:https://www.cnblogs.com/chengulv/p/355091.html
最新文章
MFC函数—CWinApp::LoadStdProfileSettings
CString常用函数
GetShortPathName函数
SHGetPathFromIDList函数
图像检索(image retrieval)- 14
特征可视化技术(CAM)
特征可视化技术(CAM)
Docker目录/var/lib/docker/containers文件太大
定时备份etcd数据
单片机系统中的一种文字平滑(抗锯齿)显示方法(转)
热门文章
linux源码包与RPM包的区别【Linux Service服务】
VM
编写Logstash的配置文件root_tomcat.conf
kibana使用metricbeat性能监控
空口无凭:服务器性能监控 ELK实践
Java进程CPU占用率高的排查和常见解决方案
如何使用jstack分析线程状态
Linux下 监控磁盘 内存 cpu脚本 以及发送邮件流程
JDK内置工具
策略模式与模版模式的区别与应用
Copyright © 2011-2022 走看看