爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
图片循环显示
图片循环显示
日期:2014-05-18 浏览次数:20205 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var rotate_delay = 5000; // delay in milliseconds (5000 = 5 secs) current = 0; function next() { if (document.slideform.slide[current+1]) { document.images.show.src = document.slideform.slide[current+1].value; document.slideform.slide.selectedIndex = ++current; } else first(); } function previous() { if (current-1 >= 0) { document.images.show.src = document.slideform.slide[current-1].value; document.slideform.slide.selectedIndex = --current; } else last(); } function first() { current = 0; document.images.show.src = document.slideform.slide[0].value; document.slideform.slide.selectedIndex = 0; } function last() { current = document.slideform.slide.length-1; document.images.show.src = document.slideform.slide[current].value; document.slideform.slide.selectedIndex = current; } function ap(text) { document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop"; rotate(); } function change() { current = document.slideform.slide.selectedIndex; document.images.show.src = document.slideform.slide[current].value; } function rotate() { if (document.slideform.slidebutton.value == "Stop") { current = (current == document.slideform.slide.length-1) ? 0 : current+1; document.images.show.src = document.slideform.slide[current].value; document.slideform.slide.selectedIndex = current; window.setTimeout("rotate()", rotate_delay); } } // End --> </script> <center> <form name=slideform> <table cellspacing=1 cellpadding=4 bgcolor="#000000"> <tr> <td align=center bgcolor="white"> <b>图片循环</b> </td> </tr> <tr> <td align=center bgcolor="white" width=200 height=150> <img src="http://img.aiyiweb.com/mylogo.gif" name="show" onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/> </td> </tr> <tr> <td align=center bgcolor="#C0C0C0"> <select name="slide" onChange="change();"> <option value="http://img.aiyiweb.com/mylogo.gif" selected>爱易网 <option value="http://img.aiyiweb.com/mylogo1.gif">爱易网 <option value="http://img.aiyiweb.com/mylogo2.gif">爱易网 <option value="http://img.aiyiweb.com/mylogo3.gif">爱易网 <option value="http://img.aiyiweb.com/mylogo.gif">爱易网 <option value="http://img.aiyiweb.com/mylogo1.gif">爱易网 <option value="http://img.aiyiweb.com/mylogo2.gif">爱易网 <option value="http://img.aiyiweb.com/mylogo3.gif">爱易网 <option value="http://img.aiyiweb.com/mylogo.gif">爱易网 <option value="http://img.aiyiweb.com/mylogo.gif">爱易网 </select> </td> </tr> <tr> <td align=center bgcolor="#C0C0C0"> <input type=button onClick="first();" value="|<<" title="Beginning"> <input type=button onClick="previous();" value="<<" title="Previous"> <input type=button name="slidebutton" onClick="ap(this.value);" value="Start" title="AutoPlay"> <input type=button onClick="next();" value=">>" title="Next"> <input type=button onClick="last();" value=">>|" title="End"> </td> </tr> </table> </form> </center> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:图片重叠带阴影
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
打车软件火了 恶性循环来了
《归来》遭视频网盗播 乐视网状告小米盒子侵权
京东很忙:升服务推产品更新招股书 能赶在阿里前上市?
谷歌欲收买WhatsApp添加砝码 对方否认
埃里克杰克森:阿里IPO估值至少1500亿美元
“扫黄打非”下9158否认遭整顿
NEC拟出售移动效劳子公司NEC Mobile
在线音乐出现“小米公司”不是没有可能
喜大普奔:2016年国内乘客有望在飞机上使用手机
推荐阅读
更多>
新浪微博推粉丝头条功能 意欲与大号分成
迅雷欲3300万美元收购金山快盘 预计9月完成
中国首台比特币ATM登陆上海 可购买不可兑换现钞
不提老罗,不说情怀,仅从十四个投诉问题入手谈锤子手机
微软史上最大规模裁员,一半诺基亚员工
陈天桥之鉴:产品创新被扼杀那些事
京东很忙:升服务推产品更新招股书 能赶在阿里前上市?
马斯克的特斯拉能否保持好势头
工信部或本月17日向联通电信颁发FDD牌照
中方抗议美方限购IT设备 紧张关系加剧
568倍PE,“长跑者”亚马逊的高估值之谜
任正非:喜马拉雅山的水为什么不能流入亚马逊河?
从雷军的“互联网七字诀”告诉你一个非妖魔化的小米
机器人进一步取代人类:将进军白领任务
支付宝被曝严重破绽 隐私平安再受质疑
阿朗力避步北电后尘 急切停止自我革新
史玉柱谈创业:5大建议 失败的教训最真实
眼球识别技术EyeVerify融资600万美元 360参投
充斥着假消息负能量的“秘密”缺乏普适性
小米年度发布会遭围剿!多款新品难阻品牌危机