Google站内搜索代码

来源:互联网 发布:中序遍历的非递归算法 编辑:程序博客网 时间:2024/04/26 13:39
主要参数:q参数说明:搜索内容框sitesearch参数说明:指定是站内搜索(取值为网站地址)还是互联网搜索(取值为空)

cof参数说明:

L:结果页面顶部图片地址

LW:结果页面顶部图片宽度

LH:结果页面顶部图片高度

S:结果页面顶部图片键接地址

AH:顶部搜索栏显示位置(取值:left、center、right)

GL:顶部搜索栏样式(取值:0、1、2)

T:结果页面主颜色

VLC:第一个搜索结果标题颜色

domains参数说明:网站地址

代码如下:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Google站内搜索</title>
<style type="text/css">
<!--
.style1 {color: #0000FF}
-->
</style>
</head>
<body>
<div align="center">Google站内搜索</div>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="00" bgcolor="#3399FF">
<FORM action="http://www.google.com/custom" method="get" target="_blank"><tr><td>
<TABLE width="100%" border=0 cellPadding=1 cellSpacing=1><TR><TD bgcolor="#FFFFFF">
<INPUT name="q" size="50" maxLength="255">
<input type="radio" checked value="www.fanzny.com" name="sitesearch">本站
<input type="radio" value="" name="sitesearch">全部&nbsp;
<input type="submit" value="搜索" name="submit">
<input type="hidden" value="zh-CN" name="hl">
<input type="hidden" value="L:http://www.0086sex.com/images/0086SEX_LOGO.gif;LW:184;LH:101;S:http://www.fanzny.com;AH:left;GL:0;T:blank;VLC:#551A8B;" name="cof">
<input type="hidden" value="www.fanzny.com" name="domains"></TD>
</TR></TABLE></td></tr></FORM></table><BR>
</body>
</html>