记单词

来源:互联网 发布:centos 7.1 iptables 编辑:程序博客网 时间:2024/04/30 09:00
 

<html>
<head>
<script type="text/javascript">

function search() {
var wordInput = document.getElementById("word");
var word = wordInput.value;
var winfo = document.getElementById("winfo");
var mdic = document.getElementById("mdic");
var dict = document.getElementById("dict");
var google = document.getElementById("google");
winfo.src = "http://wordinfo.info/results?searchString=" + word;
mdic.src = "http://mnemonicdictionary.com/?word=" + word + "&event=search";
dict.src = "http://dict.cn/" + word;
google.src = "http://www.google.com/search?tbm=isch&hl=en&source=hp&q="+word+"&gbv=2&oq=test&aq=f&aqi=g10&aql=&gs_sm=3&gs_upl=6500l6781l0l7359l4l4l0l0l0l0l235l750l0.2.2l4l0";
//setTimeout("setWindow()", 2000);
return false;
}

function setWindow() {
var wordInput = document.getElementById("word");
wordInput.focus();
wordInput.select();
top.scrollTo(0, 0);
}

function init() {
setWindow();
}

 

function show(obj) {
if (!obj) {
    alert("object is " + obj);
    return;
}
var str = "";
for (a in obj) {
str += " " + a;
}
alert(str);
}

</script>
</head>
<body onload="init();">
<table width="100%">

<tr><td colspan="2" align="center">
<!--input word-->
<div style="height:50">
<form action="#">
<input type="text" id="word" name="word" style="width:200px;height:40px;font-size:30px;"/>
<input type="submit" value="search" onclick="return search();" style="width:200px;height:40px;font-size:25px;"/>
</form>
</div>
</td></tr>

<tr><td width="50%">
<!--word info-->
<div>
<iframe id="dict" width="100%" height="800" src="" onload="setWindow()">
</iframe>
</div>
</td>

<td width="50%">
<!--mnemonic dictionary-->
<div>
<iframe id="winfo" width="100%" height="800" src="" onload="setWindow()">
</iframe>


</div>
</td></tr>

<tr>
<td width="50%">
<!--dict-->
<div>
<iframe id="mdic" width="100%" height="800" src="" onload="setWindow()">
</iframe>
</div>
</td>

<td width="50%">
<!--google images-->
<div>
<iframe id="google" width="100%" style="overflow-y:visible;" height="800" src="" onload="setWindow()">
</iframe>
</div>
</td>

</tr>

</table>

</body>
</html>