3 回答
TA贡献1825条经验 获得超6个赞
完整代码如下:
<%
set rs=server.CreateObject("adodb.recordset")
sql="select top 10 * from xnews order by id desc"'把xnews表中的title字段给显示出来
rs.open sql,conn,1,1
if not rs.eof then
%>
document.write("<ul>");
<%
do while not rs.eof
%>
document.write("<li><%=rs("title")%></li> ");
<%
rs.movenext
loop
%>
document.write("</ul>");
<%
end if
rs.close
set rs=nothing
%>
TA贡献1817条经验 获得超14个赞
window.onload = function(){
var str = 'abcdefg',i=0,arr=str.split('');
setInterval(function(){
if(i>str.length-1){
i=0;
document.getElementById('test').innerHTML='';
}
document.getElementById('test').innerHTML=document.getElementById('test').innerHTML+arr[i];
i++;
},200);
}
<b id="test"></b>
TA贡献1846条经验 获得超7个赞
<script>
document.write("<ul>")
document.write("<li>文本</li>")
document.write("</ul>")
</script>
添加回答
举报
