当前位置: css > 常用代码 >

间歇性无缝滚动JS代码实例

时间:2009-12-17 10:22来源:未知 作者:admin 点击:
startmarquee(88,50,3000,0); /**startmarquee(一次滚动高度,速度,停留时间,图层标记);**/ 通过这个可以设置滚动高度、滚动速度、停留时间等 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://ww

startmarquee(88,50,3000,0);
/**startmarquee(一次滚动高度,速度,停留时间,图层标记);**/
通过这个可以设置滚动高度、滚动速度、停留时间等

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>间歇性无缝滚动代码实例</title>
</head>
<body>
<DIV style="LINE-HEIGHT: 22px; HEIGHT: 264px; FONT-SIZE: 12px; OVERFLOW: hidden"
id=marqueebox0>
  <!--line-height:文字行距-->
  <A
href="http://www.aa25.cn/?display/article/736.htm" target=_blank><FONT
color=#ff0000>谨防假冒惠州人才网</FONT></A><BR>
  <A
href="http://www.aa25.cn/?display/article/835.htm" target=_blank><FONT
color=#ff0000>警示:个人求职者请勿交纳押金!!</FONT></A><BR>
  <A
href="http://www.hzjob.net/e0752.html" target=_blank><FONT
color=#ff0000>惠州全景地图正式推出</FONT></A><BR>
  <A
href="http://www.aa25.cn/?display/company/36243.htm"
target=_blank>惠州裕泰五金塑胶制品有限公司诚聘</A><BR>
  <A
href="http://www.aa25.cn/?display/company/49065.htm"
target=_blank>东莞祐康食品有限公司惠州办事处</A><BR>
  <A
href="http://www.aa25.cn/?contactus.html"
target=_blank>加入我们的正式企业会员,有好礼送!<BR>
  </A><A
href="http://www.aa25.cn/?display/company/10.htm" target=_blank><FONT
color=#ff0000>惠州人才网招聘销售客服</FONT></A><BR>
  <A
href="http://www.aa25.cn/?display/company/36992.htm"
target=_blank>大亚湾中海酒店诚聘精英</A><BR>
  <A
href="http://www.aa25.cn/?display/company/41763.htm"
target=_blank>惠州百图丽实业有限公司</A><BR>
</DIV>
<SCRIPT>
<!--
function startmarquee(lh,speed,delay,index){
var t;
var p=false;
var o=document.getElementById("marqueebox"+index);
o.innerHTML+=o.innerHTML;
o.onmouseover=function(){p=true}
o.onmouseout=function(){p=false}
o.scrollTop = 0;
function start(){
t=setInterval(scrolling,speed);
if(!p) o.scrollTop += 2;
}
function scrolling(){
if(o.scrollTop%lh!=0){
o.scrollTop += 2;
if(o.scrollTop>=o.scrollHeight/2) o.scrollTop = 0;
}else{
clearInterval(t);
setTimeout(start,delay);
}
}
setTimeout(start,delay);
}
startmarquee(88,50,3000,0);
/**startmarquee(一次滚动高度,速度,停留时间,图层标记);**/
//-->
</SCRIPT>
</body>
</html>
 

顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名:密码: 验证码:点击我更换图片
推荐内容
  • JS高亮显示搜索的关键字

    js,高亮显示,css基地[www.csschina.net]提供DIV+CSS教程,DIV+CSS视频教程...

  • FCKeditor 2.6.4的最新配置

    FCKeditor,css基地[www.csschina.net]提供DIV+CSS教程,DIV+CSS视频教程,web2...

  • 刷新来源页

    刷新来源页,标准之路[www.aa25.cn]提供DIV+CSS教程,DIV+CSS视频教程,...

  • 滚屏

    滚屏,标准之路[www.aa25.cn]提供DIV+CSS教程,DIV+CSS视频教程,web2.0标准...

  • JS级别联动下拉列表

    [html]form name=form1 method=post action=index_cx.asptable border=0 align=center ...

  • fckeditor

    fckeditor,标准之路[www.aa25.cn]提供DIV+CSS教程,DIV+CSS视频教程,web2.0标...