雪花飘飘
xhpp_Scr_dm
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style>
body {cursor:crosshair;color:mediumblue;background-color:steelblue;
font-size:26;font-family:Arial}
a {text-decoration:none}
a:hover {color:blue;text-decoration:underline}
span.glowit {font-size:36;color:firebrick;height:1}
</style>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<title>雪花飘飘 Scr</title>
<bgsound src="../yyyy/midi06a.mid" loop="-1">
</head>
<body scroll=auto bgcolor="#000080" background="bj.jpg">
<B>
<FONT FACE="宋体" LANG="ZH-CN" SIZE=5 COLOR="#ff0000">
<P ALIGN="CENTER"><font FACE="System" LANG="ZH-CN" COLOR="#0000ff">
<a href="../index.htm"><img border="0" src="../fhzy.gif" width="92" height="25"></a>
<a href="txsj.htm"><img border="0" src="../fhsy.gif" width="92" height="25"></a></font></P>
</FONT>
<P ALIGN="CENTER"><font color="#FFFFFF"><font face="华文彩云" lang="ZH-CN" size="6">雪花飘飘</font>
</font></P>
<P ALIGN="CENTER"><font color="#FFFFFF"><font size="4" FACE="宋体" LANG="ZH-CN">2004.11.11.
</font>
</font></P>
</B>
</body>
<script>
function window.onload()
{
if(screen.fontSmoothingEnabled)return;
//Tip For FontSmooth
document.body.insertAdjacentHTML("BeforeEnd","<p><br>");
}
//发光字时间 Session For Glow Words
var colGlowIt=new Array();
var intGlowIt=0;
var intGlowItType=4;
var intGlowItBase=2;
var intGlowItTimeout=100;
window.attachEvent("onload",StartGlowIt);
function StartGlowIt()
{
var item=null;
var col=document.all.tags("span");
for(i=0;i<col.length;i++)
{
item=col.item(i);
if(item.className!="glowit")continue;
colGlowIt[colGlowIt.length]=col.item(i);
}
if(!colGlowIt.length)return;
ContinueGlowIt();
}
function ContinueGlowIt()
{
intGlowIt+=1;
if(((intGlowIt-intGlowIt%intGlowItType)/intGlowItType)%2)
{
intGlowItStrength=intGlowItType-intGlowIt%intGlowItType;
}
else
{
intGlowItStrength=intGlowIt%intGlowItType;
}
intGlowItStrength+=intGlowItBase;
for(i=0;i<colGlowIt.length;i++)
{
o=colGlowIt[i];
filterGlow="glow(color="+o.currentStyle.color+",strength="+intGlowItStrength+")";
filterMask="mask(color="+o.currentStyle.color+")";
filterBlur="blur(Strength=2)";
o.style.filter=filterGlow+filterMask+filterBlur+filterGlow;
}
setTimeout("ContinueGlowIt()",intGlowItTimeout);
}
//雪花时间 Session For Snows
//雪花数量 11—111
var intSnowCount=88;
//雪花字符:"怎么办?真好!同心⊙ 钱钱钱$¥"
//雪花字符:"星星星*☆★ 圆角方尖●◆■▲"
var strSnow="*";
//雪花低速度 5--11
var intSnowSpeedLow=5;
//雪花高速度 22--33
var intSnowSpeedHigh=11;
var arrSnow=null;
//雪花循环时间(超时控制) 11--55
var intSnowTimeout=55;
var idSnowInterval=0;
window.attachEvent("onload",startSnow);
function startSnow()
{
CreateSnows();
idSnowInterval=setInterval("MoveSnows()",intSnowTimeout);
}
function CreateSnows()
{
arrSnow=new Array();
var oDivTmp=null;
for(i=0;i<intSnowCount;i++)
{
oDivTmp=document.createElement("DIV");
oDivTmp.style.position="absolute";
document.body.insertAdjacentElement("BeforeEnd",oDivTmp);
while(!oDivTmp.style.pixelTop)oDivTmp.style.pixelTop=screen.availHeight*Math.random();
while(!oDivTmp.style.pixelLeft)oDivTmp.style.pixelLeft=screen.availWidth*Math.random();
oDivTmp.speed=intSnowSpeedLow+(i%(intSnowSpeedHigh-intSnowSpeedLow));
oDivTmp.innerHTML="<font color='white' size="+oDivTmp.speed+">"+strSnow+"</font>";
while(!oDivTmp.vDirect)oDivTmp.vDirect=2*Math.random()-1;
oDivTmp.vDirect+=((oDivTmp.vDirect>0)?1/2:-1/2);
arrSnow[arrSnow.length]=oDivTmp
}
}
function MoveSnows()
{
for(i=0;i<arrSnow.length;i++)
MoveSnow(arrSnow[i]);
}
function MoveSnow(oDiv)
{
m=32
w=Math.max(document.body.scrollWidth,document.body.offsetWidth)-m;
h=Math.max(document.body.scrollHeight,document.body.offsetHeight)-m;
l=m;
t=m;
pixelLeft=oDiv.style.pixelLeft+oDiv.vDirect*Math.random()*oDiv.speed/2;
if(pixelLeft>w-oDiv.offsetWidth)pixelLeft=l;
if(pixelLeft<l)pixelLeft+=w-oDiv.style.pixelWidth-2*l;
oDiv.style.pixelLeft=pixelLeft;
pixelTop=oDiv.style.pixelTop+Math.random()*oDiv.speed;
if(pixelTop>h-oDiv.offsetHeight)pixelTop=t;
oDiv.style.pixelTop=pixelTop;
}
</script></html>