JS语言问题

来源:百度知道 编辑:UC知道 时间:2024/06/16 17:30:59
报错了 在第九行 '++++------- 读取“公告” 我不懂JS语言 麻烦哪个大虾指点一二!

<td width="188">

<p style="line-height:150%; margin-left:2px; text-indent:0">

<script language="javascript">

document.write ("<marquee scrollamount='1' scrolldelay='30' direction= 'UP' width='100%' id='this' height='150' onmouseover='this.stop()' onmouseout='this.start()' Author:mon; For more,visit:美丽在线>")
<%
'++++------- 读取“公告”
Dim ggSQL:ggSQL= "Select TOP 8 id,title,datein from article_data where cid=9 Order by datein DESC"
set rs = conn.execute(ggSQL)
do while not rs.eof
dim date_ggao
date_ggao=Fix(Now()-rs("datein"))
%>

可能也不是错在你指出的哪里
有时候因为上下文错误会导致多处没有的错误

1.你的书写习惯有点差。。
2.</marquee></p>标记没有
3.this是默认对象,代表当前对象,不需要定义,而且你定义了可能会出现意外

<td width="188">
<marquee scrollamount='1' scrolldelay='30' direction= 'UP' width='100%' height='150' onmouseover='this.stop()' onmouseout='this.start()' Author:mon; For more,visit:美丽在线>
<p style="line-height:150%; margin-left:2px; text-indent:0">
<%
'++++------- 读取公告
Dim ggSQL,date_ggao
ggSQL= "Select TOP 8 id,title,datein from article_data where cid=9 Order by datein DESC"
set rs = conn.execute(ggSQL)
do while not rs.eof
date_ggao=Fix(Now()-rs("datein"))
response.write "·<a target='_blank' href='show/Article.asp?ID=" & rs("id") & "'><font style='font-size: 9pt' "
if date_ggao<3 th