新微赢技术网
标题:
一段网页的源码
[打印本页]
作者:
︶ㄣ帅々︷`
时间:
2009-9-15 00:57
标题:
一段网页的源码
很漂亮,一起来分享啦~
想体验的话,可以看看偶的小博客~
-----------------------------------------------源码---------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>『欢迎光临+++-上帝的小屋-+++』</title>
<style type="text/css">
<!--
a:link {
color: #999999;
text-decoration: none;
}
a{TEXT-DECORATION:none}
table {
font-family: Tahoma, Verdana, "宋体";
color: #999999;
font-size: 12px;
font-weight:bold;
}
body {
background-image: url();
background-color: #000000;
}
a:visited {
color: #999999;
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
</head>
<body>
<table border="0" celllpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td align="center" valign="middle">
<p><img src="xiaowu.jpg" width="600" height="400"></a><br>
<br>
<br>
<a href="default.asp">『 進 入 天之上帝 的 小 屋 』</a>
<br>
<br>
<br>
Copyright ? 天之上帝 All Rights Reserved.
<br>
<noscript>
</noscript><br>
</td>
</tr>
</table>
<script language="JavaScript">
if (document.all){
xL=5;
xH=0;
xW=0;
xR=0;
xE=0;
xMY=0;
xMX=0;
xWd=0;
xHd=0;
xF=new Array();
xY=new Array();
xX=new Array();
xS=new Array();
xA=new Array();
xB=new Array();
ini=new Array();
cl=new Array('#fff000','#0000FF','#ff0000','#00ff00','#ff00ff','#ffa500')
document.write('<div id="xouter" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < xL; i++){
document.write('<div id="xie" style="position:absolute;top:0;left:0;width:10px;height:10px;'
+'font-family:Courier New;font-size:50px;color:#ffffff">.</div>');
}
document.write('</div></div>');
//Initial Placement!
function Set(){
for (i=0; i < xL; i++){
xH=window.document.body.offsetHeight;
xW=window.document.body.offsetWidth;
xA=Math.round(Math.random()*xH);
xB=Math.round(Math.random()*xW);
xS=Math.random()*0.07+0.05;
xR=Math.round(Math.random()*3);
xE=Math.round(Math.random()*2500+50)
if (xR == 3) xB=-xE;
if (xR == 2) xB=xW+xE;
if (xR == 1) xA=-xE;
if (xR == 0) xA=xH;
xF=xW/14;
}
}
Set();
function Assign(){
xouter.style.top=document.body.scrollTop;
for (i=0; i < xL; i++){
xF-=xS*25;
if (xF < 4) xF=3;
xie.style.top =xY;
xie.style.left=xX;
xie.style.fontSize=xF;
xie.style.filter='glow(color='+ini+', strength='+xF/3+')';
}
}
function fly(){
var N=Math.floor(Math.random()*cl.length)
xMY=window.document.body.clientHeight/2;
xMX=window.document.body.clientWidth/2;
xWd=Math.round(Math.random()*40+5);
xHd=Math.round(Math.random()*30+5);
for (i=0; i < xL; i++)
{
xY=xA+=(xMY-xA)*(xS);
xX=xB+=(xMX-xB)*(xS);
if ((xX > xMX-xWd) && (xX < xMX+xWd) && (xY > xMY-xHd) && (xY < xMY+xHd)){
xH=window.document.body.offsetHeight;
xW=window.document.body.offsetWidth;
xA=Math.round(Math.random()*xH);
xB=Math.round(Math.random()*xW);
xS=Math.random()*0.05+0.05;
xR=Math.round(Math.random()*3);
xE=Math.round(Math.random()*50+50)
if (xR == 3) xB=-xE;
if (xR == 2) xB=xW+xE;
if (xR == 1) xA=-xE;
if (xR == 0) xA=xH+xE;
}
if ((xX < 0) || (xX > xW) || (xY < 0) || (xY > xH))
{
xF=xW/14;
ini=cl[N];
}
}
Assign();
setTimeout('fly()',10);
}
fly();
}
// -->
</script>
</body>
</body>
</html>
作者:
cheng9525
时间:
2010-3-18 15:05
鉴定完毕!
欢迎光临 新微赢技术网 (http://bbs.weiying.cn/)
Powered by Discuz! X3.2