高手们看看这个网页的那个字体的向上滚动的效果是怎么做的?
是从数据库里取出的数据然后怎么做呢??
现在急用请高手指点!
谢谢!
这个地方:
[CODE]<script>
function showMarqueeBox(id, lh, speed, delay) {
var o = document.getElementById(id);
var p = false;
var t;
o.style.overflow = "hidden";
o.style.height = o.style.lineHeight = lh + "px";
o.style.lineHeight = "12px";
o.style.height = o.style.lineHeight;
o.onmouseover = function() { p = true; }
o.onmouseout = function() { p = false; }
function start() {
t = setInterval(scrolling, speed);
if (!p) o.scrollTop++;
}
function scrolling() {
if ((o.scrollTop % lh) != 0) {
o.scrollTop++;
if (o.scrollTop >= o.scrollHeight - lh - 1)
{
o.scrollTop = 0;
}
} else {
clearInterval(t);
setTimeout(start, delay);
}
}
setTimeout(start, delay);
}
</script>
<table width="200" height="21" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr><td width="71" align="center" valign="middle" bgcolor="#FFFFFF" style="font-size:12px">这个效果:</td>
<td width="129" align="center" valign="middle" bgcolor="#FFFFFF">
<div id="marqueebox_1_1" style="background-color:#FFFFFF; line-height:24px;font-size:11px;">
<!--这个调用数据库循环记录-->
03-29
<font color='FB6600' style='font-size:11px;'>
¥12999</font><br>04-16
<font color='FB6600' style='font-size:11px;'>
¥12999</font><br>03-29
<font color='FB6600' style='font-size:11px;'>
¥12999</font><br>04-16
<font color='FB6600' style='font-size:11px;'>
¥12999</font><br>03-29
<font color='FB6600' style='font-size:11px;'>
¥12999</font><br>04-16
<font color='FB6600' style='font-size:11px;'>
¥12999</font><br>03-29
<font color='FB6600' style='font-size:11px;'>
¥12999</font><br>04-16
<font color='FB6600' style='font-size:11px;'>
¥12999</font><br><br>
</div>
<script>showMarqueeBox("marqueebox_1_1",12,20,2000);</script>
</td></tr></table> [/CODE]
<%dim rs1,closers
set rs1=server.CreateObject("ADODB.Recordset")
sql="select * from xianlushijian where xianluid="&rs("id")&""
rs1.open sql,conn,3,1
%>
<td><% do while not rs1.eof %><marquee width="50" height="10" direction="up" scrollamount="1" onmouseover="this.stop()" onmouseout="this.start()">
<a href="index.asp"><%=rs1("shijian")%>----<%=rs1("rei")%></a>
</marquee>
<%
rs1.movenext
a=a+1
loop
rs1.close
'closers(rs1)
%></td>
这样不行呀