刚学到,不错
转来,记录下:
<script language="javascript">...
function on_search_click()...{
Form1.action = "http://www.google.com/custom?q=";
Form1.target = "_blank";
Form1.method = "get";
}
</script>
<!-- Search Google -->
<center>
<table bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<br/>
<input type="text" name="q" size="23" maxlength="255" value=""></input>
</td></tr>
<tr><td valign="top" align="left">
<input type="submit" name="sa" value="Google 搜索" onclick="javascript:on_search_click()"></input>
<input type="hidden" name="client" value="pub-3938365705781251"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="0968900262"></input>
<input type="hidden" name="ie" value="utf-8"></input>
<input type="hidden" name="oe" value="GB2312"></input>
<input type="hidden" name="flav" value="0001"></input>
<input type="hidden" name="sig" value="191Qey090PRjYYr6"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:114;L:http://www.google.com/logos/Logo_60wht.gif;S:http://blog.csdn.net/clin003;FORID:1"></input>
<input type="hidden" name="hl" value="zh-CN"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->