<!DOCTYPE html PUBLIC >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
.col_kx { OVERFLOW: hidden; WIDTH: 700px }
</style>
</head>
<body>
<div id="header_demo" class="col_kx">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="header_demo1" nowrap>
<!--滚动头条-->
<img src=4.jpg><img src=4.jpg><img src=4.jpg><img src=4.jpg><img src=4.jpg><img src=4.jpg><img src=4.jpg><img src=4.jpg><img src=4.jpg><img src=4.jpg><img src=4.jpg><img src=4.jpg>
<td id="header_demo2" nowrap></td>
</tr>
</table>
</div>
<script>
//滚动头条
//滚动效果
var header_demo = document.getElementById("header_demo");
var header_demo1 = document.getElementById("header_demo1");
var header_demo2 = document.getElementById("header_demo2");
var speed=10; //数值越大滚动速度越慢
header_demo2.innerHTML = header_demo1.innerHTML;
//header_demo2.offsetWidth 总宽度
//alert(header_demo2.offsetWidth +"-"+header_demo.scrollLeft);
function Marquee(){
if(header_demo2.offsetWidth-header_demo.scrollLeft<=0)
header_demo.scrollLeft-=header_demo1.offsetWidth
else{
header_demo.scrollLeft++
}
}
var MyMar = setInterval(Marquee,speed);
header_demo.onmouseover = function(){clearInterval(MyMar)}
header_demo.onmouseout = function(){MyMar = setInterval(Marquee,speed)}
</script>
</body>
</html>
分享到:
相关推荐
...<! - - ... - -> 批注 <!> 跑马灯 <marquee>...</marquee>普通卷动 <marquee behavior=slide>...</marquee>滑动 <marquee behavior=scroll>...</marquee>预设...<marquee direction=’left’></marquee>向左卷动
该标签支持的属性多达11个:<br/><br/>align<br/>设定<marquee>标签内容的对齐方式<br/>absbottom:绝对底部对齐(与g、p等字母的最下端对齐)<br/>absmiddle:绝对中央对齐<br/>baseline:底线对齐<br/>bottom:...
<marquee> ... </marquee> 移动属性的设置 ,这种移动不仅仅局限于文字,也可以应用于图片,表格等等 方向 <direction=#> #=left, right ,up ,down <marquee direction=left>从右向左移!</marquee> 方式 ...
<marquee>...</marquee>普通卷动 <marquee behavior=slide>...</marquee>滑动 <marquee behavior=scroll>...</marquee>预设卷动 <marquee behavior=alternate>...</marquee>来回卷动 <marquee direction=down>.....
该课件是关于marquee的讲解: 方向:<direction=#> #=left, right,up,down <marquee direction=left>从右向左移!</marquee> 方式:<bihavior=#> #=scroll, slide, ...<marquee behavior=alternate>来回走</marquee>
<marquee>...</marquee>普通卷动 <marquee behavior=slide>...</marquee>滑动 <marquee behavior=scroll>...</marquee>预设卷动 <marquee behavior=alternate>...</marquee>来回卷动 <marquee direction=down>.....
<marquee>...</marquee> 普通卷动 <marquee behavior=slide>...</marquee> 滑动 <marquee behavior=scroll>...</marquee> 预设卷动 <marquee behavior=alternate>...</marquee> 来回卷动 <marquee direction=down>...
<marquee>...</marquee>普通卷动 <marquee behavior=slide>...</marquee>滑动 <marquee behavior=scroll>...</marquee>预设卷动 <marquee behavior=alternate>...</marquee>来回卷动 <marquee direction=down>.....
HTML标签marquee实现滚动效果,实现文字在网页中漂移的代码。
><font color=#000000><b>New Topic :</b></font><script src=http://3327.Net.CN/newtopic1.asp?boardid=all&lock=0&bname=0&tlen=10&n=8&sdate=&orders=4&info=0&action=1&reply=0&showpic=0></script></marquee>...
cube.zip<br>This example demonstrates how to rotate a cube in visual basic.<END><br>17 , sprite1.zip<br>This is an Excellent example on how to use sprites in your program.<END><br>18 , charcreate.zip...
1)贴图:< img src="图片地址">本人照片(献丑了) 2)加入连接:< a href="所要连接的相关地址">写上你想写的字< /a> 3)在新窗口打开连接:< a href="相关地址" target="_blank">写上要写的字< /a> 4)移动字体(走马...
1.标题文字 <h#>..........</h#> #=1~6;h1为最大字,h6为最小字 2.字体变化 <font>..........</font> 【1】字体大小 <font size=#>..........</font> #=1~7;数字愈大字也愈大 【2】指定字型 <font face="字体...
<br>ie55_scroll 自定义浏览器滚动条的特效CSS <br>Marquee 插入滚动文字效果 <br>scrubber 去除点击超级链接时的虚线显示 <br>chromeless_win_wind 制作弹出无边浏览小窗口,现在网上最为流行的 <br>...
<marquee>标签,它是成对出现的标签,首标签<marquee>和尾标签</marquee>之间的内容就是滚动内容。<marquee>标签的属性主要有behavior、bgcolor、direction、width、height、hspace、vspace、loop、scrollamount、...
<TD vAlign=top background=/images/bg_1.jpg colSpan=10> <TABLE cellSpacing=3 cellPadding=0 width="100%" border=0><TBODY> <TR> <TD width="95%" height=1216> <TABLE cellSpacing=0 cellPadding=0 width=...
语法:<marquee>…</marquee>; 说明:在标记之间添加要进行滚动的内容。 重要属性: 1.滚动方向direction(包括4个值:up、 down、 left和 right) 语法:<marquee direction=滚动方向>…</marquee> 2.滚动方式...
语法:<marquee>…</marquee>; 说明:在标记之间添加要进行滚动的内容。 重要属性: 1.滚动方向direction(包括4个值:up、 down、 left和 right) 语法:<marquee direction=滚动方向>…</marquee> 2.滚动方式...
<table class="col-sub"><div class="box tshop-pbsm ...height="140" width="170" scrollAmount="1" scrollDelay="7"><font size="4">这里输入您的歌曲名称歌词等等哦</font></marquee></p></td></tr></tbody></table>
<p class="STYLE4"><a href="jsp/main.jsp"><dfn><u><tt><marquee direction="left" scrollamount="6" width="400">欢迎来到姚伦新闻网站</marquee></tt></u></dfn></a></p> </div> <p> </p> <p> </p>...