<!--#include file="conn/conn.asp"-->

<link href="css.css" REL="stylesheet" TYPE="text/css">
<style type="text/css">
<!--
body {
	background-color: #FFFFFF;
	margin-top: 9px;
}
-->
</style>
<script language="JavaScript">
var scrollerwidth=640
var scrollerheight=25
var pausebetweenimages=3000
var vSlideContent=new Array()
	<%
'生日功能
Application.Lock()
if Application("snsnshenri1")="" then
Application("snsnshenri1")=now()-0.1
end if
if datediff("h",Application("snsnshenri1"),now)>=1 then
Application("snsnshenri1")=now()
Application("snsnshenri")=""
Set shenri= Server.CreateObject("ADODB.Recordset") 
shenri.open "select shenri,username from snsn_user where right(left(shenri,len(shenri)-7),len(shenri)-12)='"&mid(date,6,20)&"'",conn,3,1
do while not shenri.eof 
Application("snsnshenri")=Application("snsnshenri")&","&shenri("username")
shenri.movenext
loop
end if
if Application("snsnshenri")<>"" then
snsnshenri=split(Application("snsnshenri"),",")
for i=1 to  ubound(snsnshenri)
Set shenrix= Server.CreateObject("ADODB.Recordset") 
shenrix.open"select ch,name from snsn_user where username='"&snsnshenri(i)&"'",conn,1,1
response.Write("vSlideContent["&i-1&"]='&nbsp;&nbsp;<a href=/shenri.asp?user="&snsnshenri(i)&" target=_blank><font color=red>少男少女社区携所有会员祝："&shenrix("name")&"&nbsp;"&shenrix("ch")&" 生日快乐~~</font></a>';")
next
end if
Application.unLock()
'END 生日功能
%>
</script>
<%
if Application("snsnshenri")<>"" then%>
<body onLoad="startVTextScroll()">
<link href="css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-color: #FFFFFF;
}
-->
</style>
<script language="JavaScript">
if (vSlideContent.length>1)
i=vSlideContent.length-1
else
i=0

function locateObject(n, d) { //v3.0
  var p,i,x;
  if(!d) d=document;
  if((p=n.indexOf("?"))>0&&parent.frames.length)
  {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);
    }
  if(!(x=d[n])&&d.all) x=d.all[n];
  
  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=locateObject(n,d.layers[i].document);
  return x;
}

function moveVTextFirstBlock(whichdiv)
{

if (document.all)
{
	tdiv=eval(whichdiv)

	if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5)
	{
		tdiv.style.pixelTop=0
		setTimeout("moveVTextFirstBlock(tdiv)",pausebetweenimages)
		setTimeout("moveVTextSecondBlock('vTextSecond')",pausebetweenimages)
		return
	}
	if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1)
	{
		tdiv.style.pixelTop-=5
		setTimeout("moveVTextFirstBlock(tdiv)",10)
	}
	else
{
		tdiv.style.pixelTop=scrollerheight+5

	tdiv.innerHTML=vSlideContent[i]
	if (i==vSlideContent.length-1)
	i=0
else
	i++
}
}
else
{
tlayer=eval(whichdiv)
if (tlayer.top>0&&tlayer.top<=5)
{
tlayer.top=0
setTimeout("moveVTextFirstBlock(tlayer)",pausebetweenimages)
setTimeout("moveVTextSecondBlock(locateObject('vTextSecond'))",pausebetweenimages)
return
}
if (tlayer.top>=tlayer.document.height*-1)
{
tlayer.top-=5
setTimeout("moveVTextFirstBlock(tlayer)",10)
}
else
{
tlayer.top=scrollerheight+5
tlayer.document.write(vSlideContent[i])
tlayer.document.close()
if (i==vSlideContent.length-1)
i=0
else
i++
}
}
}

function moveVTextSecondBlock(whichdiv)
{
if (document.all)
{
tdiv2=eval(whichdiv)

if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5)
{
	tdiv2.style.pixelTop=0
	setTimeout("moveVTextSecondBlock(tdiv2)",pausebetweenimages)
	setTimeout("moveVTextFirstBlock('vTextFirst')",pausebetweenimages)
	return
}

if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
	tdiv2.style.pixelTop-=5
	setTimeout("moveVTextSecondBlock('vTextSecond')",10)
}
else
{
	tdiv2.style.pixelTop=scrollerheight+5

	tdiv2.innerHTML=vSlideContent[i]
	if (i==vSlideContent.length-1)
	i=0
else
	i++
}
}
else if (document.layers)
{
tlayer2=eval(whichdiv)

if (tlayer2.top>0&&tlayer2.top<=5)
{
tlayer2.top=0
setTimeout("moveVTextSecondBlock(tlayer2)",pausebetweenimages)
setTimeout("moveVTextFirstBlock(locateObject('vTextMain').document.layers['vTextFirst'])",pausebetweenimages)
return
}
if (tlayer2.top>=tlayer2.document.height*-1)
{
tlayer2.top-=5
setTimeout("moveVTextSecondBlock(tlayer2)",10)
}
else
{
tlayer2.top=scrollerheight+5
tlayer2.document.write(vSlideContent[i])
tlayer2.document.close()
if (i==vSlideContent.length-1)
i=0
else
i++
}
}
}

function startVTextScroll(){
if (document.all)
{
	locateObject('vTextSecond').style.top=scrollerheight+5
	locateObject('vTextFirst').visibility='visible';
	locateObject('vTextSecond').visibility='visible';
	moveVTextFirstBlock(locateObject("vTextFirst"))
}
else if (document.layers)
{
	locateObject('vTextMain').visibility='show'
	locateObject('vTextFirst').visibility='show'
	locateObject('vTextSecond').top=scrollerheight+5
	locateObject('vTextSecond').visibility='show'
	moveVTextFirstBlock(locateObject('vTextMain').document.layers['vTextFirst'])
}
}
//-->
</script>
<style type="text/css">
<!--
div {  font-family: ??; font-size: 12px; color: #333333}
-->
</style>
<div id="vTextMain" style="width:640; height:25; position:absolute; top: 6px; left: 5px; visibility: visible; clip: rect(0 640 25 0); overflow: hidden; z-index: 2"> 
  <div id="vTextFirst" style="top:2px; width:640;position:absolute; z-index: 1; padding: 1px 1px; visibility: visible; overflow: hidden; clip: rect(0 640 25 0)"> 
<script language="JavaScript">
document.write(vSlideContent[0])
</script>
</div>
  
<div id="vTextSecond" style="top:1; width:640;position:absolute; z-index: 0; padding: 1px 1px; visibility: visible; overflow: hidden; clip: rect(0 640 25 0)"> 
<script language="JavaScript">
if(vSlideContent[1]!=undefined ) 
document.write(vSlideContent[1])
else
document.write(vSlideContent[0])
</script>
</div>  
</div>
<%else%>
&nbsp;&nbsp;今天没有过生日的会员~~
<%end if%>
