wholemessage='<%     //那这里应该是用双引号还是单引号啊,hh =rs1("title")
Response.Write"<font color=""000000"" size=""2"" >"
response.write hh
response.write "<p>"%>'
应该这样写
hh =rs1("title")
wholemessage='<font color="000000" size="2" ><%=hh%><p>'

解决方案 »

  1.   

    为什么如此显示2条信息可以的,显示3条以上就不可以呢?这是一个滚动新闻:
    var wholemessage=''wholemessage='<font color="000000" size="2" ><%hh =rs1("title")response.write hh
    response.write "<p>"
    rs1.movenext
    hh =rs1("title")response.write hh
    response.write "<p>"%>'
      

  2.   

    老是说ieslider没有定义:
    <SCRIPT language=JavaScript>
    //下列document.writeln函数中的solid后可改颜色
    if (document.all){
    document.writeln('<marquee id="ieslider"  scrollAmount=2 width=150 height=300 direction=up style="border:1 black;background-color:#edf2fc>' )
    document.writeln(wholemessage)
    ieslider.onmouseover=new Function("ieslider.scrollAmount=0")
    ieslider.onmouseout=new Function("if (document.readyState=='complete') ieslider.scrollAmount=2")
    document.write('</marquee>')
    }
    if (document.getElementById&&!document.all){
    document.write('<div style="position:relative;overflow:hidden;width:180;height:100;clip:rect(0 302 102 0); background-color:black;border:1px solid red;" onMouseover="sspeed=0;" onMouseout="sspeed=2">')
    document.write('<div id="slider" style="position:relative;width:&{swidth};">')
    document.write('</div></div>')
    }
    </SCRIPT>