function SearchHighlight(str,url) { var q = str;//要高亮显示的关键字 var l = document.getElementById("newcontent"); if("" == q) return; words = unescape(q.replace(/\+/g,' ')).split(/\s+/); for (w=0;w$1"); } //alert(document.getElementsByTagName("span").length); } function getCookie(name)//取cookies函数 { var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); if(arr != null) return unescape(arr[2]); return null; } function delCookie(name)//删除cookie { var exp = new Date(); exp.setTime(exp.getTime() - 1); var cval=getCookie(name); if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString(); } //-----------------------------------找字游戏 var counttxt; var yyid; var indextxt=unescape('fxb51'); var h; var arr = unescape(getCookie("purl")); var arr1 = unescape(getCookie("purlall")); delCookie("purl"); delCookie("purlall"); jj1 = arr.split('|'); qq1 = arr1.split(','); function spurl() { yy = location.href; yyl = yy.split('/'); str = yyl[yyl.length-1].split(".")[0]; return str } function spurll() { urlstr = spurl(); for(k=0;k$1"); } if(spdyll(str)==str) { Tagf = document.getElementsByTagName("span"); len = Tagf.length; s = spdy(str); thisurl=spurl(); czurl = spdyl(str); for(i=1;i=0) { document.tjwz.countyyin.value=counttxt; document.tjwz.indexwz.value=idn; document.tjwz.gjz.value=str; document.tjwz.pge.value=str1; win = window.open("","tzyx","width=300,height=250"); if(win.opener==null) { win.opener = window; } if(win) { if(!win.closed) win.focus(); } document.all("tjwz").submit(); } else { alert("你猜错了!"); } } function sphavex() { rr = location.href; rrl = rr.split('='); if(rrl.length>1) { return rrl[rrl.length-1]; } return ''; } //function zz(i) //{ // if(i=="2") // { // alert("你猜对了!!"); // } // else // { // alert("没猜对,继续努力!") // } //} //------------------------------------找字游戏 function onloadthing() { var ishave; ishave=false; if(ishave) { SearchLow('硎'); } } if(sphavex()==indextxt) { if(spurll) { document.onload = onloadthing(); } }