<%
'=========================================================
'　　　　　　　　　　　飞　扬　网　络
' Copyright (C) 2003-2005 feiyang.Com. All Rights Reserved.
' Web: http://www.feiyang.com
' QQ: 99686532        E-mail: bgh_edu@126.com
'=========================================================
%>
<!--#include File="QQCF_Conn.Asp"-->
<%If RsSet("QQShow")=-1 Then%>
<%
If Request.Servervariables("SERVER_PORT")="80" Then
 Tmp = "http://" & request.servervariables("SERVER_NAME") & _            
  left(request.servervariables("SCRIPT_NAME"),len(request.servervariables("SCRIPT_NAME"))-len("qqcf_qq.asp"))
Else
 Tmp = "http://" & request.servervariables("SERVER_NAME")&":"&request.servervariables("SERVER_PORT")& _            
  left(request.servervariables("SCRIPT_NAME"),len(request.servervariables("SCRIPT_NAME"))-len("qqcf_qq.asp"))
End If
%>
<%If Request("Action")="" Then%>
var online= new Array();
<%
QQCode=RsSet("QQCode")&":"
QQCode_2=Replace(QQCode,":",",")
QQCode_2=Left(QQCode_2,Len(QQCode_2)-1)
%>
document.write("<script src='http://webpresence.qq.com/getonline?Type=1&<%=QQCode%>'></script>");
document.write("<script src='<%=Tmp%>qqcf_qq.asp?Action=getcode&QQ=<%=QQCode_2%>'></script>");
<%End If%>

<%If Request("Action")="getcode" Then%>
if (!document.layers)
document.write("<div id='divStayTopLeft' style='position:absolute'>");
document.write("<LAYER left='624' top='2215' id=divStayTopLeft>");
document.write("<TABLE cellSpacing=0 cellPadding=0 width=110 border=0>");
document.write("  <TBODY>");
document.write("    <TR> ");
document.write("      <TD width=110><IMG src='<%=Tmp%>QQCF_Images/kefu_up.jpg' border=0></TD>");
document.write("    </TR>");
document.write("    <TR>");
document.write("     <TD vAlign=center background='<%=Tmp%>QQCF_Images/kefu_middle.jpg'>");


<%
adm_qq=Request("QQ")
QQ=split(adm_qq,",")
for N=0 to UBound(QQ)
MyQQ=MyQQ+QQ(N)+":"
next
%>
<% for N=0 to UBound(QQ) %>
if (online[<%=n%>]==1){
document.write("&nbsp;<img src=QQCF_Images/QQOnline.gif border=0 align=middle><a href='http://wpa.qq.com/msgrd?V=1&Uin=<%=QQ(n)%>&Site=在线咨询&Menu=no' title='QQ在线上' target=blank ><font color=ff0000><span style='font-size:12px;'><%=QQ(n)%> 在线</span></font></a><br>");
}else{
document.write("&nbsp;<img src=QQCF_Images/QQOffline.gif border=0 align=middle><a href='#gbook' title='QQ不在线'><font color=000000><span style='font-size:12px;'><%=QQ(n)%> 留言</span></font></a><br>");
}
<%next%>
document.write("</TD>");
document.write("    </TR>");
document.write("    <TR> ");
document.write("      <TD width=110><a href='http://www.feiyang.com' target='_blank'><IMG src='QQCF_Images/kefu_down.jpg' border=0></a></TD>");
document.write("    </TR>");
document.write("  </TBODY>");
document.write("</TABLE>");
document.write("</LAYER>");


var verticalpos="frombottom"
if (!document.layers)
document.write('</div>')
function JSFX_FloatTopDiv()
{
	var startX =3,
	startY = 300;
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x;this.style.top=y;};
		el.x = startX;
		if (verticalpos=="fromtop")
		el.y = startY;
		else{
		el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		el.y -= startY;
		}
		return el;
	}
	window.stayTopLeft=function()
	{
		if (verticalpos=="fromtop"){
		var pY = ns ? pageYOffset : document.body.scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		}
		else{
		var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("divStayTopLeft");
	stayTopLeft();
}
JSFX_FloatTopDiv();
<%End If%>
<%End If%>