PageSourceSearch

http://bbs.cjiyou.net/inc/Main.js

js cjiyou.net collected 2026-10-03 17:37:46 UTC 22,436 bytes, 786 lines download raw bytes

1//Pop-it menu- By Dynamic Drive - Modified by Wbird
2//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
3//This credit MUST stay intact for use
4var menuOffX=0	//²Ëµ¥¾àÁ¬½ÓÎÄ×Ö×î×ó¶Ë¾àÀë
5var menuOffY=18	//²Ëµ¥¾àÁ¬½ÓÎÄ×Ö¶¥¶Ë¾àÀë
6var vBobjects = new Array();
7var fo_shadows=new Array();
8var linkset=new Array();
9var boardid=0;
10////No need to edit beyond here
11var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
12var ns6=document.getElementById&&!document.all
13var ns4=document.layers
14var xslDoc;
15var cache=function(){};
16var xmlhttp = HttpObj();
17
18function HttpObj(){
19	var xmlhttp = null;
20	try{
21		xmlhttp= new ActiveXObject('Msxml2.XMLHTTP');
22	}catch(e){
23		try{
24			xmlhttp= new ActiveXObject('Microsoft.XMLHTTP');
25		}catch(e){
26			try{
27				xmlhttp= new XMLHttpRequest();
28			}catch(e){}
29		}
30	}
31	if (xmlhttp) return xmlhttp;
32}
33
34
35function ReWidth(){
36	if(window.name!=''){
37	document.body.style.width='98%';
38	}
39}
40
41function GetBoardXmlbak(sXMLSrc,path,pid) {
42	xslDoc = CreateXmlDocument();
43	if (!xslDoc){ throw new Error('Not support!\nplease install a XML parser');return; }
44	xslDoc.async = false;
45	if (!path){path="";}
46	if (!pid){pid="";}
47	//alert(path+"index.asp?action=xml&pid="+pid)
48	xslDoc.load(path+"index.asp?action=xml");
49
50	function CreateXmlDocument() {
51		if (document.implementation && document.implementation.createDocument) {
52			var doc = document.implementation.createDocument("", "", null);
53			if (doc.readyState == null) {
54				doc.readyState = 1;
55				doc.addEventListener("load", function () {
56					doc.readyState = 4;
57					if (typeof doc.onreadystatechange == "function")
58						doc.onreadystatechange();
59				}, false);
60			}
61			return doc;
62		}
63		else if (window.ActiveXObject) {
64			var prefix = ["MSXML3","MSXML2","MSXML","Microsoft"];
65			for (var i=0;i<prefix.length;i++) {
66				try {
67					var doc = new ActiveXObject(prefix[i] + ".DOMDocument");
68					//doc.setProperty("SelectionLanguage","XPath");
69					if (doc)
70					{
71						return doc;
72					}		
73				} catch (e) {}
74			}
75		}
76		return null;
77	};
78}
79
80//¶ÌÐÅ´°¿Ú
81function openScript(url, width, height){
82	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=no' );
83}
84//²å¼þ´°¿Ú
85function PlusOpen(url, width, height){
86	window.open(url,"PlusOpen",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=yes,menubar=no,status=yes' );
87}
88
89function mybook() {
90  h = 300;
91  w = 300;
92  t = ( screen.availHeight - h ) / 2;
93  l = ( screen.availWidth - w ) / 2;
94  window.open("http://forumAd.to5198.com/common/login.jsp?sCheckUrl=/out/login.jsp&sDesUrl=/out/mybook.jsp", "ÎҵķþÎñ",
95     "left=" + l + ",top=" + t + ",height=" + h + ",width=" + w
96     + ",toolbar=no,status=no,scrollbars=no,resizable=yes" );
97  return;
98}
99
100function MM_findObj(n, d) {
101var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
102d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
103 
104if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
105  
106	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
107  
108	if(!x && d.getElementById) x=d.getElementById(n); return x;
109
110} 
111
112function fetch_object(idname, forcefetch)
113{
114	if (typeof(vBobjects[idname]) == "undefined")
115	{
116		vBobjects[idname] = MM_findObj(idname);
117	}
118	return vBobjects[idname];
119}
120//showmenu vmenu:ÄÚÈÝ£¬ÔÊÐíΪ¿Õ,vmenuobj DIVÊý¾ÝID£¬MOD 0=¹Ø±Õä¯ÀÀÆ÷×ÔÊÊÓ¦£¬ÓÃÓÚ°æÃæµ¼º½²Ëµ¥
121function showmenu(e,vmenu,vmenuobj,mod){
122	if (!document.all&&!document.getElementById&&!document.layers)
123		return
124	var which=vmenu;
125	if (vmenuobj)
126	{
127		var MenuObj = fetch_object(vmenuobj);
128		if (MenuObj)
129		{
130			which = MenuObj.innerHTML;
131		}
132	}
133	if (!which)
134	{
135		return
136	}
137	clearhidemenu();
138	ie_clearshadow();
139	menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
140	menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj
141	if (ie4||ns6)
142		menuobj.innerHTML=which
143	else{
144		menuobj.document.write('<layer name=gui bgcolor="#E6E6E6" width="165" onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
145		menuobj.document.close()
146	}
147	menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
148	menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
149	eventX=ie4? event.clientX : ns6? e.clientX : e.x
150	eventY=ie4? event.clientY : ns6? e.clientY : e.y
151	var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
152	var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY
153	var getlength
154		if (rightedge<menuobj.contentwidth){
155			getlength=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth+menuOffX : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
156		}else{
157			getlength=ie4? ie_x(event.srcElement)+menuOffX : ns6? window.pageXOffset+eventX : eventX
158		}
159		menuobj.thestyle.left=getlength+'px'
160		if (bottomedge<menuobj.contentheight&&mod!=0){
161			getlength=ie4? document.body.scrollTop+eventY-menuobj.contentheight-event.offsetY+menuOffY-23 : ns6? window.pageYOffset+eventY-menuobj.contentheight-10 : eventY-menuobj.contentheight
162		}	else{
163			getlength=ie4? ie_y(event.srcElement)+menuOffY : ns6? window.pageYOffset+eventY+10 : eventY
164		}
165	menuobj.thestyle.top=getlength+'px'
166	menuobj.thestyle.visibility="visible"
167	ie_dropshadow(menuobj,"#999999",3)
168	return false
169}
170
171function ie_y(e){  
172	var t=e.offsetTop;  
173	while(e=e.offsetParent){  
174		t+=e.offsetTop;  
175	}  
176	return t;  
177}  
178function ie_x(e){  
179	var l=e.offsetLeft;  
180	while(e=e.offsetParent){  
181		l+=e.offsetLeft;  
182	}  
183	return l;  
184}  
185function ie_dropshadow(el, color, size)
186{
187	var i;
188	for (i=size; i>0; i--)
189	{
190		var rect = document.createElement('div');
191		var rs = rect.style
192		rs.position = 'absolute';
193		rs.left = (el.style.posLeft + i) + 'px';
194		rs.top = (el.style.posTop + i) + 'px';
195		rs.width = el.offsetWidth + 'px';
196		rs.height = el.offsetHeight + 'px';
197		rs.zIndex = el.style.zIndex - i;
198		rs.backgroundColor = color;
199		var opacity = 1 - i / (i + 1);
200		rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
201		//el.insertAdjacentElement('afterEnd', rect);
202		fo_shadows[fo_shadows.length] = rect;
203	}
204}
205function ie_clearshadow()
206{
207	for(var i=0;i<fo_shadows.length;i++)
208	{
209		if (fo_shadows[i])
210			fo_shadows[i].style.display="none"
211	}
212	fo_shadows=new Array();
213}
214
215
216function contains_ns6(a, b) {
217	while (b.parentNode)
218		if ((b = b.parentNode) == a)
219			return true;
220	return false;
221}
222
223function hidemenu(){
224	if (window.menuobj)
225		menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
226	ie_clearshadow()
227}
228
229function dynamichide(e){
230	e=fixE(e);
231
232	if (ie4&&!menuobj.contains(e.toElement))
233		hidemenu()
234	else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
235		hidemenu()
236}
237
238function delayhidemenu(){
239	if (ie4||ns6||ns4)
240		delayhide=setTimeout("hidemenu()",500)
241}
242
243function clearhidemenu(){
244	if (window.delayhide)
245		clearTimeout(delayhide)
246}
247
248function highlightmenu(e,state){
249	if (document.all)
250		source_el=event.srcElement
251	else if (document.getElementById)
252		source_el=e.target
253	if (source_el.className=="menuitems"){
254		source_el.id=(state=="on")? "mouseoverstyle" : ""
255	}
256	else{
257		while(source_el.id!="popmenu"){
258			source_el=document.getElementById? source_el.parentNode : source_el.parentElement
259			if (source_el.className=="menuitems"){
260				source_el.id=(state=="on")? "mouseoverstyle" : ""
261			}
262		}
263	}
264}
265
266function fixE(e){var e;e=e?e:(window.event?window.event:null);return e}
267
268if (ie4||ns6)
269document.onclick=hidemenu
270function doSClick() {
271	var targetId, srcElement, targetElement, imageId, imageElement;
272	srcElement = window.event.srcElement;
273	targetId = srcElement.id + "content";
274	targetElement = document.all(targetId);
275	imageId = srcElement.id;
276	imageId = imageId.charAt(0);
277	imageElement = document.all(imageId);
278	if (targetElement.style.display == "none") {
279		imageElement.src = "Skins/Default/minus.gif"
280		targetElement.style.display = "";
281	} else {
282		imageElement.src = "Skins/Default/plus.gif"
283		targetElement.style.display = "none";
284	}
285}
286function doClick() {
287	var targetId, srcElement, targetElement;
288	srcElement = window.event.srcElement;
289	targetId = srcElement.id + "_content";
290	targetElement = document.all(targetId);
291	if (targetElement.style.display == "none") {
292		srcElement.src = "Skins/Default/minus.gif"
293		targetElement.style.display = "";
294	} else {
295		srcElement.src = "Skins/Default/plus.gif"
296		targetElement.style.display = "none";
297	}
298}
299
300//HTML¹ýÂ˺¯Êý
301function HTML(text)
302{
303	text = text.replace(/&/g, "&amp;") ;
304	text = text.replace(/"/g, "&quot;") ;
305	text = text.replace(/</g, "&lt;") ;
306	text = text.replace(/>/g, "&gt;") ;
307	text = text.replace(/'/g, "&#146;") ;
308	return text ;
309}
310function ReHTML(text)
311{
312	text = text.replace(/&amp;/g, "&") ;
313	text = text.replace(/&quot;/g, '"') ;
314	text = text.replace(/&lt;/g, "<") ;
315	text = text.replace(/&gt;/g, ">") ;
316	text = text.replace(/&#146;/g, "'") ;
317	return text ;
318}
319function LoadHTML(o){
320	//var sData = document.createElement("div");
321	//sData.innerHTML=ReHTML(o.innerHTML);
322	//alert(sData.getAttribute("language"))
323	o.innerHTML=ReHTML(o.innerHTML);
324	
325}
326function bbimg(o){
327	var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
328	return false;
329}
330function imgzoom(img,maxsize){
331	var a=new Image();
332	a.src=img.src
333	if(a.width > maxsize * 4)
334	{
335		img.style.width=maxsize;
336	}
337	else if(a.width >= maxsize)
338	{
339		img.style.width=Math.round(a.width * Math.floor(4 * maxsize / a.width) / 4);
340	}
341	return false;
342}
343function Dvbbs_ViewCode(replyid)
344{
345	var bodyTag="<html><head><style type=text/css>.quote{margin:5px 20px;border:1px solid #CCCCCC;padding:5px; background:#F3F3F3 }\nbody{boder:0px}.HtmlCode{margin:5px 20px;border:1px solid #CCCCCC;padding:5px;background:#FDFDDF;font-size:14px;font-family:Tahoma;font-style : oblique;line-height : normal ;font-weight:bold;}\nbody{boder:0px}</style></head><BODY bgcolor=\"#FFFFFF\" >";
346	bodyTag+=document.getElementById('scode'+replyid).CodeText.value
347	bodyTag+="</body></html>"
348	preWin=window.open('preview','','left=0,top=0,width=550,height=400,resizable=1,scrollbars=1, status=1, toolbar=1, menubar=0');
349	preWin.document.open();
350	preWin.document.write(bodyTag);
351	preWin.document.close();
352	preWin.document.title="²é¿´Ìù×ÓÄÚÈÝ";
353	preWin.document.charset="UTF-8";
354}
355function getskins(skinid,boardid){
356	var styleurl = "cookies.asp?action=stylemod&skinid="+skinid+"&boardid="+boardid;
357	var Sframe = fetch_object('stylecss');
358	if (Sframe)
359	{
360		stylecss.location.href = styleurl;
361	}
362}
363function BoardData(userName,userConfig){
364	var config = new InnerConfig();
365	if (userConfig) { 
366		for (var thisName in userConfig) {
367		if (userConfig[thisName]) { config[thisName] = userConfig[thisName]; }
368		}
369	}
370	var InnerValue;
371	if (userName){
372		for (var thisName in userName) {
373			if (userName[thisName]){
374				InnerValue = userName[thisName]+"_Value";
375				if (config[userName[thisName]]){
376					InnerData(config[userName[thisName]],config[InnerValue])
377				}
378			}
379		}
380	}
381}
382
383function InnerData(name,value)
384{
385	for (var objid in name) {
386		var obj = document.getElementById(name[objid]);
387		if (obj){
388			obj.innerHTML = value[objid];
389		}
390	}
391}
392
393function GetBoardXml(sXMLSrc,path,pid) {
394	if (!path){path="";}
395	var xmlhttp = new HttpObj();
396	xmlhttp.onreadystatechange = function(){
397		if(xmlhttp.readyState==4){
398			if(xmlhttp.status==200){
399				if (xmlhttp.responseXML){
400					cache["boardlist"] = xmlhttp.responseXML.documentElement.getElementsByTagName("board");
401				}
402			}else{
403
404			}
405		}
406	}
407	xmlhttp.open("get",path+"index.asp?action=xml");	
408	xmlhttp.send(null);
409}
410
411//ÂÛ̳µ¼º½ÏÂÀ­²Ëµ¥²¿·Ö
412function BoardJumpList(boardid,act){
413		var MenuStr="";
414		var LoadBoard,depth;
415		if(typeof(cache["boardlist"])=="undefined"){
416//			GetBoardXml(boardxml,'',boardid);
417//			if (xslDoc.parseError){
418//				if (xslDoc.parseError.errorCode!=0){
419//					return "<div class=\"menuitems\">"+xslDoc.parseError.reason +"</div>";
420//				}
421//			}
422//			cache["boardlist"] = xslDoc.documentElement.getElementsByTagName("board");
423			GetBoardXml(boardxml,'',boardid);
424		}
425		var nodelist=cache["boardlist"];
426		MenuStr+="<div class=\"menuitems\">";
427		if (nodelist!=null){
428			for(var i=0;i<nodelist.length;i++)
429			{
430				if (boardid>0&&boardid!=parseInt(nodelist[i].getAttribute("parentid"))){
431					continue;
432				}
433					depth = nodelist[i].getAttribute("depth");
434					LoadBoard = nodelist[i].getAttribute("boardid");
435					boardtype = nodelist[i].getAttribute("boardtype");
436					if (depth==0){
437						var outtext="©ï";
438					}
439					else{
440						var outtext="";
441						for (var j=0;j<(depth);j++)
442						{
443							if (j>0)
444							{
445								outtext+=" |"
446							}
447							outtext+="&nbsp;&nbsp;"
448						}
449						outtext+="©À"
450					}
451				if (ISAPI_ReWrite==1){
452					MenuStr+="<a href=\"index_"+LoadBoard+".html\">"+ outtext + boardtype +"</a><br/>";
453				}else{
454					
455					MenuStr+="<a href=\"index.asp?boardid="+LoadBoard+"\">"+ outtext + boardtype +"</a><br/>";
456				}
457			}
458			MenuStr+="</div>"
459			return MenuStr;
460		}else{
461			return "<div class=\"menuitems\">Loading...</div>";
462		}
463}
464//selectedÏÂÀ­Áбíѡȡ±íµ¥()
465function BoardJumpListSelect(boardid,selectname,fristoption,fristvalue,checknopost){
466	if(typeof(cache["boardlist"])=="undefined"){
467		GetBoardXmlbak(boardxml,'',boardid);
468		if (xslDoc.parseError){
469			if (xslDoc.parseError.errorCode!=0){
470					return;
471			}
472		}
473		cache["boardlist"] = xslDoc.documentElement.getElementsByTagName("board");
474	}
475
476	var sel = 0;
477	var sObj = document.getElementById(selectname);
478	if (sObj)
479	{
480		sObj.options[0] =  new Option(fristoption, fristvalue);
481		var nodes = cache["boardlist"];
482		if (nodes!=null)
483		{
484			for (var i = 0,k = 1;i<nodes.length;i++) {
485				var t = nodes[i].getAttribute("boardtype");
486				var v = nodes[i].getAttribute("boardid");
487				if (v==boardid)
488				{
489					sel = k;
490				}
491				if (nodes[i].getAttribute("depth")==0){
492					var outtext="©ï";
493				}
494				else
495				{
496					var outtext="";
497					for (var j=0;j<(nodes[i].getAttribute("depth"));j++)
498					{
499						if (j>
4990){outtext+=" |"}
500						outtext+="  "
501					}
502					outtext+="©À"
503				}
504				t = outtext + t
505				t = t.replace(/<[^>]*>/g, "")
506				t = t.replace(/&[^&]*;/g, "")
507				if(checknopost==1 && nodes[i].getAttribute("nopost")=='1')
508				{
509						t+="(²»Ðí×ªÒÆ)"
510				}
511				sObj.options[k++] = new Option(t, v);
512			}
513			sObj.options[sel].selected = true;
514		}
515	}
516}
517//SELECT±íµ¥Ñ¡È¡ Obj ±íµ¥Ãû£¬VALËùÑ¡µÄÖµ
518function ChkSelected(Obj,Val)
519{
520	if (Obj)
521	{
522	for (i=0;i<Obj.length;i++){
523		if (Obj.options[i].value==Val){
524		Obj.options[i].selected=true;
525		break;
526		}
527	}
528	}
529}
530
531//µ¥Ñ¡±íµ¥Ñ¡È¡ Obj ±íµ¥Ãû£¬VALËùÑ¡µÄÖµ
532function chkradio(Obj,Val)
533{
534	if (Obj)
535	{
536	for (i=0;i<Obj.length;i++){
537		if (Obj[i].value==Val){
538		Obj[i].checked=true;
539		break;
540		}
541	}
542	}
543}
544
545// Ð޸ı༭À¸¸ß¶È
546function textarea_size(num,objname)
547{
548	var obj=document.getElementById(objname)
549	if (obj){
550		if (parseInt(obj.style.height)+num>20){
551		obj.style.height = parseInt(obj.style.height)+num+"px";
552		}
553	}
554}
555
556
557function readCookie(name){
558		var nameEQ = name + "=";
559		var ca = document.cookie.split(';');
560		for(var i=0;i < ca.length;i++) {
561			var c = ca[i];
562			while (c.charAt(0)==' ') c = c.substring(1,c.length);
563			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
564		};
565		return null;
566	};
567function createCookie(name,value,days){
568		var expires = "";
569		if (days) {
570			var date = new Date();
571			date.setTime(date.getTime()+(days*24*60*60*1000));
572			expires = "; expires="+date.toGMTString();
573		};
574		document.cookie = name+"="+value+expires+"; path=/";
575	};
576	//ͼƬ×Ô¶¯µ÷ÕûµÄģʽ£¬1Ϊ°´±ÈÀýµ÷Õû £¬2 °´´óСµ÷Õû¡£
577	var resizemode=1
578function imgresize(o){
579	 	if (resizemode==2 || o.onmousewheel){
580	 	if(o.width > 500 ){
581				o.style.width='500px';
582			}
583			if(o.height > 800){
584				o.style.height='800px';
585			}
586		}else{
587		var parentNode=o.parentNode.parentNode
588		if (parentNode){
589		if (o.offsetWidth>=parentNode.offsetWidth) o.style.width='98%';
590		}else{
591		var parentNode=o.parentNode
592		if (parentNode){
593			if (o.offsetWidth>=parentNode.offsetWidth) o.style.width='98%';
594			}
595		}
596	}
597	}
598function bbimg(o){
599	var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
600	return false;
601}
602
603
604//window.onload= new function()
605//{
606//	setTimeout('ActiveOnline()',2000);
607//}
608
609function boardbarover(obj)
610{
611	obj.className = obj.className.indexOf("mainbarhover")>0? "mainbar":"mainbar mainbarhover";
612}
613
614
615//Colour pallete top offset
616function getOffsetTop(elm) {
617	var mOffsetTop = elm.offsetTop;
618	var mOffsetParent = elm.offsetParent;
619	while(mOffsetParent){
620		mOffsetTop += mOffsetParent.offsetTop;
621		mOffsetParent = mOffsetParent.offsetParent;
622	}
623	return mOffsetTop;
624}
625
626//Colour pallete left offset
627function getOffsetLeft(elm) {
628	var mOffsetLeft = elm.offsetLeft;
629	var mOffsetParent = elm.offsetParent;
630	while(mOffsetParent) {
631		mOffsetLeft += mOffsetParent.offsetLeft;
632		mOffsetParent = mOffsetParent.offsetParent;
633	}
634	return mOffsetLeft;
635}
636function postUrl(poststyle,act,bid,stype){
637	var thisUrl ="post.asp?poststyle="+poststyle+"&action="+act+"&boardid="+bid+"&stype="+stype;
638	return thisUrl; 
639}
640
641function close_postform(){
642			var obj=document.getElementById("post_div");
643			if (obj.style.display!="none"){
644			obj.style.display="none";
645			document.getElementById("post_iframe").src="";
646			}
647}
648
649function post_topic(buttonElement,pstyle,act,bid,stype){
650	var obj=document.getElementById("post_div");
651	var buttonElement = document.getElementById("postbutton");
652	if (pstyle!="1"){
653		return this.location = postUrl(pstyle,act,bid,stype);
654	}
655	if (obj.style.display=="none")
656		{
657			//obj.style.top = (getOffsetTop(buttonElement)+buttonElement.offsetHeight)+"px";
658			//obj.style.left = (getOffsetLeft(buttonElement)+buttonElement.offsetWidth)+"px";
659			//obj.style.left = "20px";
660			obj.style.display="block";
661			document.getElementById("post_iframe").style.height="760px";
662			document.getElementById("post_iframe").src=postUrl(pstyle,act,bid,stype);
663	}else {
664			obj.style.display="none";
665			document.getElementById("post_iframe").src="";
666	}
667};
668
669
670function ActiveOnline(boardid)
671{
672	xmlhttp.onreadystatechange=function(){
673		if(xmlhttp.readyState==4){
674			if(xmlhttp.status==200){
675				//setTimeout('ActiveOnline()',300000);
676				updateonline(xmlhttp.responseText);
677		
678			}else{
679				//setTimeout('ActiveOnline()',20000);
680			}
681		}
682	}
683	xmlhttp.open("post","activeonline.asp?state="+document.title.toString()+"&boardid="+boardid);	
684	xmlhttp.send(null);
685}
686
687function updateonline(XMLstr)
688{
689	eval(XMLstr);
690	var AllOnlie=document.getElementById("allonline");
691	var UserOnlie=document.getElementById("useronline");
692	var GuestOnlie=document.getElementById("guestonline");
693	if(AllOnlie) AllOnlie.innerHTML=allonline.toString();
694	if(UserOnlie) UserOnlie.innerHTML=useronline.toString();
695	if(GuestOnlie) GuestOnlie.innerHTML=guestonline.toString();
696
697}
698
699//¸¡¶¯´°¿ÚЧ¹û
700var ShadeDiv = {
701	objid : null,
702	Shade : document.createElement('div'),
703	ShadeID : 'Shade',
704	width : 400,
705	height : 300,
706	Position : function(){
707		if (!ShadeDiv.objid){
708			ShadeDiv.objid = null;
709			return;
710		}
711		var de = document.documentElement;
712		var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
713		var ch = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
714		if (self.pageYOffset) {
715			var st = self.pageYOffset;
716		} else if (document.documentElement && document.documentElement.scrollTop){	 // Explorer 6 Strict
717			var st = document.documentElement.scrollTop;
718		} else if (document.body) {// all other Explorers
719			var st = document.body.scrollTop;
720		}
721		if (window.innerHeight && window.scrollMaxY) {	
722			var sh = window.innerHeight + window.scrollMaxY;
723		} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
724			var sh = document.body.scrollHeight;
725		} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
726			var sh = document.body.offsetHeight;
727		}
728		ShadeDiv.Shade.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=60,finishOpacity=100,style=0)';
729		ShadeDiv.Shade.style.height = (sh > ch ? sh : ch) + 'px';
730		ShadeDiv.Shade.style.width = w + 'px';
731		var pos = [], pw;
732		pw = ShadeDiv.width;
733		pos[0] = (w-pw)/2;
734		pos[1] = (ch-(ShadeDiv.height || 300))/2 -100+st;
735		//window.status="ch:"+ch+"st:"+st+"post[1]:"+pos[1]+"ShadeDiv.clientHeight"+ShadeDiv.objid.clientHeight;
736		if (navigator.product && navigator.product == 'Gecko'){
737			pw -= 40;
738		}
739		ShadeDiv.objid.style.width = ShadeDiv.width + 'px';
740		ShadeDiv.objid.style.height = ShadeDiv.height + 'px';
741		ShadeDiv.objid.style.left = pos[0] + 'px';
742		ShadeDiv.objid.style.top = pos[1] + 'px';
743		ShadeDiv.Shade.style.display = 'block';
744		ShadeDiv.objid.style.display = 'block';
745	},
746	Show : function(id,w,h){
747		ShadeDiv.height = parseInt(h);
748		ShadeDiv.width = parseInt(w);
749		ShadeDiv.Shade.id = ShadeDiv.ShadeID;
750		ShadeDiv.objid = document.getElementById(id);
751		document.body.insertBefore(ShadeDiv.Shade,null);
752		ShadeDiv.Position();
753	},
754	Close : function(){
755		if (ShadeDiv.objid==null){
756			return;
757		}
758		ShadeDiv.Confirmed();
759	},
760
761	Confirmed : function() {
762		ShadeDiv.objid.style.display = 'none';
763		ShadeDiv.Shade.style.display = 'none';
764		document.body.removeChild(ShadeDiv.Shade);
765	}
766
767}
768
769function frameon(url,img){
770	if (window == top){
771		top.location.href = "index.asp?action=frameon&url="+escape(url);
772	}else{
773		top.location.href = url;
774	}
775}
776
777function changeframeicon(img){
778	if (!img){return false;}
779	if (window == top){
780		img.src = 'images/others/isleft.gif';
781	}else{
782		img.src = 'images/others/noleft.gif';
783
784	}
785}
786

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.