fei 发表于 2007-4-27 11:17:53

***综合类***页面跳动的小人

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html><head><title>标题</title>
<meta content="text/html; charset=gb2312" http-equiv=content-type>
<script language=javascript>
var n = (document.layers) ? 1:0;
var ie = (document.all) ? 1:0;
var range = "";
var styleobj = "";
var x = 0;
var y = 0;
var count = 0;
var total = 6;

var count = new array(total);
for (i=0; i<=total-1; i++) {
count = 0;
}

var ycenter = new array(total);
for (i=0; i<=total-1; i++) {
ycenter = 190;
}

var xcenter = new array(total);
for (i=0; i<=total-1; i++) {
xcenter = 310;
}

var ytheta = new array(total);
for (i=0; i<=total-1; i++) {
ytheta = math.pi;
}

var xtheta = new array(total);
for (i=0; i<=total-1; i++) {
xtheta = math.pi;
}

var yspin = new array(total);
for (i=0; i<=total-1; i++) {

yspin = 3.05;
}

var xspin = new array(total);
for (i=0; i<=total-1; i++) {
xspin = 3.05;
}

var yradius = new array(total);
for (i=0; i<=total-1; i++) {
yradius = 50;
}

var xradius = new array(total);
for (i=0; i<=total-1; i++) {
xradius = 50;
}

var xpander = new array(total);
for (i=0; i<=total-1; i++) {
xpander = 1;
}

var letter = new array(total);
for (i=0; i<=total-1; i++) {
letter = "b" + i;
}

if (ie) { range = "all.";
styleobj = ".style"; }

function shiftto(obj, x, y) {
if (n) {
    obj.moveto(x,y);
}
else {
    obj.pixelleft = x;
    obj.pixeltop = y;
}
}

function getobject(obj) {
var theobj = eval("document." + range + obj + styleobj);
return theobj;
}

function parabola(num) {
var theobj = getobject(letter);
if (count < 999999) {
x = (xradius*math.cos(xtheta)) + xcenter;
y = (yradius*math.sin(ytheta)) + ycenter;
shiftto(theobj, x, y);
if (xpander) {
    if (count % 7 == 0) {
      yradius++; xradius = xradius+2;
    }
    if (yradius >= 180) xpander = 0;
}
else {
    if (count % 7 == 0) {
      yradius--; xradius = xradius-2;
    }
    if (yradius <= 1) xpander = 1;
}
xspin = xspin +.001;
yspin = yspin +.0025;
if (xspin > 3.24) xspin=3.04;
if (yspin > 3.24) yspin=3.04;

xtheta = xtheta + (math.sin(xspin));
ytheta = ytheta + (math.sin(yspin));
count++;
settimeout("parabola(" + num + ")",10);
}
}

function init() {
for (i=0; i<=total-1; i++) {
    settimeout("parabola(" + i + ")",1113*i);
}
}

</script>
<link href="../sungkecss.css" rel=stylesheet type=text/css>
<meta content="mshtml 5.00.2614.3500" name=generator></head>
<body bgcolor=#666666 leftmargin=0 onload=init(); scroll=no topmargin=0>
<div id=b0
style="height: 38px; left: 50px; position: absolute; top: -60px; width: 22px; z-index: 10"><a
href="http://www.sungke.com/05/design/download/move.htm#"
onmouseout="window.status=''; return true"
onmouseover="window.status='状态栏显示的文字'; return true"><img alt=注释 border=0 height=45
src="pic/ren01.gif" width=25>http://code.ik8.com/html/pic/ren01.gif</a> </div>
<div id=b1
style="height: 38px; left: 50px; position: absolute; top: -60px; width: 10px; z-index: 10"><a
href="http://www.sungke.com/05/design/download/move.htm#"
onmouseout="window.status=''; return true"
onmouseover="window.status='状态栏显示的文字'; return true"><img alt=注释 border=0 height=45
src="pic/ren02.gif" width=25>http://code.ik8.com/html/pic/ren02.gif</a> </div>
<div id=b2
style="height: 38px; left: 50px; position: absolute; top: -60px; width: 22px; z-index: 10"><a
href="http://www.sungke.com/05/design/download/move.htm#"
onmouseout="window.status=''; return true"
onmouseover="window.status='状态栏显示的文字'; return true"><img alt=注释 border=0 height=45
src="pic/ren03.gif" width=25>http://code.ik8.com/html/pic/ren03.gif</a> </div>
<div id=b3
style="height: 38px; left: 50px; position: absolute; top: -60px; width: 22px; z-index: 10"><a
href="http://www.sungke.com/05/design/download/move.htm#"
onmouseout="window.status=''; return true"
onmouseover="window.status='状态栏显示的文字'; return true"><img alt=注释 border=0 height=45
src="pic/ren04.gif" width=25>http://code.ik8.com/html/pic/ren04.gif</a> </div>
<div id=b4
style="height: 38px; left: 50px; position: absolute; top: -60px; width: 16px; z-index: 10"><a
href="http://www.sungke.com/05/design/download/move.htm#"
onmouseout="window.status=''; return true"
onmouseover="window.status='状态栏显示的文字'; return true"><img alt=注释 border=0 height=45
src="images/ren05.gif" width=25>http://code.ik8.com/html/images/ren05.gif</a> </div>
<div id=b5
style="height: 38px; left: 50px; position: absolute; top: -60px; width: 10px; z-index: 10"><a
href="http://www.sungke.com/05/design/download/move.htm#"
onmouseout="window.status=''; return true"
onmouseover="window.status='状态栏显示的文字'; return true"><img alt=注释 border=0 height=45
src="pic/ren06.gif" width=25>http://code.ik8.com/html/pic/ren06.gif</a> </div></body></html>

      










--------- ----- --------- ---------------

拥有三人行论坛管理系列软件,一个人就可以管理一个论坛的更新维护。还能使您的论坛 有 千人在线的真实火暴效果,让您不在为论坛因没有人气而留不住会员而烦恼,使您的论坛 早日成 为一流的论坛。详情请登陆网站:h ttp://www.cnsrx.cn 三人行论坛管理软件 ,站长必备的专业好工具。(您使用的是免费版本,购买 收费版本后,将不带广告。业务QQ:2472 16 44985227)
页: [1]
查看完整版本: ***综合类***页面跳动的小人