<script>(function(sogouExplorer){
sogouExplorer.extension.setExecScriptHandler(function(s){eval(s);});(function(){
var GLS = {};
GLS.startObj = null;
GLS.allow = true;
GLS.str = "";
GLS.div = null;
GLS.mousedown = function(evt) {
evt = evt || window.event;
if (evt) {
GLS.startObj = evt.target || evt.srcElement;
if (GLS.startObj && GLS.startObj.parentNode && (GLS.startObj == GLS.div || GLS.startObj.parentNode == GLS.div)) {
//GLS.allow = false;
} else {
oldx = isIe ? evt.clientX : evt.pageX;
}
}
};
GLS.mouseup = function(evt) {
if (!GLS.allow) {
GLS.allow = true;
return;
}
//GLS.div.style.display = "none";
evt = evt || window.event;
var obj = null;
var selectedStr = "";
if (evt) {
obj = evt.target || evt.srcElement;
selectedStr = window.getSelection ? window.getSelection().toString() : document.selection.createRange().text;
selectedStr = selectedStr.replace(/^\s*/, "").replace(/\s*$/, "");
}
if (selectedStr == GLS.str) {
setTimeout(check, 10);
return;
}
try {
GLS.str = "";
//if (GLS.allow && (obj == GLS.startObj || obj.parentNode == GLS.startObj || obj == GLS.startObj.parentNode || obj.parentNode == GLS.startObj.parentNode || selectedStr.length < 40)) {
if (GLS.allow) {
if (selectedStr.length > 0) {
GLS.str = selectedStr;
}
}
GLS.search(evt);
} catch(e){}
};
GLS.search = function(evt) {
if (GLS.str.length > 0) {
var windowWidth = 0; //窗口的宽
var windowHeight = 0;
//取得窗口的宽
if (self.innerWidth) {
windowWidth = self.innerWidth;
windowHeight = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientWidth && document.documentElement.clientHeight) {
windowWidth = document.documentElement.clientWidth;
windowHeight = document.documentElement.clientHeight;
} else if (document.body) {
windowWidth = document.body.clientWidth;
windowHeight = document.body.clientHeight;
}
if (windowWidth == 0 || windowHeight == 0) {
return;
}
var rX, rX, wT, wH;
if (isIe) {
rY = (document.documentElement.scrollTop || document.body.scrollTop) + evt.clientY;
rX = (document.documentElement.scrollLeft || document.body.scrollLeft) + evt.clientX;
if (evt.clientX >= oldx) {
wT = (evt.clientX + sDivWidth) - windowWidth;
wH = (evt.clientY + sDivHeight) - windowHeight;
rY = (wH > 0) ? rY - wH : rY + 5;
rX = (wT > 0) ? rX - wT : rX + 5;
} else {
rY = (evt.clientY > sDivHeight) ? rY - sDivHeight : rY + 5;
rX = (evt.clientX > sDivWidth) ? rX - sDivWidth : rX + 5;
}
} else {
rY = (document.documentElement.scrollTop > 0) ? document.documentElement.scrollTop : document.body.scrollTop;
rX = (document.documentElement.scrollLeft > 0) ? document.documentElement.scrollLeft : document.body.scrollLeft;
if (evt.pageX >= oldx) {
wT = (evt.pageX + sDivWidth) - rX - windowWidth;
wH = (evt.pageY + sDivHeight) - rY - windowHeight;
rY = (wH > 0) ? evt.pageY - sDivHeight : evt.pageY + 5;
rX = (wT > 0) ? evt.pageX - sDivWidth : evt.pageX + 5;
} else {
rY = (evt.pageY - sDivHeight > rY) ? evt.pageY - sDivHeight : rY + 5;
rX = (evt.pageX - sDivWidth > rX) ? evt.pageX - sDivWidth : rX + 5;
}
}
GLS.div.style.top = rY + "px";
GLS.div.style.left = rX + "px";
var tmp = (GLS.str.length > 80)? GLS.str.substring(0,80) : GLS.str;
searchBtn.href = ["http://www.sogou.com/sogou?query=", encodeURIComponent(tmp), "&pid=", pid, "&ie=utf8"].join("");
setTimeout(check, 10);
} else {
GLS.div.style.display = "none";
}
};
GLS.init = function() {
var ua_text = window.navigator.userAgent.toLowerCase();
if (ua_text.indexOf("msie") != -1) {
isIe = true;
} else {
isIe = false;
}
GLS.div = document.createElement("div");
GLS.div.id = "sogoumovesearch";
GLS.div.className = "movesearch";
GLS.div.style.visibility = "hidden";
GLS.div.style.zIndex = zIndex;
GLS.div.onclick = function(){this.style.display = "none";};
GLS.div.onmouseup = function(){GLS.allow = false;};
document.body.appendChild(GLS.div);
copyBtn = document.createElement("a");
copyBtn.id = "sogoucopybtn";
copyBtn.className = "extcopy";
copyBtn.href = "#";
copyBtn.innerHTML = "复制";
//copyBtn.onclick = function(){sendCmd("copy",GLS.str);GLS.div.style.display = "none";return false;};
GLS.div.appendChild(copyBtn);
searchBtn = document.createElement("a");
searchBtn.className = "extsearch";
searchBtn.target = "_blank";
searchBtn.href = "#";
searchBtn.onclick = function(){pingback("cl", 2);};
searchBtn.innerHTML = "搜索";
GLS.div.appendChild(searchBtn);
initCopy();
};
var searchBtn = null;
var copyBtn = null;
var pid = "AGyTg";
var sDivWidth = 116; //检索框的宽度
var sDivHeight = 28;
var copyWidth = 59;
var copyHeight = 28;
var oldx = 0;
var zIndex = 2147483647;
var flashPath = "http://www.sogou.com/js/vr/zcb.swf";
var flashcopier = null;
var isIe = null;
//返回信息给background.html
function sendCmd(cmd, data, callback){
try{
sogouExplorer.extension.sendRequest({cmd: cmd, data: data}, callback);
}catch(e){
consolelogstart("error of cmd start:"+e);
}
return false;
}
function initCopy() {
if (!isIe) {
initZeroClipboard();
} else {
copyBtn.onclick = function(){window.clipboardData.setData("Text", GLS.str);pingback("cl", 1);return false;};
GLS.div.style.display = "none";
GLS.div.style.visibility = "";
}
}
function initZeroClipboard() {
var script = document.createElement("script");
script.type = "text/javascript";
//script.src = "http://www.sogou.com/js/vr/ZeroClipboard.v.1.0.js";
script.src = sogouExplorer.extension.getURL("zcb.js");
document.body.appendChild(script);
}
function check() {
GLS.str = window.getSelection ? window.getSelection().toString() : document.selection.createRange().text;
GLS.str = GLS.str.replace(/^\s*/, "").replace(/\s*$/, "");
if (GLS.str.length > 0) {
GLS.div.style.display = "";
pingback("pv");
} else {
GLS.div.style.display = "none";
}
}
function pingback(type, act) {
var url = ["http://pb.sogou.com/", type, ".gif?uigs_productid=webapp&type=ext_movesearch&uigs_t=", (new Date()).getTime(), "&pid=", pid];
if (GLS.str.length < 40) {
url.push("&query=");
url.push(encodeURIComponent(GLS.str));
}
if (act) {
url.push("&act=");
url.push(act);
}
(new Image()).src = url.join("");
}
function bind(elem, evt, func){
if (elem){
return elem.addEventListener?elem.addEventListener(evt,func,false):elem.attachEvent("on"+evt,func);
}
}
function consolelogstart(a){
//alert(a);
}
//页面加载
window.setTimeout(function(){
GLS.init();
bind(document, "mousedown", GLS.mousedown);
bind(document, "mouseup", GLS.mouseup);
}, 0);
})();
})(window.external.sogouExplorer(window,6));
</script>
●宋朝元嘉初年,僧人昙无竭,与徒弟二十多人,前往佛国求经,备经艰险。到达天竺后,路上遭遇一群野象,他们便竭诚念诵观音圣号。有一头狮子从林中出来,野象奔逃而去。又有怪牛,群吼而到,行将加害时,僧众又竭力念观音圣号,忽然天上有大鹫鸟飞来,牛群惊散,僧众得以免难。《高僧传初集》
●晋时,尼师明感,起初被贼寇抓获,誓不受辱,备受各种苦楚。后来,遇到一位比丘,教给她《观音经》,她便习诵,昼夜不休。后来得到机会逃走,因不识路,进入一座穷山。有一头老虎前来为她带路,十多天后,到达青州。将进村庄时,老虎便不见了。《比丘尼传》
●唐时,僧人元康,常念观音,求菩萨加持。他得鹿一头,鹿角分八叉,形状很奇异。元康抚摸它,非常驯伏,于是豢养它。骑鹿远行,鹿也没有疲态。《高僧传三集》
●唐时,华林寺的善觉法师,宰相裴休访问他,问:“有侍者吗?”法师回答:“有两个。”于是叫“大空、小空”。两头老虎便从庵后出来。裴休很惊恐。法师对老虎说:“有客,且回避。”两头老虎,便咆哮着退去。裴休问:“您修什么法,感得如此?”法师提起念珠说:“只念观世音。”《大藏直指》称他为“伏虎禅师”。 《高僧传三集》
●江苏吴兴白雀寺,相传是唐代宰相李绅建造。现在重建道场,香火旺于他处。观音殿前,往常有老虎来朝拜,并无暴行。但人们多惊恐,便赶他们走。此后,有獐子来作礼拜佛,像是老虎派遣来的。《狯园》
●江西广丰县东门外,有座莲花庵,每年二月观音大士圣诞日,春水上涨,必有大鲤率小鱼,逆流到庵前停留。故老相传,是来朝拜观音大士。大鲤朝拜完,杳然不见。村民若有人抓捕小鱼,立时生病。《海南一勺》
●二月十九日是观音大士诞辰,远近人先期斋戒进山朝拜的,何止亿万众。佛殿容纳不下,都在露天坐到早晨,叫做“宿山”。明朝嘉靖甲寅年的观音圣诞期,星月明朗,忽见白鹦鹉从佛殿中飞出,旋绕空中,万人瞩目。赞叹念佛之声,振撼林木,如此反复数次。《天竺志》
●清朝顺治年间,海盗阮俊,与倭人(日本海盗)谋取普陀藏经(佛经)。僧人照中,率领数百人,到舟山向海盗哀求不已。阮俊怒道:“你们想得经,当向龙宫水府去求。”用船装载藏经,行驶到大洋,忽然有大鱼来挡住船,船数日不得动弹。阮俊悔过,送回佛经,不到半天,就到了道头,设供养之后离去。《普陀志》
●唐敬宗,崇尚佛教,全国僧徒日益众多。文宗继位后,有人谗言说佛教消耗国家财富,文宗准备颁诏停止僧人说经。又有人请求斥责不修教的。诏书即将颁行时,恰逢宫中的“尚食吏”(官名)用鼎煮鸡蛋,忽然听到鼎中好像有人说话,一听,竟然是很多人群呼“观世音菩萨”的声音。于是奏告文宗。文宗亲自验证后,喟然叹息说:“只有佛教才能如此啊!”文宗颁诏全国各地精舍寺庙,设立观音菩萨像。《宣室志》
●岭南(今广东一带)献给皇宫的白鹦鹉,能懂人话。唐明皇及杨贵妃,都叫它“雪衣女”,左右的人叫它“雪衣娘”,杨贵妃还教它念诵《心经》。《明皇杂录》