爱易网
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 浏览次数:20230 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <head> <title>爱易网网页特效演示,时间跳动器</title> <style type="text/css"> <!-- body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px} A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none } A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline } a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 } --> </style> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <script language="JavaScript"> <!-- Hide this script from old browsers -- function modRange (value, min, max) { if (min == max) { return (min) } var low = Math.min (min, max) var high = Math.max (min, max) var range = high - low + 1 var valOff = parseInt (value) - low var mod = range * Math.floor (valOff / range) result = low + valOff - mod if (result < low) { result += high } if (result > high) { result = low } return (result) } function array () { this[0] = null } function timerAppStart () { this.stop () this.loop () } function timerAppStop () { clearTimeout (this.timeout) this.timeout = null } function timerAppToggle () { if (this.timeout) { this.stop () } else { this.start () } } function timerAppLoop () { this.update () command = this.name + '.loop()' for (var i = 0; i < this.syncCount; i++) { if (this.syncName[i] != '') { if (--this.syncCountdown[i] <= 0) { this.syncCountdown[i] = this.syncInterval[i] command += ';' + this.syncName[i] + '.update()' } } } this.timeout = setTimeout (command, this.interval) } function timerAppSetOutput (output) { if (! this.output) { this.output = output } } function timerAppSetInterval (interval) { if (interval) { var newInterval = parseInt (interval) if (newInterval > 0) { this.interval = newInterval } else { alert ('Interval value must be a positive number: ' + interval) } } } function timerAppSync (name, interval) { if (interval == null) { interval = 1 } if (interval <= 0) { eval (this.name + '.unsync("' + name + '")') return } var newIndex = this.syncCount for (var i = 0; i < this.syncCount; i++) { if (this.syncName[i] == name) { newIndex = i break } } if (newIndex == this.syncCount) { this.syncCount++ } this.syncInterval[newIndex] = interval this.syncCountdown[newIndex] = interval this.syncName[newIndex] = name } function timerAppUnsync (name) { for (var i = 0; i < this.syncCount; i++) { if (this.syncName[i] == name) { this.syncName[i] = '' if (i == (this.syncCount - 1)) { this.syncCount-- } } } } function timerAppSetIncrement (increment) { if (increment) { var newIncrement = parseInt (increment) //*Unix only* if (! isNan (newIncrement)) { if (newIncrement != 0) { this.increment = newIncrement } else { alert ('Increment value must be a number: ' + increment) } } } function timerAppSetBounce (bounce) { if (bounce) { var newBounce = parseInt (bounce) //*Unix only* if (! isNan (newBounce)) { if (newBounce != 0) { this.bounce = newBounce } else { alert ('Bo
上一篇:狡猾的按钮特效
下一篇:带开关的Form时钟
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
亚马逊落户上海自贸区:美国货直邮中国
新浪微博推粉丝头条功能 意欲与大号分成
2013年至今中国互联网行业十大并购案汇总
马云寄厚望于物流 “菜鸟”行情暂难持续
挂号网高管团体离任 或因投资人失掉决计
前苹果顾问批判iPhone命名:不应加S
固话上网卡或将实名制 运营商泄露用户信息将被罚
中电信率先推移动转售业务 中下旬批量上市
高德百度地图免费背后:李彦宏暗斗马云周鸿祎
推荐阅读
更多>
靠价格战赚取资费套餐利润差,虚拟运营商必死无疑
国网公司将加快组建 业界人士称困难重重
聚美优品获基石投资1.5亿美金,IPO吃下定心丸
Google要求硬件厂商捆绑预装应用的协议曝光
英特尔涉嫌垄断 欧盟或开出史上最高罚单
2018年阿里云双11活动如何参加?1折优惠大攻略
百度“全网寻人”面前的互联网信息枢纽价值
京东联席董事长赵国庆上市前夕离职
OPPO Find7体验测 Find7综测
微博启动自媒体计划 粉丝+收入双激励是亮点
一个非脑残米粉的思考:小米“成功之道”如何炼成
开个房刷个卡全世界都知道个人隐私成公开秘密
北京电信推“0月租卡”,同网通话免费
传苹果与雅虎协作信息提供 进一步摆脱谷歌
世界杯让耐克阿迪大打出手 谁能劈开用户大脑?
携程整合去哪儿陷入僵局 欲联手老对手艺龙
广东移动高层受调查 中移动或现更大反腐风暴
中国电信内外受困 去电信化思绪待改
美剧讲硅谷创业者:远不及现实荒诞?
墨迹也要做硬件,工具类应用如何“变异”的