PageSourceSearch

https://www.sudu.cn/js/contact_new.js

js sudu.cn collected 2026-09-24 10:01:18 UTC 15,257 bytes, 521 lines download raw bytes

1jq(function(){
2	jq('#chat_f1').hide();
3	jq('#chat_f2').show();
4	
5	jq('.chat_f1_expr').animate({height:'276px'}, 1000 );
6	jq('#close').click(function(){
7		jq('#chat_f1').hide();
8		jq('#chat_f2').show();
9	})
10	jq('#chat_f2').click(function(){
11		jq(this).hide();
12		jq('#chat_f1').show();
13	})
14	jq('.name').hover(function(){
15		jq(this).children('.detail').show();
16		jq(this).children('.arrow').css('color','#679B08');
17		},function(){
18		jq(this).children('.detail').hide();	
19		jq(this).children('.arrow').css('color','#fff');
20	})
21})
22
23function opennewwin(urlstr,w,h){
24	 var t = (screen.height-h)/2;
25	 var l = (screen.width-w)/2;
26//	 window.open(urlstr,"","width="+w+",height="+h+",top="+t+",left="+l);
27	 window.open(urlstr,"");
28}
29
30/*
31var online= new Array();
32var urlroot = "/images_demo/kf/";
33var tOut = -1;
34var drag = false;
35var g_safeNode = null;
36lastScrollY = 0;
37
38window.setTimeout("kf_sleepShow()",5000);
39window.setTimeout("kf_moveWithScroll()",1);
40
41function kf_getSafeHTML(s)
42{
43	var html = "";
44	var safeNode = g_safeNode;
45	
46	if(!safeNode)
47	{
48		safeNode = document.createElement("TEXTAREA");
49	}
50
51	if(safeNode)
52	{
53		safeNode.innerText = s;
54		html = safeNode.innerHTML;
55		safeNode.innerText = "";
56		
57		g_safeNode = safeNode;
58	}
59	
60	return html;
61}
62
63function kf_moveWithScroll() 
64{ 
65	 if(typeof window.pageYOffset != 'undefined') { 
66        nowY = window.pageYOffset; 
67     } 
68     else if(typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { 
69        nowY = document.documentElement.scrollTop; 
70     } 
71     else if(typeof document.body != 'undefined') { 
72        nowY = document.body.scrollTop; 
73     }  
74
75		percent = .1*(nowY - lastScrollY);
76		if(percent > 0) 
77		{
78			percent=Math.ceil(percent);
79		} 
80		else
81		{
82			percent=Math.floor(percent);
83		}
84
85	 if(document.getElementById("kfpopupDiv"))
86	 {
87	 	document.getElementById("kfpopupDiv").style.top = parseInt(document.getElementById("kfpopupDiv").style.top) + percent+"px";
88	 }
89	 lastScrollY = lastScrollY + percent;
90	 tOut = window.setTimeout("kf_moveWithScroll()",1);
91}
92
93function kf_hide() 
94{
95	if(tOut!=-1)
96	{
97		clearTimeout(tOut);   
98		tOut=-1;
99	}
100}
101
102function kf_hidekfpopup()
103{
104	if(tOut!=-1)
105	{
106		clearTimeout(tOut);   
107		tOut=-1;
108	}
109	document.getElementById("kfpopupDiv").style.visibility = "hidden";
110	tOut=window.setTimeout("kf_moveWithScroll()",1);
111}
112
113function kf_getPopupDivHtml()
114{
115	
116	var temp = '<div style="cursor:pointer;height:23px;width:100%;position:relative; line-height:23px" id="acc_title">\
117			<div style="float:left;width:8px; background:url(http://www11.53kf.com/img/new06/fu-t-l.gif) no-repeat; height:23px;"></div>\
118			<div style="float:left;width:384px;height:23px; background:url(http://www11.53kf.com/img/new06/fu-t-c.gif) repeat-x ;line-height:23px;color:#ffffff;text-align:left;">华夏名网在线客服系统热忱为您服务</div>\
119			<div style="float:left;width:8px; background:url(http://www11.53kf.com/img/new06/fu-t-r.gif) no-repeat; height:23px;"></div>\
120		</div>\
121		<div style="clear:both;width:400px;background:url(http://www11.53kf.com/img/ivt/53kf01bg.gif);height:auto; overflow:hidden;">\
122			<div style="float:left;height:100%;width:100px;background: url(http://www11.53kf.com/img/ivt/53kf01bg.gif) left;text-align:center;"><img src="http://www11.53kf.cm/img/kflogo/ivt_cn.gif" style="DISPLAY: inline;margin-top:10px;cursor:pointer;"></div>\
123			<div style="float:right;height:auto;*height:auto;*height:auto !important;width:300px;*width:298px;* width:295px !important; background:url(http://www11.53kf.com/img/ivt/53kf01bg.gif) right; text-align:left;">\
124				<div style="clear:both;width:95%;padding-top:10px; text-align:left;line-height:17px;font-family:tahoma;font-size:12px;color:#000000; height:auto; overflow:hidden;">		欢迎您!来自四川省成都市[电信]的朋友 <br><span id="hz6d_acc_content">购腾讯企业邮局送iPad4/iPhone5s等豪礼。。。</span></div>    \
125				<div style="clear:both;width:95%;margin-top:5px;text-align:right;"><button style="DISPLAY: inline; cursor:pointer;height:24px;width:76px;border:0px;background:none;" onclick=";onliner_zdfq=2;window.open(&quot;talk_openurl&quot;,&quot;_blank&quot;,&quot;
125height=473,width=703,top=200,left=200,status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=no,location=no,titlebar=no&quot;);hidden_ivt();" id="hz6d_53kf_invite_acc"><img src="http://www11.53kf.com/img/new06/fu-button1_cn.gif" style="DISPLAY: inline;"></button>&nbsp;&nbsp;<button style="DISPLAY: inline;cursor:pointer;height:24px;width:76px;border:0px;background:none;" onclick="kf_hidekfpopup();return false;"><img id="hz6d_53kf_invite_hid" src="http://www11.53kf.com/img/new06/fu-button2_cn.gif" style="DISPLAY: inline;"></button></div>\
126			</div>\
127		</div>\
128		<div style="height:8px;width:100%;clear:both; line-height:8px; float:left;">  \
129			<div style="height:8px;width:8px;float:left; background:url(http://www11.53kf.com/img/new06/fu-b-l.gif) no-repeat;line-height:8px;"></div>    \
130			<div style="height:8px;width:384px;float:left; background:url(http://www11.53kf.com/img/new06/fu-b-c.gif) repeat-x;line-height:8px;"></div>    \
131			<div style="height:8px;width:8px;float:right; background:url(http://www11.53kf.com/img/new06/fu-b-r.gif) no-repeat;line-height:8px;"></div>\
132		</div>';
133
134    return temp;
135}
136
137function kf_processWelcomeword(word)
138{
139	word = word.substr(0,57+10);
140	var result = '';
141	var count = 0;	
142	var temp = word.indexOf('<brT>');
143	
144  while(count<57 && temp!=-1)
145  {
146
147  	if(temp<=19) 
148  	{
149  		count += 19;
150  		if(count<=57)
151  		{
152  		   result += word.substr(0,temp+5);
153  	  }
154  	  else
155  	  {
156  	  	 result += word.substr(0,57-count>word.length?word.length:57-count);
157  	  }
158  	}
159  	else if(temp<=38)
160  	{
161  		count += 38;
162  		if(count<=57)
163  		{
164  		   result += word.substr(0,temp+5);
165  	  }
166  	  else
167  	  {
168  	  	 result += word.substr(0,57-count>word.length?word.length:57-count);
169  	  }
170  	}
171  	else if(temp<=57)
172  	{
173  		count += 57;
174  		if(count<=57)
175  		{
176  		   result += word.substr(0,temp+5);
177  	  }
178  	  else
179  	  {
180  	  	 result += word.substr(0,57-count>word.length?word.length:57-count);
181  	  }
182  	}
183  	
184  	word = word.substr(temp+5); 
185  	temp = word.indexOf('<brT>');
186  }
187  
188  if(count<57)
189  {
190      result += word.substr(0,57-count>word.length?word.length:57-count);
191  }
192  
193  return result;
194}
195
196function kf_setCookie(name, value, exp, path, domain)
197{
198	var nv = name + "=" + escape(value) + ";";
199
200	var d = null;
201	if(typeof(exp) == "object")
202	{
203		d = exp;
204	}
205	else if(typeof(exp) == "number")
206	{
207		d = new Date();
208		d = new Date(d.getFullYear(), d.getMonth(), d.getDate(), d.getHours(), d.getMinutes() + exp, d.getSeconds(), d.getMilliseconds());
209	}
210	
211	if(d)
212	{
213		nv += "expires=" + d.toGMTString() + ";";
214	}
215	
216	if(!path)
217	{
218		nv += "path=/;";
219	}
220	else if(typeof(path) == "string" && path != "")
221	{
222		nv += "path=" + path + ";";
223	}
224
225	if(!domain && typeof(VS_COOKIEDM) != "undefined")
226	{
227		domain = VS_COOKIEDM;
228	}
229	
230	if(typeof(domain) == "string" && domain != "")
231	{
232		nv += "domain=" + domain + ";";
233	}
234
235	document.cookie = nv;
236}
237
238function kf_getCookie(name)
239{
240	var value = "";
241	var cookies = document.cookie.split("; ");
242	var nv;
243	var i;
244
245	for(i = 0; i < cookies.length; i++)
246	{
247		nv = cookies[i].split("=");
248
249		if(nv && nv.length >= 2 && name == kf_rTrim(kf_lTrim(nv[0])))
250		{
251			value = unescape(nv[1]);
252		}
253	}
254
255	return value;
256} 
257
258function kf_sleepShow()   
259{   
260	var position = 314;
261	popupDivHtml = '<div id="kfpopupDiv" onmousedown="MyMove.Move(\'kfpopupDiv\',event,1);"  style="display: block; overflow: hidden; height: auto; width: 400px; z-index: 10088; font-size: 12px; position: absolute; top: 300px; left: 300px;">';
262    popupDivHtml += kf_getPopupDivHtml();
263    popupDivHtml += '</div>';
264    document.body.insertAdjacentHTML("beforeEnd",popupDivHtml);
265} 
266
267function kf_dealErrors() 
268{
269	kf_hide();
270	return true;
271}
272
273function kf_lTrim(str)
274{
275  while (str.charAt(0) == " ")
276  {
277    str = str.slice(1);
278  }
279  return str;
280}
281
282function kf_rTrim(str)
283{
284  var iLength = str.length;
285  while (str.charAt(iLength - 1) == " ")
286  {
287    str = str.slice(0, iLength - 1);
288	iLength--;
289  }
290  return str;
291}
292
293window.onerror = kf_dealErrors;
294var MyMove = new Tong_MoveDiv();   
295
296function Tong_MoveDiv()
297{ 
298 	  this.Move=function(Id,Evt,T) 
299 	  {    
300 	  	if(Id == "") 
301		{
302			return;
303		} 
304 	  	var o = document.getElementById(Id);    
305 	  	if(!o) 
306		{
307			return;
308		}    
309 	    evt = Evt ? Evt : window.event;    
310 	    o.style.position = "absolute";    
311 	    o.style.zIndex = 200;    
312 	    var obj = evt.srcElement ? evt.srcElement : evt.target;   
313 	    var w = o.offsetWidth;      
314 	    var h = o.offsetHeight;      
315 	    var l = o.offsetLeft;      
316 	    var t = o.offsetTop;  
317 	    var div = document.createElement("DIV");  
318 	    document.body.appendChild(div);   
319 	    div.style.cssText = "filter:alpha(Opacity=10,style=0);opacity:0.2;width:"+w+"px;height:"+h+"px;top:"+t+"px;left:"+l+"px;position:absolute;background:#000";      
320 	    div.setAttribute("id", Id +"temp");    
321 	    this.Move_OnlyMove(Id,evt,T); 
322 	}  
323 	
324 	this.Move_OnlyMove = function(Id,Evt,T) 
325 	{    
326 		  var o = document.getElementById(Id+"temp");    
327 		  if(!o)
328		  {
329			return;
330		  }   
331 		  evt = Evt?Evt:window.event; 
332 		  var relLeft = evt.clientX - o.offsetLeft;
333 		  var relTop = evt.clientY - o.offsetTop;    
334 		  if(!window.captureEvents)    
335 		  {      
336 		  	 o.setCapture();           
337 		  }   
338 		  else   
339 		  {     
340 		  	 window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);      
341 		  }       
342 		  			  
343	      document.onmousemove = function(e)
344	      {
345	            if(!o)
346	            {
347	                return;
348	            }
349	            e = e ? e : window.event;
350	
351	        	var bh = Math.max(document.body.scrollHeight,document.body.clientHeight,document.body.offsetHeight,
352	        						document.documentElement.scrollHeight,document.documentElement.clientHeight,document.documentElement.offsetHeight);
353	        	var bw = Math.max(document.body.scrollWidth,document.body.clientWidth,document.body.offsetWidth,
354	        						document.documentElement.scrollWidth,document.documentElement.clientWidth,document.documentElement.offsetWidth);
355	        	var sbw = 0;
356	        	if(document.body.scrollWidth < bw)
357	        		sbw = document.body.scrollWidth;
358	        	if(document.body.clientWidth < bw && sbw < document.body.clientWidth)
359	        		sbw = document.body.clientWidth;
360	        	if(document.body.offsetWidth < bw && sbw < document.body.offsetWidth)
361	        		sbw = document.body.offsetWidth;
362	        	if(document.documentElement.scrollWidth < bw && sbw < document.documentElement.scrollWidth)
363	        		sbw = document.documentElement.scrollWidth;
364	        	if(document.documentElement.clientWidth < bw && sbw < document.documentElement.clientWidth)
365	        		sbw = document.documentElement.clientWidth;
366	        	if(document.documentElement.offsetWidth < bw && sbw < document.documentElement.offsetWidth)
367	        		sbw = document.documentElement.offsetWidth;
368	             
369	            if(e.clientX - relLeft <= 0)
370	            {
371	                o.style.left = 0 +"px";
372	            }
373	            else if(e.clientX - relLeft >= bw - o.offsetWidth - 2)
374	            {
375	                o.style.left = (sbw - o.offsetWidth - 2) +"px";
376	            }
377	            else
378	            {
379	                o.style.left = e.clientX - relLeft +"px";
380	            }
381	            if(e.clientY - relTop <= 1)
382	            {
383	                o.style.top = 1 +"px";
384	            }
385	            else if(e.clientY - relTop >= bh - o.offsetHeight - 30)
386	            {
387	                o.style.top = (bh - o.offsetHeight) +"px";
388	            }
389	            else
390	            {
391	                o.style.top = e.clientY - relTop +"px";
392	            }
393	      }
394 		   
395 		  document.onmouseup = function()      
396 		  {       
397 		   	   if(!o) return;       
398 		   	   	
399 		   	   if(!window.captureEvents) 
400			   {
401			   	  o.releaseCapture();  
402			   }         		   	   	      
403 		   	   else  
404			   {
405			   	  window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP); 
406			   }     
407 		   	   	        
408 		   	   var o1 = document.getElementById(Id);       
409 		   	   if(!o1) 
410			   {
411			      return; 
412			   }        		   	   	
413 		   	   var l0 = o.offsetLeft;       
414 		   	   var t0 = o.offsetTop;       
415 		   	   var l = o1.offsetLeft;       
416 		   	   var t = o1.offsetTop;   
417 		   	   
418 		   	   //alert(l0 + " " +  t0 +" "+ l +" "+t);     
419 		   	   
420 		   	   MyMove.Move_e(Id, l0 , t0, l, t,T);       
421 		   	   document.body.removeChild(o);       
422 		   	   o = null;      
423 		}  
424 	}  
425 	
426 	
427 	this.Move_e = function(Id, l0 , t0, l, t,T)     
428 	{      
429 		    if(typeof(window["ct"+ Id]) != "undefined") 
430			{
431				  clearTimeout(window["ct"+ Id]);   
432			}
433 		    
434 		    var o = document.getElementById(Id);      
435 		    if(!o) return;      
436 		    var sl = st = 8;      
437 		    var s_l = Math.abs(l0 - l);      
438 		    var s_t = Math.abs(t0 - t);      
439 		    if(s_l - s_t > 0)  
440			{
441				if(s_t) 
442				{
443					sl = Math.round(s_l / s_t) > 8 ? 8 : Math.round(s_l / s_t) * 6; 
444				}       
445 		    		      
446 		        else
447				{
448					sl = 0; 
449				}            		      
450			}        		    	   
451 		    else
452			{
453				if(s_l)
454				{
455					st = Math.round(s_t / s_l) > 8 ? 8 : Math.round(s_t / s_l) * 6;   
456				}          		    		    
457 		        else  
458			    {
459			  	    st = 0;
460			    }       		      	  
461			}       
462 		    	       		      	
463 		    if(l0 - l < 0) 
464			{
465				sl *= -1; 
466			}  		    	     
467 		    if(t0 - t < 0) 
468			{
469				st *= -1; 
470			}   		    	     
471 		    if(Math.abs(l + sl - l0) < 52 && sl) 
472			{
473 		    	sl = sl > 0 ? 2 : -2; 					
474			}    
475 		    if(Math.abs(t + st - t0) < 52 && st) 
476			{
477	        	st = st > 0 ? 2 : -2;  					
478			}      
479 		    if(Math.abs(l + sl - l0) < 16 && sl) 
480			{
481 		    	sl = sl > 0 ? 1 : -1;  					
482			}   
483 		    if(Math.abs(t + st - t0) < 16 && st) 
484			{
485 		    	st = st > 0 ? 1 : -1;    					
486			} 
487 		    if(s_l == 0 && s_t == 0)
488			{
489     		    return;   				
490			} 
491 		    if(T)      
492 		    {    
493 		    	o.style.left = l0 +"px";    
494 		    	o.style.top = t0 +"px";    
495 		    	return;      
496 		    }      
497 		    else      
498 		    {    
499 		    	if(Math.abs(l + sl - l0) < 2) 
500				{
501					o.style.left = l0 +"px";  
502				}       		    		 
503 		    	else     
504				{
505					o.style.left = l + sl +"px";   
506				}   		    	 
507 		    	if(Math.abs(t + st - t0) < 2) 
508				{
509					o.style.top = t0 +"px";   
510				}        		    		 
511 		    	else    
512				{
513					o.style.top = t + st +"px";   
514
515				}
516 		    		         		    	
517 		    	window["ct"+ Id] = window.setTimeout("MyMove.Move_e('"+ Id +"', "+ l0 +" , "+ t0 +", "+ (l + sl) +", "+ (t + st) +","+T+")", 1);      
518 		    }     
519 		}   
520} 
521*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.