if rs.bof and rs.eof then
response.Write "<tr><td align='center'>暂无图片</td></tr>"
else
%>
<tr>
<% for i=1 to 10%>
<td align="center" valign="middle" title="<%=rs("title")%>" width="130"><div style="border:solid 1px #CCC; width:100px; padding:4px;"><a href="news_show.asp?id=<%=rs("id")%>" target="_blank"><img src="new/eWebEditor/UploadFile/<%=rs("firstImageName")%>" width="120" height="100" border="0" /></a></div>
<div style=" margin-top:2px;">
<a href="news_show.asp?id=<%=rs("id")%>" target="_blank" class="tt8">
<%response.write (left(rs("Title"),6))%>
<%if len(rs("Title"))>6 then response.Write("...")%></a>
</a>
</td>
<% rs.movenext
if rs.eof then exit for
next
%>
</tr>
<%
rs.close
end if
%>
</table></td>
<td id="demo2" valign=top></td>
</tr>
</table>
</div>
<script>
var speed=15
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>作者: 斌仔 时间: 2010-3-1 05:05
发贴看看自己积分,呵呵,好像没有LZ的多。作者: 彬彬有礼 时间: 2010-3-18 08:05
扯淡啊,感觉你在开玩笑啊