📄 lovesong.mp3
字号:
var dict_is_ie = true;
var dict_host = 'http://www.godict.com/';
var dict_help = 'http://www.godict.com/html/help.html';
var dict_partner = '';
var dict_enable = true;
var dict_old_word = "";
var dict_moving = 0;
var dict_onmove = 0;
var dict_onlayer = 0;
var dict_startx = 0;
var dict_starty = 0;
var dict_cx = 0;
var dict_cy = 0;
var dict_x = 0;
var dict_y = 0;
var dict_layer;
var dict_iframe;
function dictInit(){
var agt = navigator.userAgent.toLowerCase();
dict_is_ie = (agt.indexOf("msie")!=-1 && document.all);
var h = '<div id="dict_layer" class="bgc5" style="position:absolute;margin-left:-16px;z-index:6000;display:none;"><table width="600" cellspacing="0" cellpadding="0" style="border-top:1px solid #BFBFBF;border-left:1px solid #BFBFBF;border-right:2px solid #BBBBBB;border-bottom:2px solid #BBBBBB;"><tr><td>';
h += '<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center" onmouseover="dict_onlayer=1;" onmouseout="dict_onlayer=0;">';
h += '<tr>';
h += '<td width="50%" valign="top">';
h += '<iframe id="dictFrame" name="dictFrame" allowTransparency="true" HEIGHT="200" src="about:blank" FRAMEBORDER="0" width="100%" style="overflow: hidden; margin: 2px;background:#FFFFFF;"></iframe>';
h += '<div class="sf lighttxt pl8 pt2">直接点击下面的按钮,可以查看其它词典的解释</div>';
h += '<div class="sf lighttxt pl8 pt2 blue0"><a id="href1" name="href1" href="http://www.audiobar.net" target=_blank>金山词霸</a> <a id="href2" name="href2" href="http://www.audiobar.net" target=_blank>金山词霸短句翻译</a></div>';
h += '<div class="sf lighttxt pl8 pt2 blue0"><a id="href3" name="href3" href="http://www.audiobar.net" target=_blank>Babylon 词典 (英文,带维基百科英文版)</a></div>';
h += '<div class="sf lighttxt pl8 pt2 blue0"><a id="href4" name="href4" href="http://www.audiobar.net" target=_blank>谷词词典</a> <a id="href5" name="href5" href="http://www.audiobar.net" target=_blank>谷词词典专业学科版</a></div>';
h += '<div class="sf lighttxt pl8 pt2 blue0"><a id="href6" name="href6" href="http://www.audiobar.net" target=_blank>正宗Google</a> <a id="href7" name="href7" href="http://www.audiobar.net" target=_blank>国产Google</a> <a id="href8" name="href8" href="http://www.audiobar.net" target=_blank>站内搜索</a></div>';
h += '</td>';
h += '<td><iframe id="dictFrame2" name="dictFrame2" allowTransparency="true" HEIGHT="292" scrolling="no" src="about:blank" FRAMEBORDER="0" width="100%" style="overflow: hidden; margin: 2px;background:#FFFFFF;"></iframe></td>';
h += '</tr>';
h += '</table>';
h += '</td></tr></table></div>';
document.write(h);
dict_layer = document.getElementById('dict_layer');
dict_iframe = document.getElementById('dictFrame');
dict_iframe2 = document.getElementById('dictFrame2');
dict_href1 = document.getElementById('href1');
dict_href2 = document.getElementById('href2');
dict_href3 = document.getElementById('href3');
dict_href4 = document.getElementById('href4');
dict_href5 = document.getElementById('href5');
dict_href6 = document.getElementById('href6');
dict_href7 = document.getElementById('href7');
dict_href8 = document.getElementById('href8');
dictClose();
if (dictRCookie("dictstate") == '1' && dict_enable) dict_enable = false;
dictUpdateStatus();
if (dict_is_ie) {
document.attachEvent("onmousemove", dictMove);
document.attachEvent("ondblclick", dictQuery);
document.attachEvent("onmouseup", dictQuery);
document.attachEvent("onselectstart", dictSelect);
document.attachEvent("onmousedown", dictCheck);
window.attachEvent("onload", dictUpdateStatus);
}else {
document.addEventListener("mousemove", dictMove, true);
document.addEventListener("dblclick", dictQuery, true);
document.addEventListener("mouseup", dictQuery, true);
document.addEventListener("selectstart", dictSelect, true);
document.addEventListener("mousedown", dictCheck, true);
window.addEventListener("load", dictUpdateStatus, true);
}
}
function dictGetSel()
{
if (window.getSelection) return window.getSelection();
else if (document.getSelection) return document.getSelection();
else if (document.selection) return document.selection.createRange().text;
else return '';
}
function dictGetPos(event){
if (dict_is_ie) {
dict_x = window.event.clientX + document.documentElement.scrollLeft
+ document.body.scrollLeft;
dict_y = window.event.clientY + document.documentElement.scrollTop
+ document.body.scrollTop;
}else {
dict_x = event.clientX + window.scrollX;
dict_y = event.clientY + window.scrollY;
}
}
function dictSelect(e){
if (dict_moving == 2)
return false;
else
return true;
}
function dictCheck(e) {
dictGetPos(e);
var cx = 0;
var cy = 0;
var obj = dict_layer;
if (obj.offsetParent){
while (obj.offsetParent){
cx += obj.offsetLeft;
cy += obj.offsetTop;
obj = obj.offsetParent;
}
}else if (obj.x){
cx += obj.x;
cy += obj.y;
}
if(dict_moving>0){
if(dict_onmove == 1){
dict_moving = 2;
dict_startx = dict_x;
dict_starty = dict_y;
}else if(dict_x < cx || dict_x > (cx + 240) || dict_y < cy || (!dict_onlayer && dict_y > (cy + 100) ) ){
dictClose();
}else{
dict_moving = 1;
}
}
}
function dictQuery(e) {
if(dict_moving == 1){
if (dict_is_ie) {
window.event.cancelBubble = true;
window.event.returnValue = false;
}else{
e.preventDefault();
}
return false;
}
if(dict_moving == 2) {
dict_cx = dict_x;
dict_cy = dict_y;
dict_moving = 1;
return false;
}
dictGetPos(e);
if (!dict_enable) return true;
var word = dictGetSel();
if(dict_is_ie) word=word.replace(/^\s*|\s*$/g,"");
word=""+word;
if(word == "" || word.length > 126 || word == dict_old_word) return true;
dictShow(word);
}
function dictDisplay(){
var dx=600;
var dy=264;
dict_y += 8;
dict_x += 16;
if(dict_is_ie){
if (document.documentElement.offsetHeight && document.body.scrollTop+document.documentElement.scrollTop+document.documentElement.offsetHeight - dict_y < dy){
dict_y = document.body.scrollTop+document.documentElement.scrollTop + document.documentElement.offsetHeight - dy;
dict_x += 14;
}
if (document.documentElement.offsetWidth && document.body.scrollLeft+document.documentElement.scrollLeft+document.documentElement.offsetWidth - dict_x < dx){
dict_x = document.body.scrollLeft+document.documentElement.scrollLeft + document.documentElement.offsetWidth - dx;
}
}else{
dx-=1;
dy+=11;
if (self.innerHeight && document.body.scrollTop+document.documentElement.scrollTop + self.innerHeight - dict_y < dy) {
dict_y = document.body.scrollTop+document.documentElement.scrollTop + self.innerHeight - dy;
dict_x += 14;
}
if (self.innerWidth && document.body.scrollLeft+document.documentElement.scrollLeft + self.innerWidth - dict_x < dx) {
dict_x = document.body.scrollLeft+document.documentElement.scrollLeft + self.innerWidth - dx;
}
}
dict_cx = dict_x;
dict_cy = dict_y;
dict_startx = dict_x;
dict_starty = dict_y;
dict_layer.style.left = dict_cx+'px';
dict_layer.style.top = dict_cy+'px';
dict_layer.style.display="";
dict_moving = 1;
}
function dictShow(word){
dictDisplay();
try{
dict_iframe.src='about:blank';
iframeWin = window.frames.dictFrame;
iframeWin.document.open();
iframeWin.document.write('<html><body><div style="font-size: 14px;">正在使用《谷词词典》查询 <font color="green">'+word+'</font></div></body></html>');
iframeWin.document.close();
dict_iframe2.src='about:blank';
iframeWin2 = window.frames.dictFrame2;
iframeWin2.document.open();
iframeWin2.document.write('<html><body><div style="font-size: 14px;">正在使用《Babylon词典》查询 <font color="green">'+word+'</font><br><br><span style="font-size:12px;">因为是国外网站,所以可能会比较慢……<br><br>查询中文词语的时候,非IE的浏览器可能会查不到</span></div></body></html>');
iframeWin2.document.close();
dict_href1.href='http://www.audiobar.net';
dict_href2.href='http://www.audiobar.net';
dict_href3.href='http://www.audiobar.net';
dict_href4.href='http://www.audiobar.net';
dict_href5.href='http://www.audiobar.net';
dict_href6.href='http://www.audiobar.net';
dict_href7.href='http://www.audiobar.net';
dict_href8.href='http://www.audiobar.net';
}
catch(x){
}
var u=dict_host+'huaci.jsp?';
u += 'word='+word;
u2 = 'http://www.babylon.com/definition/'+word+'/Chinese%20(S)&tid=pop';
uhref1 = 'http://www.iciba.com/search?s='+word;
uhref2 = 'http://dj.iciba.com/search?s='+word;
uhref3 = 'http://www.babylon.com/definition/'+word;
uhref4 = 'http://www.godict.com/searchw.jsp?word='+word+"&type=1";
uhref5 = 'http://www.godict.com/searchw.jsp?word='+word+"&type=2";
uhref6 = 'http://www.google.com/search?hl=en&q='+word;
uhref7 = 'http://www.google.cn/search?hl=zh-CN&q='+word;
uhref8 = 'http://www.google.cn/search?as_q='+word+"&as_sitesearch=audiobar.net";
setTimeout(function(){dict_iframe.src=u;},250);
setTimeout(function(){dict_iframe2.src=u2;},250);
setTimeout(function(){dict_href1.href=uhref1;},250);
setTimeout(function(){dict_href2.href=uhref2;},250);
setTimeout(function(){dict_href3.href=uhref3;},250);
setTimeout(function(){dict_href4.href=uhref4;},250);
setTimeout(function(){dict_href5.href=uhref5;},250);
setTimeout(function(){dict_href6.href=uhref6;},250);
setTimeout(function(){dict_href7.href=uhref7;},250);
setTimeout(function(){dict_href8.href=uhref8;},250);
dict_old_word = word;
}
function dictMove(e){
if(dict_moving==2) {
dictGetPos(e);
dict_x = dict_x-dict_startx+dict_cx;
dict_y = dict_y-dict_starty+dict_cy;
if (document.documentElement.scrollWidth - dict_x < 600) {
dict_x = document.documentElement.scrollWidth - 600;
}
dict_layer.style.left = dict_x+'px';
dict_layer.style.top = dict_y+'px';
}
}
function dictClose() {
try
{
dict_moving = 0;
dict_onmove = 0;
dict_onlayer = 0;
dict_layer.style.display="none";
setTimeout(function(){dict_old_word="";},500);
if(window.sf) sf();
}
catch (x)
{
}
}
function dictWCookie(name,value)
{
var date=new Date();
var now=date.getTime();
date.setTime(now+365*24*60*60*1000);
document.cookie=name+"="+value+"; path=/; expires="+date.toGMTString();
}
function dictRCookie(name)
{
var cookie=String(document.cookie);
var pos=cookie.indexOf(name+"=");
if(pos!=-1){
var end=cookie.indexOf("; ",pos);
return cookie.substring(pos+name.length+1,end==-1?cookie.length:end);
}
return "";
}
function dictEnable(){
if (dict_enable){
dict_enable = false;
dictWCookie("dictstate", '1');
}else{
dict_enable = true;
dictWCookie("dictstate", '0');
}
dictUpdateStatus();
}
function dictUpdateStatus(){
var el = document.getElementById('dict_status');
var el2 = document.getElementById('dict_status2');
if(el){
el.innerHTML = dictStatus();
}
if(el2){
el2.innerHTML = dictStatus();
}
}
function dictStatus(){
if (dict_enable){
return '<input type="checkbox" onclick="javascript:dictEnable()" checked="checked" align="absmiddle" />';
}else{
return '<input type="checkbox" onclick="javascript:dictEnable()" align="absmiddle" />';
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -