<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>网页特效搜索查找当前页面字符串</title>
<script language="javascript">
function checkarea(){
var $ = function(id){return document.getelementbyid(id)};
var v =$('models').value;
if(v =='请输入机型'){
return false;
}
if(!$('type_'+v)){
alert('没有这种型号!')
return false;
}
$('type_'+v).style.border = '1px dashed #0000ff';
$('type_'+v).style.background = '#00ccff';
$('type_'+v).style.color = '#6666ff';
location.href = "#type_"+v;
}
</script>
</head>
<body>
<div style="float: left;padding-left:30px; width:40">
<ul>
<li><input name="models" id="models" value='请输入机型' size='30' onclick="this.value=''">
<input type='button' value="提交机型" onclick="checkarea()"></li>
</ul>
</div>
<li><a href="/nokia/3155.html" id='type_3155' title="诺基亚3155手机游戏">3155</a></li>
<li><a href="/nokia/3152.html" id='type_3152' title="诺基亚3152手机游戏">3152</a></li>
<li><a href="http://www.111cn.net" id='type_nuron' title="诺基亚nuron手机游戏">nuron</a></li>
</body>
</html>