擦除式图片轮番显示效果

作者:佚名 时间:2013-08-10 11:01:48 

加在< head>中

< SCRIPT LANGUAGE="JavaScript">
//more javascript from http://www.smallrain.net
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'http://www.it.com.cn/f/edu/051/26/jsimg/1.jpg'
Pic[1] = 'jsimg/2.jpg'
Pic[2] = 'jsimg/3.jpg'
Pic[3] = 'jsimg/4.jpg'
Pic[4] = 'jsimg/5.jpg'
Pic[5] = 'jsimg/6.jpg'
Pic[6] = 'jsimg/7.jpg'
Pic[7] = 'jsimg/8.jpg'
Pic[8] = 'jsimg/9.jpg'
Pic[9] = 'jsimg/10.jpg'


// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
< /script>

加在< body>中

< table border="0" cellpadding="0" cellspacing="0">
< tr>
< td id="VU">
< img src="http://www.it.com.cn/f/edu/051/26/jsimg/1.jpg" name='SlideShow' width=388 height=415>
< /td>
< /tr>
< /table>


标签:
0
投稿

猜你喜欢

  • 栅格:一以贯之

    2008-07-22 12:19:00
  • PHP PDOStatement::setAttribute讲解

    2023-06-04 02:48:47
  • 数据库之:Mysql数据库服务器安装与配置

    2010-08-31 14:11:00
  • ASP CacheControl 属性

    2009-04-28 13:09:00
  • ASP 多关键词查询实例代码

    2011-04-11 11:14:00
  • pre标签自动换行

    2009-03-13 13:37:00
  • 一些SQL查询语法参考

    2007-10-14 11:56:00
  • server.mappath方法详解

    2023-07-05 08:07:48
  • SQLServer中数据库文件的存放方式,文件和文件组

    2012-01-05 18:56:33
  • 基于Python-Pycharm实现的猴子摘桃小游戏(源代码)

    2023-07-07 06:31:22
  • 如何取得表中字段的属性?

    2010-01-18 20:52:00
  • 列表模块是否需要标题

    2009-06-25 14:11:00
  • ORACLE 分区表的设计

    2009-08-15 10:56:00
  • Python多线程同步Lock、RLock、Semaphore、Event实例

    2023-08-03 20:47:15
  • python使用selenium打开chrome浏览器时带用户登录信息实现过程详解

    2023-07-19 05:00:37
  • PHP abstract 抽象类定义与用法示例

    2023-06-28 03:52:44
  • CSS像素图制作攻略

    2009-05-19 19:32:00
  • JavaScript大牛:Douglas Crockford

    2009-03-31 12:06:00
  • 发现几处IE与firefox的js和css几处不同点

    2008-02-02 10:15:00
  • 分享216色网页拾色器(调色板)

    2007-09-27 12:33:00
  • asp之家 网络编程 m.aspxhome.com