新闻一段时间向上滚动效果
php代码
<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/" target=_blank>web安全</a>]
<a title=【web服务器】常见端口的作用、漏洞和操作建议 href="/websafe/subject16/20068751627849.html" target=_blank><font color=red>【web服务器】常见端口的作用、漏洞和操作建议</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/websafe/" target=_blank>web安全</a>]
<a title=【web服务器】win2000虚拟主机安全配置详解 href="/websafe/subject16/20068651627847.html" target=_blank><font color=red>【web服务器】win2000虚拟主机安全配置详解</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webnews/" target=_blank>web资讯</a>]
<a title=【web程序员专栏】it网络工作者--除了网络我们还剩下些什么? href="/webnews/subject36/200672893627846.html" target=_blank><font color=red>【web程序员专栏】it网络工作者--除了网络我们还剩下些什么?</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webw3c/" target=_blank>web标准</a>]
<a title=【html】表单样式大全 href="/webw3c/subject11/200662631127845.html" target=_blank><font color=red>【html】表单样式大全</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webuild/" target=_blank>web编程</a>]
<a title=【asp编程】三种分页效率测试 href="/webuild/subject1/20066231127843.html" target=_blank><font color=red>【asp编程】三种分页效率测试</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webnews/" target=_blank>web资讯</a>]
<a title=【互联网新闻】windows vista beta2 下载安装体验风格图标 href="/webnews/subject34/200661793427842.html" target=_blank><font color=red>【互联网新闻】windows vista beta2 下载安装体验风格图标</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webuild/" target=_blank>web编程</a>]
<a title=【java/ajax】健壮的ajax源码学习应用示例 href="/webuild/subject42/200661614227841.html" target=_blank><font color=red>【java/ajax】健壮的ajax源码学习应用示例</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webuild/" target=_blank>web编程</a>]
<a title=【java/ajax】学习ajax教程第一天[掌握ajax] href="/webuild/subject42/200661514227837.html" target=_blank><font color=red>【java/ajax】学习ajax教程第一天[掌握ajax]</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webnews/" target=_blank>web资讯</a>]
<a title=【web程序员专栏】2006世界杯赛事日程时间表 href="/webnews/subject36/200661193627836.html" target=_blank><font color=red>【web程序员专栏】2006世界杯赛事日程时间表</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webnews/" target=_blank>web资讯</a>]
<a title=【互联网新闻】丁磊:那时候我们除了会写软件 什么也不会做 href="/webnews/subject34/200661093427835.html" target=_blank><font color=red>【互联网新闻】丁磊:那时候我们除了会写软件 什么也不会做</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webnews/" target=_blank>web资讯</a>]
<a title=【web程序员专栏】asp开发规范 href="/webnews/subject36/200661093627833.html" target=_blank><font color=red>【web程序员专栏】asp开发规范</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webnews/" target=_blank>web资讯</a>]
<a title=【web程序员专栏】大型高并发高负载网站的系统架构[转载] href="/webnews/subject36/200661093627830.html" target=_blank><font color=red>【web程序员专栏】大型高并发高负载网站的系统架构[转载]</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webuild/" target=_blank>web编程</a>]
<a title=【asp编程】(人民币)金额大小写转换函数 href="/webuild/subject1/20066101127828.html" target=_blank><font color=red>【asp编程】(人民币)金额大小写转换函数</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webdown/" target=_blank>资源下载</a>]
<a title=【网站开发文档】网站建设项目的步骤 href="/webdown/subject32/20066383227826.html" target=_blank><font color=red>【网站开发文档】网站建设项目的步骤</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webnews/" target=_blank>web资讯</a>]
<a title=【web程序员专栏】韩国网页模板下载网址大全 href="/webnews/subject36/20066393627817.html" target=_blank><font color=red>【web程序员专栏】韩国网页模板下载网址大全</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webuild/" target=_blank>web编程</a>]
<a title=【java/ajax】ajax应用案例之msn space href="/webuild/subject42/20066314227807.html" target=_blank><font color=red>【java/ajax】ajax应用案例之msn space</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webuild/" target=_blank>web编程</a>]
<a title=【java/ajax】ajax对象调用(xml http request) href="/webuild/subject42/20066314227806.html" target=_blank><font color=red>【java/ajax】ajax对象调用(xml http request)</a>
<font style="font-size: 7px;color:#ffffff">●
[<a href="/webuild/" target=_blank>web编程</a>]
<a title=【asp编程】asp在线操作数据库的通用类 href="/webuild/subject1/20065301127704.html" target=_blank><font color=red>【asp编程】asp在线操作数据库的通用类</a>
</ul>
<script language=javascript>
marqueesheight=34;
stopscroll=false;
with(icefable1)
{
style.height=marqueesheight;
style.overflowx="visible";
style.overflowy="hidden";
nowrap=true;
onmouseover=new function("stopscroll=true");
onmouseout=new function("stopscroll=false");
}
pretop=0;
currenttop=34;
stoptime=0;
icefable1.innerhtml += icefable1.innerhtml;
function init_srolltext()
{
icefable1.scrolltop=0;
setinterval("scrollup()",15);
}
function scrollup()
{
if(stopscroll==true) return;
currenttop+=1;
if(currenttop>34)
{
stoptime+=1;
currenttop-=1;
if(stoptime==300)
{
currenttop=0;
stoptime=0;
}
}
else
{
pretop=icefable1.scrolltop;
icefable1.scrolltop+=1;
if(pretop==icefable1.scrolltop)
{
icefable1.scrolltop=0;
icefable1.scrolltop+=1;
}
}
}
init_srolltext();
</script>
</body>
</html>
