一串ASP网页代码 如何修改

来源:百度知道 编辑:UC知道 时间:2024/05/21 19:24:07
==如下开始代码
<form name="formtop" method="post" action="http://www.tieziba.comimage/new.asp" onsubmit="submit.disabled=1">
<tr>
<td width="100%" height="20" align="center" colspan="2"><table width="527" height="68" border="0">
<tr>
<td width="176" rowspan="2"><img src="http://www.tieziba.comimage/bar.gif" width="174" height="69" /></td>
<td width="379" height="26"><input name="keyword" maxlength="50" size="30" />
<input type="submit" name="submit" value=" 搜索贴吧 " /></td>

下面代码实测成功.

将其改为JS,然后远程可调用了.
将dy.js这个文件放在http://www.tieziba.comimage/路径下:

dy.js

document.writeln("<form name=\"formtop\" method=\"post\" action=\"http:\/\/www.tieziba.comimage\/new.asp\" onsubmit=\"submit.disabled=1\"> ");
document.writeln("<tr> ");
document.writeln("<td width=\"100%\" height=\"20\" align=\"center\" colspan=\"2\"><table width=\"527\" height=\"68\" border=\"0\"> ");
document.writeln("<tr> ");
document.writeln("<td width=\"176\" rowspan=\"2&#