 |
|
 |
|
![]() |
![]() |
|
 |
| 图片轮显代码大全(JS幻灯片) |
|
| 作者:佚名 文章来源:ebook-cn.com 更新时间:2006-3-1 23:07:46 |
![]() |
|
|
|
<!-- ////change number of images below var number_of_images=9 //change speed below (in seconds) var speed=3 var step=1 var whichimage=1 function slideit(){ if (!document.images) return if (document.all) slide.filters.item(0).Apply() document.images.slide.src=eval("image"+step+".src") if (document.all) slide.filters.item(0).Play() whichimage=step if (step<number_of_images) step++ else step=1 if (document.all) setTimeout("slideit()",speed*1000+3000) else setTimeout("slideit()",speed*1000) } function slidelink(){ if (whichimage==1) top.location.href="/index.html" if (whichimage==2) top.location.href="/news.html" if (whichimage==3) top.location.href="/game.html" if (whichimage==4) top.location.href="/music.html" if (whichimage==5) top.location.href="/sport.html" if (whichimage==6) top.location.href="/radio.html" if (whichimage==7) top.location.href="/travel.html" if (whichimage==8) top.location.href="/card.jsp" else if (whichimage==9) top.location.href="/study.html" } </SCRIPT> 其中:各链接地址相对应<head>中插入的JS代码中的图片。 注意,页面地址必须与图片张数相对应。本教学使用九张图片,相应就放置九个超链接地址。
DHTML幻灯片播放程序 这是一个幻灯片播放程序,也就是一图片轮流播放的程序。我们在一些站点上可以看见这种形式的广告播放条,大多是用CGI做的,也就是要服务器端支持CGI程序,如ASP、上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 下一页
|
|
|
|
|
|
|
 |
|
![]() |
|
![]() |
|