惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
罗磊的独立博客
SecWiki News
SecWiki News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
IT之家
IT之家
博客园 - 聂微东
T
The Exploit Database - CXSecurity.com
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Vercel News
Vercel News
G
GRAHAM CLULEY
D
DataBreaches.Net
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
T
Tenable Blog
Spread Privacy
Spread Privacy
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
V
Visual Studio Blog
J
Java Code Geeks
博客园 - Franky
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
C
CERT Recently Published Vulnerability Notes
T
Threatpost
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
U
Unit 42
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
B
Blog
腾讯CDC

博客园 - 琼

服务器 'server_1' 上的 MSDTC 不可用 - 琼 用javascript操作word文档 - 琼 - 博客园 Asp.Net中用javascript实现弹出窗口永远居中 - 琼 - 博客园 在sql server 2005数据库中更改数据架构 实现跟踪javascript代码进行调试 转摘--MS SQL Server 2000 数据库使用备份还原造成的孤立用户和对象名‘xxx’无效的错误的解决办法 转摘--具体影响Oracle系统性能的初始化参数 转摘--深入解读ADO.NET2.0的十大最新特性 实现关闭弹出页面后刷新父页 转摘——仿网易126网络硬盘上传 - 琼 - 博客园 转摘_修改表结构,让表中的字段按英文字母的顺序重新排列 javascript中获取文件后缀名 用Javascript隐藏超级链接的真实地址 UltraWebGrid模板列及行的相关操作(转) JavaScript实现DataGrid中的CheckBox全选与否 实现弹出窗口的大小 解决"当前命令发生了严重错误。应放弃任何可能产生的结果。"的问题 设置页面文字大小及颜色 Windows 2000 CMD命令大全
图片幻灯片显示
· 2007-06-26 · via 博客园 - 琼

图片幻灯片显示

鼠标指上图片时,图片停止变换,当鼠标移开后又继续变换:

<html>
<body>
aaa
<script language="JavaScript">
<!--
function objSP_Article() {this.ImgUrl=""this.LinkUrl=""this.Title="";}
function SlidePic_Article(_id) {this.ID=_id; this.Width=0;this.Height=0this.TimeOut=5000this.Effect=23this.TitleLen=0this.PicNum=-1this.Img=nullthis.AllPic=new Array(); this.Add=SlidePic_Article_Add; this.Show=SlidePic_Article_Show; this.LoopShow=SlidePic_Article_LoopShow;}
function SlidePic_Article_Add(_SP) {this.AllPic[this.AllPic.length] = _SP;}
function SlidePic_Article_Show() {
  
if(this.AllPic[0== nullreturn false;
  document.write(
"<div align='center'><img id='Img_" + this.ID + "' style='width:" + this.Width + "px; height:" + this.Height + "px; filter: revealTrans(duration=2,transition=23);' src='javascript:null' border='0' >");
  document.write(
"</div>");
  
this.Img = document.getElementById("Img_" + this.ID);
  
this.LoopShow();
}

function SlidePic_Article_LoopShow() {
  
if(this.PicNum<this.AllPic.length-1this.PicNum++ ; 
  
else this.PicNum=0
  
this.Img.filters.revealTrans.Transition=this.Effect; 
  
this.Img.filters.revealTrans.apply(); 
  
this.Img.src=this.AllPic[this.PicNum].ImgUrl;
  
this.Img.filters.revealTrans.play();
timer
=setTimeout(this.ID+".LoopShow()",this.TimeOut);
  
this.Img.onmouseover=function(){clearTimeout(timer);}
  
this.Img.onmouseout=function(){timer=setTimeout("SlidePic_271.LoopShow()",this.TimeOut);}
  }

function clearT(){


}

//-->
</script>
<script language=JavaScript>
<!--

var SlidePic_271 = new SlidePic_Article("SlidePic_271");
SlidePic_271.Width    
= 300;
SlidePic_271.Height   
= 225;
SlidePic_271.TimeOut  
= 5000;
SlidePic_271.Effect   
= 23;
SlidePic_271.TitleLen 
= 0;
var oSP = new objSP_Article();
oSP.ImgUrl         
= "/upimg/<%=rs("pic1")%>";
SlidePic_271.Add(oSP);
var oSP = new objSP_Article();
oSP.ImgUrl         
= "/upimg/<%=rs("pic2")%>";
SlidePic_271.Add(oSP);
var oSP = new objSP_Article();
oSP.ImgUrl         
= "/upimg/<%=rs("pic3")%>";
SlidePic_271.Add(oSP);

SlidePic_271.Show();
//-->
</script>
</body>
</html>

posted on 2007-06-26 11:07    阅读(248)  评论(0)    收藏  举报

刷新页面返回顶部