var DOM = (document.getElementById) ? 1 : 0;
var NS4 = (document.layers) ? 1 : 0;
var IE4 = 0;
if (document.all)
{
IE4 = 1;
DOM = 0;
}
var win = window;
var n = 0;
function findIt() {
if (document.getElementById("searchstr").value != "")
findInPage(document.getElementById("searchstr").value);
}
function findInPage(str) {
var txt, i, found;
if (str == "")
return false;
if (DOM)
{
win.find(str, false, true);
return true;
}
if (NS4) {
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
if (n == 0)
alert("未找到指定内容.");
}
if (IE4) {
txt = win.document.body.createTextRange();
for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
txt.moveStart("character", 1);
txt.moveEnd("textedit");
}
if (found) {
txt.moveStart("character", -1);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
}
else {
if (n > 0) {
n = 0;
findInPage(str);
}
else
alert("未找到指定内容.");
}
}
return false;
}
// -->
</script>
<BODY>
<p><br>
<input type="text" id="searchstr" name="searchstr" class="textbox" size="10">
<input name="button" type="button" class="sbttn" onclick="javascript:findIt();" value="页内查找">
</p>
<p> 天极信息发展有限公司(ChinaByte Technology Co. Ltd.)是中国领先的IT在线媒体和无线增值服务提供商,公司股东包括电脑报、IDG、Impress集团、新闻集团等多家著名媒体和投资机构。天极公司以中国最大的IT门户网站(www.Yesky.com和www.ChinaByte.com)为基础,向广大网民、企业和政府事业机构提供IT内容资讯、IT商情报价、在线广告发布、线上线下活动、社区服务、无线增值服务、IT产业研究和咨询等一系列产品和服务。<BR>
Chinabyte Technology Co., Ltd is a leading Chinese IT portal and wireless value-added service provider. Its shareholders includes CPCW(China Popular Computer Week), IDG,IMPRESS、 News Corp . Based on its two famous IT websites (www.yesky.com and www.chinabyte.com) , Chinabyte provides personal users, enterprises and government organizations series of products and services, including IT contents (industial news and product information), IT products pricing information, online advertisement, activities and events, community services, wireless value-added services and IT consultation and analysis, etc. </p>