使用js递交面面数据

此博客展示了用JavaScript实现Google价格查询的代码。定义了打开新窗口的函数,通过表单让用户输入关键词,选择推广范围,点击查询按钮后调用函数打开新窗口显示查询结果,还包含了表格等HTML元素的设置。

<script language="javascript">
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);}
function searchyou(){
 var newurl = 'http://www.google-price.net/GooglePrice/Result.aspx?Keyword=' + zjsearchyou.keywords.value +'&Country=0&Queue=0';
 MM_openBrWindow(newurl,'广告价格','width=600,height=600,scrollbars=yes');
}
</script>

<!--goolge价格查询-->
<form action="" method="get" name="zjsearchyou"  id="zjsearchyou" onSubmit="searchyou()">
<TABLE id="Table1" cellSpacing="0" cellPadding="0" border="0" class="t01">
 <TR>
    <TD align="left"><img src="images/goolgeprice.jpg" > </TD>
  </TR>

        <TR>
          <TD align="center"> <TABLE id="RadCountry" cellSpacing="0" cellPadding="0" border="0" class="t01" width="100%">
              <TR>
                <TD><INPUT id="RadCountry_0" type="radio" CHECKED value="0" name="RadCountry" style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none">
                  <LABEL for="RadCountry_0">国内推广</LABEL></TD>
                <TD><INPUT id="RadCountry_1" type="radio" value="1" name="RadCountry" style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none">
                  <LABEL for="RadCountry_1">全球推广</LABEL></TD>
              </TR>
            </TABLE></TD>
        </TR>
        <TR>
          <TD align="center" height="5"></TD>
        </TR>
        <TR>
          <TD align="center"><INPUT id="keywords" style="WIDTH: 160px; HEIGHT: 22px" size="20" name="keywords">             </TD>
        </TR>
        <TR>
          <TD align="center" height="5"></TD>
        </TR>
        <TR>
          <TD align="center"><INPUT id="BtnQuery" type="button" value="Google价格查询" name="BtnQuery" onClick="searchyou()"></TD>
        </TR>
      </TABLE>
   </form>
<!--//goolge价格查询结束--> 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值