⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index_head.js

📁 最强的爬虫工程
💻 JS
字号:
document.write('\
<!-- 二级头部 全局变量 begin -->\
<style type="text/css">\
/* 针对google修改 begin */\
/* 二级导航 */\
#level2header {border-top:1px solid #000;border-bottom:1px solid #000;width:950px;height:34px;font-size:12px; background:#fff;}\
#level2header img{border:none;}\
#level2header #logo {float:left;text-align:left; padding-top:3px;}\
#level2header #l2navlnk {float:right;text-align:center;line-height:34px;}\
#level2header #l2navlnk a:link,#level2header #l2navlnk a:visited {color:#000;text-decoration:none;}\
#level2header #l2navlnk a:hover,#level2header #l2navlnk a:active {color:#f00;text-decoration:underline;}\
#level2header #iask {float:right;width:307px;height:34px;background-color:#FFF;text-align:left;padding-left:6px; color:#000;}\
#level2header #iask a:link,#level2header #iask a:visited {color:#f00;text-decoration:none;}\
#level2header #iask a:hover,#level2header #iask a:active {color:#f00;text-decoration:underline;}\
#level2header #iask #k {width:65px;border:1px solid #7F9DB9;margin:0 0 0 7px;}\
#level2header #iask .sebtn{width:45px; height:18px;}\
#level2header .iaskRedTxt{color:#aaa; border:1px #f00 solid;}\
#level2headerborder{background:#fff; height:5px; overflow:hidden; clear:both; width:950px;}\
/* 针对google修改 end */\
</style>\
<!-- 新浪读书 head begin -->\
');

<!--//--><![CDATA[//><!--
function checkiask(){
	if (document._searchiask.k.value=="请输关键词" || document._searchiask.k.value=="" ){
		//window.open("http://iask.com");
		document._searchiask.k.value = "请输关键词";
		document._searchiask.k.className = "iaskRedTxt";
		document._searchiask.k.style.border = "1px #f00 solid";
		return false;
	}
	return true;
}
function sens(){//搜新闻
	document._searchiask.t.value = "keyword";
}
function sezt(){//搜专题
	document._searchiask.t.value = "subject";
}
//--><!]]>

document.write('\
<div id="level2header">\
	<div id="logo"><a href="http://www.sina.com.cn/"><img src="http://image2.sina.com.cn/home/head/sinalogo.gif" alt="新浪网" width="40" height="27" /></a><a href="http://book.sina.com.cn/"><img src="http://image2.sina.com.cn/home/head/ds.gif" alt="新浪读书" /></a></div>\
	<div id="iask">\
	\
<!--google begin-->\
<!-- Script Used for Clickable Google Logo, and Google Text Link -->\
')

function submitFormWithChannel(channelname){
	if(document.gform.q.value=="请输关键词"||document.gform.q.value=="请输入关键字"||document.gform.q.value==""){
		document.gform.q.value="请输关键词";
	}else{
		document.gform.channel.value=channelname;
		document.gform.submit();
		return;
	}
}
<!-- End of Script for Clickable Google Logo -->
function checkGoogleValue(){
	if(document.gform.q.value=="请输关键词"||document.gform.q.value=="请输入关键字"||document.gform.q.value==""){
		document.gform.q.value="请输关键词";
		return false;
	}
	document.gform.channel.value = "osearch";
	return true;
}
document.write('\
<div id="login1searchblk">\
	<style type="text/css">\
	A.gol1:link,A.gol1:visited{text-decoration:none;color:#000;font-size:14px;}\
	A.gol1:active,A.gol1:hover{text-decoration:none;color:#000;font-size:14px;}\
	\
	A.gol2:link,A.gol2:visited{text-decoration:none;color:#000;font-size:14px;}\
	A.gol2:active,A.gol2:hover{text-decoration:none;color:#000;font-size:14px;}\
	</style>\
');
	function hidealla(j){
		for(j=1;j<3;j++){
			document.getElementById("surveya"+j).style.visibility = "hidden";
		}
	}
	function showdiv1(h){
		hidealla();
		document.getElementById("surveya"+h).style.visibility = "visible";
	}
document.write('\
	<div id="surveya" style="position:relative; width:307px; height:34px; z-index:1; background:#F3F3F3;">\
		<div id=surveya1 style="position:absolute; top:0; left:0; z-index:10; visibility:visible;">\
			<form onSubmit="return checkGoogleValue();" name="gform" method="get" action="http://www.google.cn/search" target="_blank">\
			<input type="hidden" name="client" value="aff-sina"/>\
			<input type="hidden" name="ie" value="gb"/>\
			<input type="hidden" name="oe" value="gb"/>\
			<input type="hidden" name="hl" value="zh-CN"/>\
			<input type="hidden" name="channel" value="search"/>\
			<table width="307" cellspacing="0" cellpadding="0" height="34px" style="border-bottom:2px #FFBB00 solid;">\
			<tr>\
			<td width="80" align="center" style="text-align:center;"><input type="text" name="q" style="width:70px;height:14px; border:1px #808080 solid; border-right:1px #fff solid; border-bottom:1px #fff solid; font-size:12px; color:#808080;" value="请输关键词" onClick="javascript:if(this.value==\'请输关键词\')this.value=\'\';"/></td>\
			<td width="40" align="left" style="text-align:left;"><input type="submit" name="sa" value="搜索" style="width:34px; height:20px;"></td>\
			<td width="130" valign="bottom">\
				<table width="130" height="30" cellpadding="0" cellspacing="0" background="http://image2.sina.com.cn/ty/deco/2007/0602/images/searchbar_logo_04.gif">\
				<tr>\
				<td width="76" align="right" valign="bottom" style="text-align:right;"><a href="javascript:submitFormWithChannel(\'ologo\')"><img src="http://image2.sina.com.cn/ty/deco/2007/0602/images/google_logo_02.gif" width="76" height="29" border="0" alt="Google"/></a></td>\
				<td width="54" align="center" style="text-align:center;padding-top:1px;"><a href="javascript:void(0);" class="gol2" onClick="showdiv1(1)" style="color:#000; text-decoration:none;">网页</a></td>\
				</tr>\
				</table>\
			</td>\
			<td width="4"></td>\
			<td width="49" align="center" valign="bottom" style="text-align:center;">\
				<table width="49" height="30" cellspacing="0" cellpadding="0">\
				<tr>\
				<td align="center" background="http://image2.sina.com.cn/ty/deco/2007/0602/images/searchbar_logo_06.gif" style="text-align:center;padding-top:1px;"><a href="javascript:void(0);" class="gol1" onClick="showdiv1(2)" style="color:#000; text-decoration:none;">新闻</a></td>\
				</tr>\
				</table>\
			</td>\
			<td width="2"></td>\
			</tr>\
			</table>\
			</form>\
		</div>\
		\
		<div id=surveya2 style="position:absolute; top:0; left:0; z-index:10; visibility: hidden;"> \
			<form name="_searchiask" method="get" action="http://iask.com/n" onsubmit="return checkiask()" target="_blank">\
			<input type="hidden" name="t" value="keyword"/>\
			<input type="hidden" name="c" value="all"/>\
			<table width="307" cellspacing="0" cellpadding="0" height="34px" style="border-bottom:2px #FFBB00 solid;">\
			<tr>\
			<td width="80" align="center" style="text-align:center;"><input type=text name="k" style="width:70px;height:14px; border:1px #808080 solid; border-right:1px #fff solid; border-bottom:1px #fff solid; font-size:12px; color:#808080;" value="请输关键词" onClick="javascript:if(this.value==\'请输关键词\')this.value=\'\';"/></td>\
			<td width="40" align="left" style="text-align:left;"><input type="submit" value="搜索" style="width:34px; height:20px;"></td>\
			<td width="130" valign="bottom">\
				<table width="130" height="30" cellpadding="0" cellspacing="0" background="http://image2.sina.com.cn/ty/deco/2007/0602/images/searchbar_logo_07.gif">\
				<tr>\
				<td width="76" align="right" valign="bottom" style="text-align:right;"><a href="javascript:void(0);" onClick="showdiv1(1)"><img src="http://image2.sina.com.cn/ty/deco/2007/0602/images/google_logo_02.gif" width="76" height="29" border="0" alt="Google"/></a></td>\
				<td width="54" align="center" style="text-align:center;padding-top:1px;"><a href="javascript:void(0);" class="gol2" onClick="showdiv1(1)" style="color:#000; text-decoration:none;">网页</a></td>\
				</tr>\
				</table>\
			</td>\
			<td width="4"></td>\
			<td width="49" align="center" valign="bottom" style="text-align:center;">\
				<table width="49" height="30" cellspacing="0" cellpadding="0" style="border:1px #ffb900 solid; border-bottom:none;">\
				<tr>\
				<td align="center" style="background:url(http://image2.sina.com.cn/ty/deco/2007/0602/images/searchbar_logo_03.gif) no-repeat 5px 0 #fff; text-align:center;"><a href="javascript:void(0);" class="gol1" onClick="showdiv1(2)" style="color:#000; text-decoration:none;">新闻</a></td>\
				</tr>\
				</table>\
			</td>\
			<td width="2"></td>\
			</tr>\
			</table>\
			</form>\
		</div>\
	</div>\
</div>\
<!--google end-->\
	\
	</div>\
	<div id="l2navlnk"><a href="http://book.sina.com.cn/">新浪读书</a> | <a href="http://www.sina.com.cn/">新浪首页</a> | <a href="http://news.sina.com.cn/guide/">导航</a> | </div>\
</div>\
<div id="level2headerborder"></div>\
<!-- 新浪读书 head end -->\
<!-- 二级头部 全局变量 end -->\
');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -