asp 网站中调用<!--#include file="uqur.asp"-->ie正常显示,火狐不显示 5
uqur.asp的代码如下:<tablewidth="700"border="0"><tr><tdwidth="233"background="images/nav_l_...
uqur.asp的代码如下:
<table width="700" border="0">
<tr>
<td width="233" background="images/nav_l_bg.gif"><div align="center">يېڭىلىقلار</div></td>
<td width="1" rowspan="3" background="images/nav_li_right.gif"></td>
<td width="233" height="28" background="images/nav_l_bg.gif"><div align="center">شىركەت خەۋەرلىرى</div></td>
<td width="1" rowspan="3" background="images/nav_li_right.gif" ></td>
<td width="233" background="images/nav_l_bg.gif"><div align="center">ئۇنۋىرسال ئۇچۇر</div></td>
<td width="1" rowspan="3" background="images/nav_li_right.gif"></td>
</tr>
<tr>
<td background="images/kkkas.gif" ></td>
<td background="images/kkkas.gif" ></td>
<td background="images/kkkas.gif"></td>
</tr>
<tr>
<% set rs=server.createobject("adodb.recordset")
sql="select top 8 * from jr_news where isdel=false and class_id=8 or class_id=9 order by hits desc,id desc"
rs.open sql,conn,1,1
%>
<td ><table width="100%" border="0">
<% Do While Not rs.eof and Not rs.bof%>
<tr class="tb">
<td width="230" dir="rtl"><a href="news.asp?id=<%=rs("id")%>" title="<%=rs("title")%>"> <%=linkn(rs("title"),60)%></a></td>
<td width="10"><</td>
</tr>
<%
rs.movenext
Loop
rs.close
Set rs=Nothing
Set sql=Nothing
%>
</table></td>
<td height="25" valign="top" ><table width="100%" border="0">
<% set rs=server.createobject("adodb.recordset")
sql="select top 8 * from jr_news where isdel=false and class_id=2 order by hits desc,id desc"
rs.open sql,conn,1,1
%>
<% Do While Not rs.eof and Not rs.bof%>
<tr class="tb">
<td width="230" dir="rtl"><a href="news.asp?id=<%=rs("id")%>" title="<%=rs("title")%>"> <%=linkn(rs("title"),60)%></a></td>
<td width="10"><</td>
</tr>
<%
rs.movenext
Loop
rs.close
Set rs=Nothing
Set sql=Nothing
%>
</table></td>
<td valign="top"><table width="100%" border="0">
<% set rs=server.createobject("adodb.recordset")
sql="select top 8 * from jr_news where isdel=false and class_id=1 order by hits desc,id desc"
rs.open sql,conn,1,1
%>
<% Do While Not rs.eof and Not rs.bof%>
<tr class="tb"
<td width="230" dir="rtl"><a href="news.asp?id=<%=rs("id")%>" title="<%=rs("title")%>"> <%=linkn(rs("title"),60)%></a></td>
<td width="10"><</td>
</tr>
<%
rs.movenext
Loop
rs.close
Set rs=Nothing
Set sql=Nothing
%>
</table></td>
</tr>
</table> 展开
<table width="700" border="0">
<tr>
<td width="233" background="images/nav_l_bg.gif"><div align="center">يېڭىلىقلار</div></td>
<td width="1" rowspan="3" background="images/nav_li_right.gif"></td>
<td width="233" height="28" background="images/nav_l_bg.gif"><div align="center">شىركەت خەۋەرلىرى</div></td>
<td width="1" rowspan="3" background="images/nav_li_right.gif" ></td>
<td width="233" background="images/nav_l_bg.gif"><div align="center">ئۇنۋىرسال ئۇچۇر</div></td>
<td width="1" rowspan="3" background="images/nav_li_right.gif"></td>
</tr>
<tr>
<td background="images/kkkas.gif" ></td>
<td background="images/kkkas.gif" ></td>
<td background="images/kkkas.gif"></td>
</tr>
<tr>
<% set rs=server.createobject("adodb.recordset")
sql="select top 8 * from jr_news where isdel=false and class_id=8 or class_id=9 order by hits desc,id desc"
rs.open sql,conn,1,1
%>
<td ><table width="100%" border="0">
<% Do While Not rs.eof and Not rs.bof%>
<tr class="tb">
<td width="230" dir="rtl"><a href="news.asp?id=<%=rs("id")%>" title="<%=rs("title")%>"> <%=linkn(rs("title"),60)%></a></td>
<td width="10"><</td>
</tr>
<%
rs.movenext
Loop
rs.close
Set rs=Nothing
Set sql=Nothing
%>
</table></td>
<td height="25" valign="top" ><table width="100%" border="0">
<% set rs=server.createobject("adodb.recordset")
sql="select top 8 * from jr_news where isdel=false and class_id=2 order by hits desc,id desc"
rs.open sql,conn,1,1
%>
<% Do While Not rs.eof and Not rs.bof%>
<tr class="tb">
<td width="230" dir="rtl"><a href="news.asp?id=<%=rs("id")%>" title="<%=rs("title")%>"> <%=linkn(rs("title"),60)%></a></td>
<td width="10"><</td>
</tr>
<%
rs.movenext
Loop
rs.close
Set rs=Nothing
Set sql=Nothing
%>
</table></td>
<td valign="top"><table width="100%" border="0">
<% set rs=server.createobject("adodb.recordset")
sql="select top 8 * from jr_news where isdel=false and class_id=1 order by hits desc,id desc"
rs.open sql,conn,1,1
%>
<% Do While Not rs.eof and Not rs.bof%>
<tr class="tb"
<td width="230" dir="rtl"><a href="news.asp?id=<%=rs("id")%>" title="<%=rs("title")%>"> <%=linkn(rs("title"),60)%></a></td>
<td width="10"><</td>
</tr>
<%
rs.movenext
Loop
rs.close
Set rs=Nothing
Set sql=Nothing
%>
</table></td>
</tr>
</table> 展开
展开全部
尊敬的用户,您好!很高兴为您答疑。
作为动态代码,这些脚本是在服务器端解析为一般html数据后发送到浏览器端进行渲染解析的,而您所贴的代码无疑属于此类。因此出现不显示的问题可能跟您的这个引用代码无关,主要是您的页面中的内容存在兼容问题所致。
希望我的回答对您有所帮助,如有疑问,欢迎继续咨询我们。
作为动态代码,这些脚本是在服务器端解析为一般html数据后发送到浏览器端进行渲染解析的,而您所贴的代码无疑属于此类。因此出现不显示的问题可能跟您的这个引用代码无关,主要是您的页面中的内容存在兼容问题所致。
希望我的回答对您有所帮助,如有疑问,欢迎继续咨询我们。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询