资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
新闻一段时间向上滚动效果
<HTML> <HEAD> <META http-equiv=Content-Type content="text/html; charset=gb2312"> <STYLE> BODY { FONT-SIZE: 12px; MARGIN: 0px; OVERFLOW: visible; LINE-HEIGHT: 140% } UL { FONT-SIZE: 12px; MARGIN: 0px; OVERFLOW: visible; LINE-HEIGHT: 140% } LI { FONT-SIZE: 12px; MARGIN: 0px; OVERFLOW: visible; LINE-HEIGHT: 140% } A:link { FONT-SIZE: 12px; COLOR: #006699; FONT-FAMILY: Tahoma, Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none } A:visited { FONT-SIZE: 12px; COLOR: #006699; FONT-FAMILY: Tahoma, Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none } A:hover { FONT-SIZE: 12px; COLOR: #ff0000; FONT-FAMILY: Tahoma, Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: underline } </STYLE> <META content="MSHTML 6.00.3790.2491" name=GENERATOR></HEAD> <BODY> <UL id=icefable1 style="LIST-STYLE-TYPE: none"> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/WebSafe/" _ewebeditor_ta_href="%2FWebSafe%2F" target=_blank>WEB安全</A>] <A title=【WEB服务器】常见端口的作用、漏洞和操作建议 href="/WebSafe/Subject16/20068751627849.html" _ewebeditor_ta_href="%2FWebSafe%2FSubject16%2F20068751627849.html" target=_blank><FONT color=red>【WEB服务器】常见端口的作用、漏洞和操作建议</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/WebSafe/" _ewebeditor_ta_href="%2FWebSafe%2F" target=_blank>WEB安全</A>] <A title=【WEB服务器】win2000虚拟主机安全配置详解 href="/WebSafe/Subject16/20068651627847.html" _ewebeditor_ta_href="%2FWebSafe%2FSubject16%2F20068651627847.html" target=_blank><FONT color=red>【WEB服务器】win2000虚拟主机安全配置详解</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/WebNews/" _ewebeditor_ta_href="%2FWebNews%2F" target=_blank>WEB资讯</A>] <A title=【WEB程序员专栏】IT网络工作者--除了网络我们还剩下些什么? href="/WebNews/Subject36/200672893627846.html" _ewebeditor_ta_href="%2FWebNews%2FSubject36%2F200672893627846.html" target=_blank><FONT color=red>【WEB程序员专栏】IT网络工作者--除了网络我们还剩下些什么?</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/WebW3C/" _ewebeditor_ta_href="%2FWebW3C%2F" target=_blank>WEB标准</A>] <A title=【HTML】表单样式大全 href="/WebW3C/Subject11/200662631127845.html" _ewebeditor_ta_href="%2FWebW3C%2FSubject11%2F200662631127845.html" target=_blank><FONT color=red>【HTML】表单样式大全</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/weBuild/" _ewebeditor_ta_href="%2FweBuild%2F" target=_blank>WEB编程</A>] <A title=【ASP编程】三种分页效率测试 href="/weBuild/Subject1/20066231127843.html" _ewebeditor_ta_href="%2FweBuild%2FSubject1%2F20066231127843.html" target=_blank><FONT color=red>【ASP编程】三种分页效率测试</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/WebNews/" _ewebeditor_ta_href="%2FWebNews%2F" target=_blank>WEB资讯</A>] <A title=【互联网新闻】Windows Vista Beta2 下载安装体验风格图标 href="/WebNews/Subject34/200661793427842.html" _ewebeditor_ta_href="%2FWebNews%2FSubject34%2F200661793427842.html" target=_blank><FONT color=red>【互联网新闻】Windows Vista Beta2 下载安装体验风格图标</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/weBuild/" _ewebeditor_ta_href="%2FweBuild%2F" target=_blank>WEB编程</A>] <A title=【JAVA/AJAX】健壮的AJAX源码学习应用示例 href="/weBuild/Subject42/200661614227841.html" _ewebeditor_ta_href="%2FweBuild%2FSubject42%2F200661614227841.html" target=_blank><FONT color=red>【JAVA/AJAX】健壮的AJAX源码学习应用示例</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/weBuild/" _ewebeditor_ta_href="%2FweBuild%2F" target=_blank>WEB编程</A>] <A title=【JAVA/AJAX】学习Ajax教程第一天[掌握AJAX] href="/weBuild/Subject42/200661514227837.html" _ewebeditor_ta_href="%2FweBuild%2FSubject42%2F200661514227837.html" target=_blank><FONT color=red>【JAVA/AJAX】学习Ajax教程第一天[掌握AJAX]</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/WebNews/" _ewebeditor_ta_href="%2FWebNews%2F" target=_blank>WEB资讯</A>] <A title=【WEB程序员专栏】2006世界杯赛事日程时间表 href="/WebNews/Subject36/200661193627836.html" _ewebeditor_ta_href="%2FWebNews%2FSubject36%2F200661193627836.html" target=_blank><FONT color=red>【WEB程序员专栏】2006世界杯赛事日程时间表</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/WebNews/" _ewebeditor_ta_href="%2FWebNews%2F" target=_blank>WEB资讯</A>] <A title=【互联网新闻】丁磊:那时候我们除了会写软件 什么也不会做 href="/WebNews/Subject34/200661093427835.html" _ewebeditor_ta_href="%2FWebNews%2FSubject34%2F200661093427835.html" target=_blank><FONT color=red>【互联网新闻】丁磊:那时候我们除了会写软件 什么也不会做</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/WebNews/" _ewebeditor_ta_href="%2FWebNews%2F" target=_blank>WEB资讯</A>] <A title=【WEB程序员专栏】ASP开发规范 href="/WebNews/Subject36/200661093627833.html" _ewebeditor_ta_href="%2FWebNews%2FSubject36%2F200661093627833.html" target=_blank><FONT color=red>【WEB程序员专栏】ASP开发规范</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/WebNews/" _ewebeditor_ta_href="%2FWebNews%2F" target=_blank>WEB资讯</A>] <A title=【WEB程序员专栏】大型高并发高负载网站的系统架构[转载] href="/WebNews/Subject36/200661093627830.html" _ewebeditor_ta_href="%2FWebNews%2FSubject36%2F200661093627830.html" target=_blank><FONT color=red>【WEB程序员专栏】大型高并发高负载网站的系统架构[转载]</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/weBuild/" _ewebeditor_ta_href="%2FweBuild%2F" target=_blank>WEB编程</A>] <A title=【ASP编程】(人民币)金额大小写转换函数 href="/weBuild/Subject1/20066101127828.html" _ewebeditor_ta_href="%2FweBuild%2FSubject1%2F20066101127828.html" target=_blank><FONT color=red>【ASP编程】(人民币)金额大小写转换函数</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/WebDown/" _ewebeditor_ta_href="%2FWebDown%2F" target=_blank>资源下载</A>] <A title=【网站开发文档】网站建设项目的步骤 href="/WebDown/Subject32/20066383227826.html" _ewebeditor_ta_href="%2FWebDown%2FSubject32%2F20066383227826.html" target=_blank><FONT color=red>【网站开发文档】网站建设项目的步骤</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/WebNews/" _ewebeditor_ta_href="%2FWebNews%2F" target=_blank>WEB资讯</A>] <A title=【WEB程序员专栏】韩国网页模板下载网址大全 href="/WebNews/Subject36/20066393627817.html" _ewebeditor_ta_href="%2FWebNews%2FSubject36%2F20066393627817.html" target=_blank><FONT color=red>【WEB程序员专栏】韩国网页模板下载网址大全</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/weBuild/" _ewebeditor_ta_href="%2FweBuild%2F" target=_blank>WEB编程</A>] <A title=【JAVA/AJAX】Ajax应用案例之MSN Space href="/weBuild/Subject42/20066314227807.html" _ewebeditor_ta_href="%2FweBuild%2FSubject42%2F20066314227807.html" target=_blank><FONT color=red>【JAVA/AJAX】Ajax应用案例之MSN Space</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/weBuild/" _ewebeditor_ta_href="%2FweBuild%2F" target=_blank>WEB编程</A>] <A title=【JAVA/AJAX】AJAX对象调用(XML HTTP Request) href="/weBuild/Subject42/20066314227806.html" _ewebeditor_ta_href="%2FweBuild%2FSubject42%2F20066314227806.html" target=_blank><FONT color=red>【JAVA/AJAX】AJAX对象调用(XML HTTP Request)</A> <FONT style="FONT-SIZE: 7px;color:#FFFFFF">● [<A href="/weBuild/" _ewebeditor_ta_href="%2FweBuild%2F" target=_blank>WEB编程</A>] <A title=【ASP编程】ASP在线操作数据库的通用类 href="/weBuild/Subject1/20065301127704.html" _ewebeditor_ta_href="%2FweBuild%2FSubject1%2F20065301127704.html" target=_blank><FONT color=red>【ASP编程】ASP在线操作数据库的通用类</A> </UL> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3CSCRIPT%20language%3DJavaScript%3E%20%0D%0A%0D%0AmarqueesHeight%3D34%3B%20%0D%0A%0D%0Astopscroll%3Dfalse%3B%20%0D%0A%0D%0Awith(icefable1)%20%0D%0A%7B%20%0D%0Astyle.height%3DmarqueesHeight%3B%20%0D%0Astyle.overflowX%3D%22visible%22%3B%20%0D%0A%0D%0Astyle.overflowY%3D%22hidden%22%3B%20%0D%0A%0D%0AnoWrap%3Dtrue%3B%20%0D%0A%0D%0Aonmouseover%3Dnew%20Function(%22stopscroll%3Dtrue%22)%3B%20%0D%0A%0D%0Aonmouseout%3Dnew%20Function(%22stopscroll%3Dfalse%22)%3B%20%0D%0A%0D%0A%7D%20%0D%0A%0D%0ApreTop%3D0%3B%20%0D%0AcurrentTop%3D34%3B%20%0D%0Astoptime%3D0%3B%20%0D%0A%0D%0Aicefable1.innerHTML%20%2B%3D%20icefable1.innerHTML%3B%20%0D%0A%0D%0A%0D%0A%0D%0Afunction%20init_srolltext()%20%0D%0A%7B%20%0D%0Aicefable1.scrollTop%3D0%3B%20%0D%0AsetInterval(%22scrollUp()%22%2C15)%3B%20%0D%0A%0D%0A%7D%20%0D%0A%0D%0A%0D%0A%0D%0Afunction%20scrollUp()%20%20%0D%0A%7B%20%0D%0A%0D%0Aif(stopscroll%3D%3Dtrue)%20return%3B%20%0D%0A%0D%0AcurrentTop%2B%3D1%3B%20%0D%0A%0D%0Aif(currentTop%3E34)%20%0D%0A%0D%0A%20%20%20%20%7B%20%0D%0A%0D%0A%20%20%20%20stoptime%2B%3D1%3B%20%0D%0A%0D%0A%20%20%20%20currentTop-%3D1%3B%20%0D%0A%0D%0A%20%20%20%20%20%20%20%20if(stoptime%3D%3D300)%20%0D%0A%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%7B%20%0D%0A%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20currentTop%3D0%3B%20%0D%0A%20%20%0D%0A%20%20%20%20%20%20%20%20stoptime%3D0%3B%20%0D%0A%0D%0A%20%20%20%20%20%20%20%20%7D%20%0D%0A%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%0D%0A%20%20%20%20else%20%0D%0A%20%20%20%20%7B%20%0D%0A%20%20%0D%0A%20%20%20%20preTop%3Dicefable1.scrollTop%3B%20%0D%0A%20%20%20%20icefable1.scrollTop%2B%3D1%3B%20%0D%0A%20%20%20%20%20%0D%0A%0D%0A%20%20%20%20%20%20if(preTop%3D%3Dicefable1.scrollTop)%20%0D%0A%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%7B%20%0D%0A%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20icefable1.scrollTop%3D0%3B%20%0D%0A%0D%0A%20%20%20%20%20%20%20%20%20%20icefable1.scrollTop%2B%3D1%3B%20%0D%0A%0D%0A%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%0D%0A%20%20%20%20%7D%20%0D%0A%0D%0A%7D%20%0D%0A%0D%0Ainit_srolltext()%3B%20%0D%0A%0D%0A%3C%2FSCRIPT%3E"> </BODY> </HTML>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程