aaaabbbb 发表于 2007-9-11 16:28

让网站具有德汉翻译功能

将下面的代码保存成HTML文件,打开即可!


<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">

<script language="javascript" type="text/javascript" src="http://www.learningwithme.com/dict/ajax.js"></script>
<script language="javascript" type="text/javascript" src="http://www.learningwithme.com/dict/lookup.js"></script>
<link rel='stylesheet' type='text/css' href='http://www.learningwithme.com/dict/windownotie.css' />
<link rel='stylesheet' type='text/css' href='http://www.learningwithme.com/dict/window.css' />

</head>

<body bgcolor="white" onload="set_focus()">

<div id='StarDict.mainwin' class='eyeapp' style='position:absolute; overflow:hidden; width:400px; height:350px; left:150px; top:70px; text-align: left; z-index: 100;overflow:auto;'>

<div id='StarDict.mainwinDBar' style='position: relative; cursor: move; margin:0px; padding:0px; color:#ccc; height: 21px; text-align: left; '>
<div class='bsupesq'></div>
<div class='bsupdre'></div>
<div id='StarDict.mainwinDTop' class='bsupcen'>
<div align='right'>
        <img border='0' title='Close window' alt='Close window' src='http://www.learningwithme.com/dict/close.png' style='cursor:pointer;'/>
</div>
</div>
<div class='captitol'>跟我学德汉字典</div>
</div>

<div class='txt' id='StarDict.mainwintxt'>
        <div class='actionbar' style='text-align: center;'>
                <div class='barr'></div>
                <div class='barl'></div>
                <span style='float:left; padding-left:5px; padding-top:5px;'>
                        <input type="button" onclick="clear_entry()" value="清除" />
                        <input type="text" autocomplete=off size=35 id="entry" onkeyup="on_entry_changed(event)" />
                                <img border='0' alt='Main Menu' title='主菜单' src='http://www.learningwithme.com/dict/home.png'>
                        </span>
                </div>
                <div class='interior'>
                        <table width="100%">
                        <tr><td width="100%" valign="top"><span id="definition" style='overflow-x:auto; overflow-y:auto; height:250px;width:380px'></span></td>
                        </tr>
                        </table>
                </div>
        </div>
        <div class='peu' id='StarDict.mainwinDDow' ><div class='binfesq'></div><div class='binfdre'></div>
<div class='binfcen'><div id='StarDict.mainwinRBtn' align='right' class='botobaix' >
</div></div></div></div>
</body></html>
页: [1]
查看完整版本: 让网站具有德汉翻译功能