?? 調(diào)用其他搜索引擎.htm
字號(hào):
<html>
<head>
<title>調(diào)用其他搜索引擎</title>
</head>
<body>
<script language="JavaScript">
<!-- 隱藏以下搜索引擎 --
Google = "http://www.google.com/search?q=";
Sina = "http://search.sina.com.cn/cgi-bin/search/search.cgi?_searchkey=";
Sohu = "http://site.search.sohu.com/website.jsp?key_word=";
Netease = "http://psearch.163.com/google/Search?lang=all&q=";
var got=0;
var url = "";
var plus = "";
function search4(item)
{
resultsWindow=window.open();
resultsWindow.document.open();
resultsWindow.document.write("<head><title>Close this window to return to Total Search</title></head>");
resultsWindow.document.write("<frameset rows=50%,50%><frameset COLS=50%,50%><frame name='frame0' SRC='" + computeFrameSrc(0) + "'><frame name='frame1' SRC='" + computeFrameSrc(1) + "'></frameset>");
resultsWindow.document.write("<frameset COLS=50%,50%><frame name='frame2' SRC='" + computeFrameSrc(2)+ "'><frame name='frame3' SRC='" + computeFrameSrc(3) + "'></frameset></frameset>");
resultsWindow.document.close();
got = 0;
}
function search2(item)
{
resultsWindow=window.open();
resultsWindow.document.open();
resultsWindow.document.write("<head><title>Close this window to return to Total Search</title></head>");
resultsWindow.document.write("<frameset ROWS=50%,50%><frame name='frame0' SRC='" + computeFrameSrc(0) + "'><frame name='frame1' SRC='" + computeFrameSrc(1) + "'></frameset>");
resultsWindow.document.close();
got = 0;
}
function numChecked(item)
{
plus = escape(item.text.value); /* 搜索關(guān)鍵字 */
var h=0; num=0;
for (var l=0; l < item.check1.length; l++)
{
if (item.check1[l].checked)
{
h++;
if (h++ <= 4)
{
if (l == "0"){ num = 1;}
else if (l == "1"){ num = 2;}
else if (l == "2"){ num = 3;}
else if (l == "3"){ num = 4;}
else if (l == "4"){ num = 5;}
}
}
}
if (h == 2) Results(num-1);
else if (h == 4) search2(item);
else search4(item);
}
function computeFrameSrc(num)
{
var k=-1;
for (var j=got; j < document.choose4.check1.length; j++)
{
if (document.choose4.check1[j].checked)
{
k++;
if (k++ <= num)
{
if (j == "0")
{
url = Google + unescape(plus);
got = 1;
}
else if (j == "1")
{
url = Sina + unescape(plus); got = 2;
}
else if (j == "2")
{
url = Sohu + unescape(plus); got = 3;
}
else if (j == "3")
{
url = Netease + unescape(plus); got = 4;
}
return url;
}
}
}
url = "http://www.personalcompass.com/empty.html";
return url;
}
function Results(place)
{
resultsWin = open("","results");
if (place == "0") url = Google + unescape(plus);
else if (place == "1") url = Sina + unescape(plus);
else if (place == "2") url = Sohu + unescape(plus);
else if (place == "3") url = Netease + unescape(plus);
resultsWin.location = url;
}
// -- 結(jié)束隱藏部分 -->
</script>
<form name="choose4" Action="javascript:numChecked(document.choose4) //">
<p>
<table><tr><td><b>請(qǐng)選擇搜索引擎</b>
<p>
<input type="checkbox" name="check1" value="Google" onClick="choose4.check1.value='Google'">Google
<br><input type="checkbox" name="check1" value="Sina" onClick="choose4.check1.value='Sina'">Sina
<br><input type="checkbox" name="check1" value="Sohu" onClick="choose4.check1.value='Sohu'">Sohu
<br><input type="checkbox" name="check1" value="Netease" onClick="choose4.check1.value='Netease'">Netease
<br><br></td></tr>
</table>
<p>
<b>請(qǐng)輸入關(guān)鍵字</b>:
<br><input type="text" name="text" size=30> <input type="submit" name="send" value="搜索">
<input type="reset" name="clear" value="清除">
</form>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -