﻿<html><head>
<meta http-equiv=Content-Type content="text/html;charset=gb2312"/>
<meta name="keywords" content="百度词典搜索支持全面的英汉词典、汉英词典、汉语字典、汉语词典、汉语成语词典功能，以及强大的中英文自动翻译功能。"/>
<title>百度词典</title>
<style>body{margin:4px 0 4px 0;}img{border:0}td,p{font-size:12px}p{width:600px;margin:0;padding:0}.kw{font-family:Verdana;font-size:16px;height:1.78em;padding-top:2px;}#ft,#ft *{clear:both;margin-top:10px;line-height:20px;text-align:center;color:#77C;font-size:12px;font-family:arial;white-space:nowrap}#usrbar{padding-right:10px;line-height:19px;font-size:12px;font-family:Arial;text-align:right;white-space:nowrap;margin-bottom:3px !important;margin-bottom:10px;}

.sb{height:2em;width:5.6em;font-size:14px;}

#km{height:50px;}a{font-family:arial}#km a{font-family:宋体}

.hp{position:absolute;margin-left:14px;text-align:left;white-space:nowrap;top:5px;right:-120px;}

#sentence{width:326px;}

#sentence form{margin:0;padding:0;}

#sentence span{font-size:12px;margin:0;padding:0;}

#sentence textarea{width:100%;height:150px;margin-bottom:5px;}

</style>
<!--[if IE]>
<style type="text/css">
.hp{top:8px;}
</style>
<![endif]-->
<style type="text/css">
	#layer{
		background-color:#000000;
		opacity:0.6;
		position:absolute;
		z-index:100;
		left:0;
		top:0;
		display:none;
	}
	#setter{
		width:300px;
		height:160px;
		border:4px solid #E4E4E4;
		background-color:#FFFFFF;
		position:absolute;
		z-index:200;
		text-align:center;
		font-size:12px;
		display:none;
	}
	form,h3,h4{				
		margin:0;
		padding:0;
	}
	#setteri{
		z-index:1;
		width:100%;
		height:100%;
		opacity:0.1;
	}
</style>
<!--[if IE]>
<style type="text/css">
#layer{
	filter:alpha(opacity=60);
}
#sv{
	padding-top:4px;
}
#setteri{
	filter:alpha(opacity=1);
}
</style>
<![endif]-->

<script>

function $(id){return document.getElementById(id);}
function sub(){
	if((/^\s*$/).test($("sen").value)){$("sen").value="";return;}
	else{$("form").submit();}
}
function appendParam(name,value,f){
	var param = document.createElement("input");
	param.type ="hidden";
	param.name = name;
	param.value = value;
	f.appendChild(param);
}
function sub_word(){
	if((/^\s*$/).test($("kw").value)){$("kw").value="";return false;}
	else{
		var f = document.createElement("form");
		document.body.appendChild(f);
		f.method = "get";
		if($("all").checked){
			f.action = "http://www.baidu.com/s";
			appendParam("cl","3",f);
			appendParam("wd",$("kw").value,f);
		}else{
			f.action = "http://dict.baidu.com/s";
			appendParam("wd",$("kw").value,f);
		}
		try{
			appendParam("f","3",f);
			appendParam("oq",document.forms['f1'].elements[4].value,f);
			appendParam("rsp",document.forms['f1'].elements[6].value,f);
		}catch(e){}
		f.submit();
		return false;
	}
}

</script></head>

<body text=000000 link=0000cc vlink=0000cc alink=ff6600 onload="f1.qd.focus();">

<div id="usrbar">&nbsp;</div>

<center>

<img src="http://img.baidu.com/img/logo-dite.gif" alt="百度词典"><br><br><br><br>

<div style="width:413px;text-align:left;position:relative;">

<table border="0" cellspacing="0" cellpadding="0" style="margin-bottom:12px;"><tr>

<td><form name=f1 onsubmit="sub_word();return false;" id="zzj_form0">

<input type=text name=qd class=kw size=38 maxlength=100 id="kw"/>

<input type=submit value=百度一下 class=sb >

<span class=hp>
<a href="#" id="set">设置</a>|<a href="http://www.baidu.com/search/dict.html">帮助</a>|<a onClick="window.external.addFavorite('http://dict.baidu.com','百度词典')" href=#>加入收藏</a>
</span><br>

<label for="cd"><input type=radio name=r checked id="cd">词典</label>

<label for="all"><input type=radio name=r id="all">所有网页</label>

</form></td></tr></table><br>

<div id="sentence">

<span>请输入你要翻译的文字</span><br/>

<form action="http://baidu.netat.net/trans.php" method="post" id="form">

	<textarea name="sen" id="sen"></textarea>

	<select name="lang" id = "lang">

		<option value="cnen">中文 翻译成 英文</option>

		<option value="encn" selected="selected">英文 翻译成 中文</option>

	</select>

	<input type="button" name="Submit" id="Submit" value="百度翻译" onclick="sub();"/>

</form>	

</div></div>
</center>

<p style=height:72px; />

<div id="ft">&copy;2009 Baidu <a href="http://www.baidu.com/duty/">使用百度前必读</a>&nbsp;<a href="http://www.baidu.com/">百度首页</a></div>

<div id="layer">
	<iframe frameborder="0" src="about:blank" id="setteri"></iframe>
</div>
<div id="setter">
	<form action="">
		<div style="text-align:right;width:18px;height:20px;float:right;background:url(http://img.baidu.com/img/iknow/popclose.gif) no-repeat;" id="clbt"></div>
		<h3 style="text-align:left;font-size:14px;margin:5px 0 0 10px;clear:both;">搜索框提示</h3>
		<h4 style="font-weight:normal;font-size:12px;margin:10px 0;">是否希望搜索<b>汉字</b>和<b>英语</b>时显示搜索框提示</h4>				
		<label><input type="radio" value="yes" name="sughint" id="st1" checked="checked"/>显示</label>
		<label><input type="radio" value="no" name="sughint" id="st2"/>不显示</label><br/>
		<input style="margin-top:10px;" type="button" value="保存设置" id="sv"/>
	</form>
</div>
<script type="text/javascript">
	function addEvent(element,eventName,callback){
		element.attachEvent ? element.attachEvent('on'+eventName, callback): element.addEventListener(eventName, callback, false);
	}
</script>
<script type="text/javascript">		
	addEvent($("clbt"),"mouseover",function(e){
		$("clbt").style.backgroundPosition = "-16px 0";
	});
	addEvent($("clbt"),"mouseout",function(e){
		$("clbt").style.backgroundPosition = "0 0";
	});
	addEvent($("clbt"),"click",function(e){
		$("setter").style.display = "none";
		$("layer").style.display = "none";
	});
	addEvent(window,"resize",function(e){
		if($("layer").style.display != "none"){
			var doc = (!document.compatMode || document.compatMode == 'CSS1Compat') ? document.documentElement : document.body;
			var min = (!!window.opera || navigator.userAgent.indexOf('AppleWebKit/') > -1) ? {x: window.innerWidth, y: window.innerHeight} : {x: doc.clientWidth, y: doc.clientHeight};	
			var size = {x: Math.max(doc.scrollWidth, min.x), y: Math.max(doc.scrollHeight, min.y)};	
			var scroll = {x: window.pageXOffset || doc.scrollLeft, y: window.pageYOffset || doc.scrollTop};
			$("layer").style.width = size.x+"px";
			$("layer").style.height = size.y+"px";
			$("setter").style.left = (scroll.x + (min.x - $("setter").offsetWidth)/2)+"px";
			$("setter").style.top = (scroll.y + (min.y - $("setter").offsetHeight)/2)+"px";
			
		}
	});
	addEvent($("set"),"click",function(e){
		var event = e || window.event;
		event.preventDefault ? event.preventDefault() : (event.returnValue = false) ;		
		var doc = (!document.compatMode || document.compatMode == 'CSS1Compat') ? document.documentElement : document.body;
		var min = (!!window.opera || navigator.userAgent.indexOf('AppleWebKit/') > -1) ? {x: window.innerWidth, y: window.innerHeight} : {x: doc.clientWidth, y: doc.clientHeight};	
		var size = {x: Math.max(doc.scrollWidth, min.x), y: Math.max(doc.scrollHeight, min.y)};	
		var scroll = {x: window.pageXOffset || doc.scrollLeft, y: window.pageYOffset || doc.scrollTop};
		$("layer").style.display="block";
		$("layer").style.width = size.x+"px";
		$("layer").style.height = size.y+"px";
		$("setter").style.display = "block";
		if(document.cookie.match('(?:^|;)\\s*zzj_sug_hint=([^;]*)')||document.cookie.match('(?:^|;)\\s*su=([^;]*)')){$("st2").checked = "checked";}else{$("st1").checked = "checked";};
		$("setter").style.left = (scroll.x + (min.x - $("setter").offsetWidth)/2)+"px";
		$("setter").style.top = (scroll.y + (min.y - $("setter").offsetHeight)/2)+"px";				
	});
	addEvent($("sv"),"click",function(e){
		if($("st1").checked){
			var date = new Date();
			date.setTime(date.getTime() - 30 * 24 * 60 * 60 * 1000);
			document.cookie = "zzj_sug_hint=yes;expires="+date.toGMTString();
			document.cookie = "su=0;expires="+date.toGMTString();
		}else{
			var date = new Date();
			date.setTime(date.getTime() + 365 * 30 * 24 * 60 * 60 * 1000);
			document.cookie = "zzj_sug_hint=yes;expires="+date.toGMTString();
		}
		$("setter").style.display = "none";
		$("layer").style.display = "none";
		window.location.reload();
	});
</script>

</body>
<script>
	if(!document.cookie.match('(?:^|;)\\s*zzj_sug_hint=([^;]*)')&&!document.cookie.match('(?:^|;)\\s*su=([^;]*)')){
		document.write("<script src='bddict/js/dictsug.js'><"+"/script>");
	}
	window.onunload=function(){};
</script>
</html>
