1楼 主题:星星从背景中飞出 代码

发表于 2006-10-27 17:00发送站内信
.
.
.
.
.
.
.

脚本说明:
第一步:把如下代码加入<head>区域中:
<style type="text/css">
.star {
position:absolute;
layer-background-color:white;
visibility:visible;
top:-50px;
width:50px;
height:50px;
font-size:1px;
background-color:white;
}
</style>
<SCRIPT LANGUAGE="--BLOCKED--">
<!-- Begin
var starnum = 175; // Number of stars
var isNS = (document.layers);
var _all = (isNS)? '' : 'all.';
var _style = (isNS) ? '' : '.style';
var xoffset, yoffset, w_x, w_y, tmpx, tmpy, scrlx, scrly;
function getstartpos(obj) {
obj.deltay = Math.floor(Math.random() * 12);
obj.deltax = Math.floor(Math.random() * 12);
obj.xdir = (Math.floor(Math.random() * 2) == 1) ? '+' : '-';
obj.ydir = (Math.floor(Math.random() * 2) == 1) ? '+' : '-';
obj.counter = 1;
if (isNS) {
obj.clip.width = 1;
obj.clip.height = 1;
obj.moveTo(xoffset+pageXOffset, yoffset+pageYOffset);
} else {
obj.width = 1;
obj.height = 1;
obj.pixelTop = yoffset+document.body.scrollTop;
obj.pixelLeft = xoffset+document.body.scrollLeft;
   }
}
function movestar(starN) {
tmpx = starN.deltax*starN.counter+starN.counter;
tmpy = starN.deltay*starN.counter+starN.counter;
if (isNS) {
starN.clip.width = starN.counter / 3;
starN.clip.height = starN.counter / 3;
scrlx = pageXOffset;
scrly = pageYOffset;
if ((starN.left+tmpx >= w_x+scrlx) || (starN.top+tmpy >= w_y+scrly) || (starN.left-tmpx <= scrlx) || (starN.top-tmpy <= scrly)) {
getstartpos(starN);
} else {
eval('starN.moveBy('+starN.xdir+tmpx+', '+starN.ydir+tmpy+')');
   }
} else {
starN.width = starN.counter/3;
starN.height = starN.counter/3;
scrlx = document.body.scrollLeft;
scrly = document.body.scrollTop;
if ((starN.pixelLeft+tmpx >= w_x+scrlx)||(starN.pixelTop+tmpy >= w_y+scrly) || (starN.pixelLeft-tmpx <= scrlx)||(starN.pixelTop-tmpy <= scrly)) {
getstartpos(starN);
} else {
eval('starN.pixelTop'+starN.ydir+'=tmpy');
eval('starN.pixelLeft'+starN.xdir+'=tmpx');
   }
}
starN.counter++;
}
function animate() {
for(i=1; i <= starnum; i++) {
movestar(eval('star'+i));
}
setTimeout('animate()', 100);
}
function findwindowparams() {
w_x = (isNS) ? window.innerWidth : document.body.clientWidth;
w_y = (isNS) ? window.innerHeight : document.body.clientHeight;
xoffset = w_x / 2;
yoffset = w_y / 2;
for (i = 1; i <= starnum; i++) {
getstartpos(eval('star'+i));
   }
}
function resizeNS() {
setTimeout('document.location.reload()', 400);
}
(isNS) ? window.onresize = resizeNS : window.onresize = findwindowparams;
window.onload = new Function("findwindowparams(); animate();");
//  End -->
</script>

第二步:把<body>中加入如下代码:
<SCRIPT LANGUAGE="--BLOCKED--">
<!-- Begin
for (i = 1; i <= starnum; i++) {
document.writeln('<div id="star'+i+'" class="star"></div>');
eval('var star'+i+'=document.'+_all+'star'+i+_style);
}
// End -->
</script>

本楼地址 ^返回顶部

2楼 回复:星星从背景中飞出 代码

发表于 2006-10-27 17:06发送站内信
我来看看啊

 

                

                                   

                                   

                                                          小脚印 - 育儿网

http://www.86ps.com/plugxc/linkin.asp?linkid=liaozhiwen

本楼地址 ^返回顶部

3楼 回复:星星从背景中飞出 代码

发表于 2006-10-27 19:00发送站内信
给我看看吧

<a href="http://tree.ci123.com/tree.php?treeid=54933" target="_blank" ><img alt=" 许愿树- 育儿网" src="http://tree.ci123.com/images/icon_jiaohua.gif" border="0" width="160" height="180"/></a>

本楼地址 ^返回顶部

4楼 回复:星星从背景中飞出 代码

发表于 2006-10-27 21:14发送站内信
呵呵,看一看吧

本楼地址 ^返回顶部

5楼 回复:星星从背景中飞出 代码

发表于 2006-10-28 09:01发送站内信
看看.     

 

本楼地址 ^返回顶部

6楼 回复:回复星星从背景中飞出 代码

发表于 2006-10-28 09:29发送站内信
以下内容引用自布叮的大作:星星从背景中飞出 代码
.
.
.
.
.
.
.

脚本说明:
第一步:把如下代码加入区域中:

第二步:把中加入如下代码:



欢迎大家有空时到我家来踩踩:

http://baobao.ci123.com/spaces/show/61507

本楼地址 ^返回顶部

7楼 回复:星星从背景中飞出 代码

发表于 2006-10-29 04:44发送站内信
学习星星从背景中飞出

我是添添!~有空来我家玩啊!   Tongue outhttp://baobao.ci123.com/zhangsir

小脚印 - 育儿网

本楼地址 ^返回顶部

8楼 回复:回复星星从背景中飞出 代码

发表于 2006-11-01 20:18发送站内信
以下内容引用自caolijuan的大作:星星从背景中飞出 代码
呵呵,看一看吧


         

                       

本楼地址 ^返回顶部

9楼 回复:星星从背景中飞出 代码

发表于 2006-11-01 21:26发送站内信
呵呵,看一看吧

本楼地址 ^返回顶部

10楼 回复:星星从背景中飞出 代码

发表于 2006-11-02 13:10发送站内信
    看一下

小脚印 - 育儿网 图片点击可在新窗口打开查看图片点击可在新窗口打开查看

欢迎到芊芊的家来看看http://baobao.ci123.com/cyqq0410

本楼地址 ^返回顶部

11楼 回复:星星从背景中飞出 代码

发表于 2006-11-02 16:46发送站内信
看看啊,好吗

小脚印 - 育儿网

本楼地址 ^返回顶部

12楼 回复:星星从背景中飞出 代码

发表于 2006-11-02 22:24发送站内信
kkkkkkkkkkkkkkkkkkkkkkkkkk

 

欢迎光临

笑笑-勤笑的主页: http://baobao.ci123.com/zlw2hg

笑笑-勤笑的博客: http://blog.ci123.com/zlw2hg

 

爱的宣言:这个世界上有很多美好的事物,而我们都在等待着有心人去发掘它们的存在,而我想要的绝对不是什么海誓山盟也不是什么山盟海誓,而我想要的只是一个机会,那就是可以让我好好地疼惜你,以至于天地,一起分享那些躲藏于生活细节之中的喜悦,相信我,我会带给你幸福和快乐的。

笑笑和依伊:

投票地址:

http://vote.ci123.com/views/user2.php?id=102

本楼地址 ^返回顶部

13楼 回复:星星从背景中飞出 代码

发表于 2006-11-02 23:05发送站内信
有兴趣~~~看看

本楼地址 ^返回顶部

14楼 回复:星星从背景中飞出 代码

发表于 2006-11-03 07:46发送站内信
一定要看一下啦

http://www.ci123.com/2009/christmas/main.php?action=christmas.html&user_id=28108&tag=cpurl

 

【第40金】竞技体操男子双杠 李小鹏夺冠

本楼地址 ^返回顶部

15楼 回复:星星从背景中飞出 代码

发表于 2006-11-03 08:32发送站内信
kkkkkkkkkkkkkkkkkkkkkkkkk

本楼地址 ^返回顶部

共 284 篇,显示: 1 - 15篇 1 2 3 4 5 6 7 8 9 10 下一页 后十页 »

您的位置:育儿论坛 » 主页交流
标题:
内容:
登陆 | 注册 | 用户协议
      (Ctrl+Enter快速提交)
· 育儿论坛提供育儿知识:一、母婴妇幼、孕期保健及婴儿接种常见病等护理常识;二、胎儿胎教早教宝典;三、有声读物,歌亲子游戏下载;四、月经避孕,怀孕分娩,婆媳关系指导;五、幼儿辅食喂养,奶粉母乳使用方法。论坛的目标是为妈妈宝宝提供一个温馨完善的亲子家庭社区。
· 育儿论坛用户请确认您发表的言论符合《互联网电子公告服务管理规定》《育儿网用户条款》规定,并符合本论坛的主旨。
· CopyRight ©2010 ci123.com 育儿论坛 版权所有 苏ICP备05075776号