***页面背景***宇宙飞船.完全在背景上。
把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件<!-- 安装alien宇宙飞船只需三步:
1.复制脚本编码到html文件的〈head〉...〈/head〉中;
2.增加onload()事件到html文件的〈body...〉中;
3.复制最后的的编码到html文件的〈body〉...〈/body〉。-->
<!-- 第一步: 复制脚本编码到html文件的〈head〉...〈/head〉中;-->
<head>
<script language="javascript">
<!-- begin
var isns = ((navigator.appname == "netscape") && (parseint(navigator.appversion) >= 4));
var _all = '';
var _style = '';
var wwidth, wheight;
var ydir = '++';
var xdir = '++';
var id1, id2, id3;
var x = 1;
var y = 1;
var x1, y1;
if(!isns) {
_all='all.';
_style='.style';
}
function getwindowsize() {
cleartimeout(id1);
cleartimeout(id2);
cleartimeout(id3);
if (isns) {
wwidth = window.innerwidth - 55;
wheight = window.innerheight - 50;
} else {
wwidth = document.body.clientwidth - 55;
wheight = document.body.clientheight - 50;
}
id3 = settimeout('randomdir()', 20000);
animate();
}
function randomdir() {
if (math.floor(math.random()*2)) {
(math.floor(math.random()*2)) ? xdir='--': xdir='++';
} else {
(math.floor(math.random()*2)) ? ydir='--': ydir='++';
}
id2 = settimeout('randomdir()', 20000);
}
function animate() {
eval('x'+xdir);
eval('y'+ydir);
if (isns) {
pic1.moveto((x+pagexoffset),(y+pageyoffset))
} else {
pic1.pixelleft = x+document.body.scrollleft;
pic1.pixeltop = y+document.body.scrolltop;
}
if (isns) {
if (pic1.top <= 5+pageyoffset) ydir = '++';
if (pic1.top >= wheight+pageyoffset) ydir = '--';
if (pic1.left >= wwidth+pagexoffset) xdir = '--';
if (pic1.left <= 5+pagexoffset) xdir = '++';
} else {
if (pic1.pixeltop <= 5+document.body.scrolltop) ydir = '++';
if (pic1.pixeltop >= wheight+document.body.scrolltop) ydir = '--';
if (pic1.pixelleft >= wwidth+document.body.scrollleft) xdir = '--';
if (pic1.pixelleft <= 5+document.body.scrollleft) xdir = '++';
}
id1 = settimeout('animate()', 30);
}
//end -->
</script>
</head>
<!-- 第二步: 增加onload()事件到html文件的〈body...〉中;-->
<body onload="getwindowsize()" onresize="getwindowsize()" background="space.jpg">
<!-- 复制最后的的编码到html文件的〈body〉...〈/body〉。-->
<div id="pic1" style="position:absolute; visibility:visible; left:0px; top:0px; z-index:-1">
<img src="http://www.jojoo.net/logo.gif" border="0">
http://www.jojoo.net/logo.gif</div>
<script language="javascript">
var pic1=eval('document.'+_all+'pic1'+_style);
</script>
<p><center>
<font face="arial, helvetica" size="-2">free javascripts provided<br>
by <a href="http://www.jojoo.net">the javascript source</a></font>
</center><p>
<!-- 脚本大小:2.62 kb -->
-------------- ------------------------
拥有三人行论坛管理系列软件,一 个人就可以管理一个论 坛的更新维护。还能使您的论坛有千人 在线的真实火暴效果,让您 不在为论坛因没有人气而留不住会 员而烦恼,使您的论坛 早日成为一流的论坛。详 情请登陆网站:ht tp://www.cnsrx.cn 三人行论坛管理软件,站长必备的专业好工具。 (您使用的是免费版本,购买收费版本后,将不带广告。业务QQ:24721644985227)
页:
[1]