如何才能删除到部分代码

gsdragon 2008-05-28 05:38:49
原来引用以下代码可以正常显示天气<script language="JavaScript" src="http://www.zsnet.com/weather/weather.asp"></script>
,但现在它增加输出<#include file="func_xml.asp">内容,导致生成出错,不知有无办法修改它的输出正常生成天气情况!

<table width="100%" align="center" cellpadding="0" cellspacing="1" class="bordercolor">
<tr bordercolor="#FFFAE1" bgcolor="#FFFAE1">
<td colspan="2">
<!--天气预报.开始-->
<script language="JavaScript" src="http://www.zsnet.com/weather/weather.asp"></script>
<!--天气预报.结束-->
</td>
</tr>
</table>
...全文
93 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
那就用xmlhttp吧
gsdragon 2008-05-29
  • 打赏
  • 举报
回复
<#include file="func_xml.asp">是其它网站自动生成的,在我引用http://www.zsnet.com/weather/weather.asp网页时自动生成输出的,由于是引用其它网站,我也无weather.asp的原代码。希望用在引用后,有办法把这个语句删除掉,我就可以正常显示啦,各位有办法吗?
moreyin 2008-05-29
  • 打赏
  • 举报
回复
<#include file="func_xml.asp">内容
用document.write('<#include file="func_xml.asp">')试试。
jhwcd 2008-05-28
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 showbo 的回复:]
more code........贴出weather.asp的内容


<!#include file="func_xml.asp">
===>
<!--#include file="func_xml.asp"-->
[/Quote]
  • 打赏
  • 举报
回复
<#include file="func_xml.asp">
这个调用错了吧
<!--#include file="func_xml.asp"-->
这样才对
输出格式符合JS得格式嘛?
Go 旅城通票 2008-05-28
  • 打赏
  • 举报
回复
more code........贴出weather.asp的内容


<!#include file="func_xml.asp">
===>
<!--#include file="func_xml.asp"-->
joegu 2008-05-28
  • 打赏
  • 举报
回复
改成明天刮台风?

87,907

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧