Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. !function(a){
  2.   if(a.fn.highlight=function(b,
  3.   c,
  4.   d,
  5.   e){
  6.     returnthis.each(function(){
  7.       d=d||"mark",
  8.       e=e||"hilite";varg,
  9.       h,
  10.       f=this.firstChild,
  11.       i=[
  12.        
  13.       ],
  14.       j=[
  15.         "SCRIPT",
  16.         "STYLE",
  17.         "INPUT",
  18.         "SELECT",
  19.         "BUTTON",
  20.         "OBJECT",
  21.         "APPLET",
  22.         "TEXTAREA",
  23.         "PRE",
  24.         "CODE",
  25.         "EMBED",
  26.         "IFRAME"
  27.       ];if(b&&f&&-1==a.inArray(this.nodeName,
  28.       j)){
  29.         vark=newRegExp(b.replace(/([
  30.           -.*+?^${
  31.            
  32.           }()|[
  33.             \
  34.           ]\/\\
  35.         ])/g,
  36.         "\\$1"),
  37.         c?"ig": "g");do3===f.nodeType&&(g=f.nodeValue,
  38.         h=g.replace(k,
  39.         function(a){
  40.           return"<"+d+' class="'+e+'">'+a+"</"+d+">"
  41.         }),
  42.         h!==g&&(a(f).before(h),
  43.         i.push(f)));while(f=f.nextSibling)
  44.       }i.length&&a(i).remove()
  45.     })
  46.   },
  47.   "undefined"!=typeofhlst_query){
  48.     if(0==hlst_query.length){
  49.       varb=document.referrer.split("?");if("undefined"!=typeofb[
  50.         1
  51.       ]){
  52.         varc;c=document.referrer.indexOf(document.domain)<9?"s": document.referrer.indexOf("yahoo.com")>-1?"p": document.referrer.indexOf("goodsearch.com")>-1?"keywords": document.referrer.indexOf("mywebsearch.com")>-1?"searchfor": document.referrer.indexOf("baidu.")>-1?"wd": "q";for(vard=b[
  53.           1
  54.         ].split("&"),
  55.         e=0;e<d.length;e++){
  56.           varf=d[
  57.             e
  58.           ].indexOf("=");if(f>0&&c==d[
  59.             e
  60.           ].substring(0,
  61.           f)){
  62.             qstr=decodeURIComponent((d[
  63.               e
  64.             ].substring(f+1)+"").replace(/\+/g,
  65.             "%20")),
  66.             qarr=qstr.match(/([
  67.               ^\s"]+)|"([
  68.                 ^"]*)"/g)||[
  69.                  
  70.                 ];for(varg=0;g<qarr.length;g++)hlst_query[
  71.                   g
  72.                 ]=qarr[
  73.                   g
  74.                 ].replace(/"/g,"");break}}}}var h,e,i,j=jQuery.support.opacity?"mark":"span";if(0!=hlst_query.length)for(i in hlst_areas)if(h=a(hlst_areas[i]),0!=h.length){for(var k=0;k<h.length;k++)for(e in hlst_query)a(hlst_areas[i]+"*").highlight(hlst_query[e],!0,j,"hiliteterm-"+e);break}}"function"==typeof Cufon&&Cufon.refresh()}(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement