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

被折叠的 条评论
为什么被折叠?



