文字
在html中出了用<marquee direction=up>向上滚动的代码还有没有别的可以用的向上滚动的代码
- 提问者网友:临风不自傲
- 2021-07-28 21:23
- 五星知识达人网友:有你哪都是故乡
- 2021-07-28 22:42
marquee只能作用于IE浏览器,下面的代码兼容所有浏览器
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>向上无缝滚动</title>
</head>
<body>
<div id=demo >
<div id=demo1>
<table width="191" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_255.html>Congratulations! some tools are free shipping now!</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_254.html>Tacho Universal without times limitation</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_253.html>Latest version - Mercedes Benz Star 3/2009</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_252.html>BMW GT1 suits for any computers now!</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_251.html>New comer - Nissan Consult III</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_250.html>Update software - X431 & X431 TOOL 6/17/2009</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_249.html>Updated version - AK500 BENZ/BMW Key Programmer</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_248.html>Latest version - OP-COM v10/2008</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_247.html>New comer - Honda FLY100</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_246.html>New comer - Honda Airbag Resetter</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_245.html>TOYOTA ITIS come out</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_244.html>Latest version - VAG K CAN Commander 3.0</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
<tr>
<td height="19" width="10" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19"><img src="/images/dian.gif" width="4" height="4"/></td>
</tr>
</table>
</td>
<td align="left"><span class="STYLE4"><a href=/html/News/news_243.html>Latest version - Lexia3 Citroen/Peugeot</a></span></td>
</tr>
<tr>
<td height="10">
</td>
</tr>
</table>
</div>
<div id=demo2></div>
</div>
<script language="javascript">
var speed=40
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
</body>
</html>