if rs.eof and rs.bof then
'------------------------------------------------------------------------------
response.write "<table width='100%'><tr><td> </td></tr></table>"
'------------------------------------------------------------------------------
'------------------------------------------------------------------------------
response.write "<table width='100%'><tr><td> </td></tr></table>"
'------------------------------------------------------------------------------
但这样不行啊。还是变形。
这个javascript原来是这样的。
v_content=[
['http://www.smartmenus.org/other.php','<img src=strelka.gif align=top width=20 height=11 border=0>Welcome to the V-NewsTicker example page!','_blank'],
['','<img src=strelka.gif align=top width=20 height=11 border=0>Featuring: blah, blah , blah, blah ....','_blank'],
['http://www.smartmenus.org/','<img src=strelka.gif align=top width=20 height=11 border=0>Get the most advanced navigation system for your site - the SmartMenus.','_blank']
];
是静态的内容。
后来。改成从数据库中查询内容。
if rs.eof and rs.bof then
response.write "['','','']"
else
k=0
for k = 1 to 20
Dim sLinks2
sLinks2 = sLinks2 & "['" & rs("href") & "', ' " & rs("title") & "', '_blank']," rs.movenext
if rs.eof then
k = k + 1
exit for
end if
next
sLinks2 = Left(sLinks2, Len(sLinks2) - 1)
Response.Write sLinks2
end if '-----end if 放Response.Write sLinks2之后就对了
rs.close
set rs=nothing
set cmdexample=nothing
%>
http://community.csdn.net/Expert/topic/4084/4084726.xml?temp=.6703913