<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>网上直播</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
	background-color: #003366;
	font-size:12px;
}
td{ font-size:12px;}
ul{font-size:12px;}
li{padding:2px 2px 2px 10px;}
.style1{background-color:#EBEBEB; line-height:22px;}
.style2{background-color:#FFFFFF; line-height:22px;}
-->
</style>
<link href="style/global.css" rel="stylesheet" type="text/css">
</head>
<%
dim id
if not isEmpty(request.QueryString("id")) then
	id=Cint(request.QueryString("id"))
else
	id=1
end if
%>
<body>
<table width="770" height="22" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#D0E8FF">
  <tr>
    <td><div align="center">网上直播系统</div></td>
  </tr>
</table>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><div id="LiveContent" style="padding:2px;">&nbsp;</div></td>
  </tr>
</table>
<DIV id=formdiv2 style="Z-INDEX: 10; POSITION: absolute;  width:120px; height:0px;right:20px;top:document.body.scrollTop">
<form name=ac>
<input type=checkbox name="tl12" value=1 checked>
<font color="#FF0000">自动滚动</font>
</form>
</DIV>
<script src="js/xmlhttp.js"></script>
<script type="text/javascript" language="javascript">
var HTTP;
function CallServer(Url)
{
	HTTP=new getXMLRequester();
	HTTP.onreadystatechange = doAction;
	var ReturnValue=HTTP.open("POST", Url, false);
	HTTP.send("");
}
function doAction() {		
        if (HTTP.readyState == 4) // 收到完整的服务器响应
		{
			if (HTTP.status == 500) {//服务器错误				
				document.write("服务器出现内部错误。");	
            }
            else if (HTTP.status == 200) {//HTTP服务器响应的值OK
				//alert(HTTP.responseText);//将服务器返回的字符串
				document.getElementById('LiveContent').innerHTML =HTTP.responseText;
            } 
			else {
                alert(HTTP.status);
            }
        }
}
function TimeScrollCentAll(){
if(document.ac){
if(document.ac.tl12.checked){
    window.scroll(0,3000000);
 }
}
 window.setTimeout("TimeScrollCentAll()",10);
}
setInterval('CallServer("live.asp?id=<%=id%>")',2000);		//2秒钟刷新一次
TimeScrollCentAll();
</script>
</body>
</html>
