夜间模式
请选择 进入手机版 | 继续访问电脑版

BoonKiong.com2025™

人气 596

首页【风叶飘飘】

文強已获得官方认证 2024-5-6 11:58



首页【风叶飘飘】

首页【风叶飘飘】

首页【风叶飘飘】

首页【风叶飘飘】

首页【风叶飘飘】

首页【风叶飘飘】

首页【风叶飘飘】

首页【风叶飘飘】

首页【风叶飘飘】

首页【风叶飘飘】



把代码放在【第三方统计】

▲把图片上传空间、再取图片网址贴上。
▲戓更换自己喜爱的图片。

[CSS] 纯文本查看 复制代码
<!------------ 插入控制码区段开始 ------------>
<script language="JavaScript1.2">

//Pre-load your image below!
grphcs=new Array(6)
Image0=new Image();
Image0.src=grphcs[0]=" 图片网址";  //指定这个特效所用的图片
Image1=new Image();
Image1.src=grphcs[1]="图片网址"  //指定这个特效所用的图片
Image2=new Image();
Image2.src=grphcs[2]=" 图片网址"  //指定这个特效所用的图片
Image3=new Image();
Image3.src=grphcs[3]=" 图片网址"  //指定这个特效所用的图片
Image4=new Image();
Image4.src=grphcs[4]=" 图片网址"  //指定这个特效所用的图片
Image5=new Image();
Image5.src=grphcs[5]=" 图片网址"  //指定这个特效所用的图片

Amount=6; //Smoothness depends on image file size, the smaller the size the more you can use!
Ypos=new Array();
Xpos=new Array();
Speed=new Array();
Step=new Array();
Cstep=new Array();
ns=(document.layers)?1:0;
ns6=(document.getElementById&&!document.all)?1:0;

if (ns){
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*grphcs.length);
rndPic=grphcs[P];
document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+rndPic+"></LAYER>");
}
}
else{
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*grphcs.length);
rndPic=grphcs[P];
document.write('<img id="si'+i+'" src="'+rndPic+'" style="position:absolute;top:0px;left:0px">');
}
document.write('</div></div>');
}
WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;
WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;
for (i=0; i < Amount; i++){                                                               
Ypos = Math.round(Math.random()*WinHeight);
Xpos = Math.round(Math.random()*WinWidth);
Speed= Math.random()*5+3;
Cstep=0;
Step=Math.random()*0.1+0.05;
}
function fall(){
var WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;
var WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;
var hscrll=(ns||ns6)?window.pageYOffset:document.body.scrollTop;
var wscrll=(ns||ns6)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < Amount; i++){
sy = Speed*Math.sin(90*Math.PI/180);
sx = Speed*Math.cos(Cstep);
Ypos+=sy;
Xpos+=sx;
if (Ypos > WinHeight){
Ypos=-60;
Xpos=Math.round(Math.random()*WinWidth);
Speed=Math.random()*5+3;
}
if (ns){
document.layers['sn'+i].left=Xpos;
document.layers['sn'+i].top=Ypos+hscrll;
}
else if (ns6){
document.getElementById("si"+i).style.left=Math.min(WinWidth,Xpos);
document.getElementById("si"+i).style.top=Ypos+hscrll;
}
else{
eval("document.all.si"+i).style.left=Xpos;
eval("document.all.si"+i).style.top=Ypos+hscrll;
}
Cstep+=Step;
}
setTimeout('fall()',20);
}

window.onload=fall
//-->
</script>
<!------------ 插入控制码区段结束 ------------>


<
您需要登录后才可以回帖 登录 | 立即注册

您还未登录

随手拍~~:

热门推荐~~:

论坛表情分享...

1、洋葱头 ...

Discuz! X3.5 解决小图标不显示的方法...

我发现大多数使用Discuz! X3.5 都有小图标不能显示的问题,提问的时候大家给的回答都是说跨域的问题, ...

如何在 discuz 帖子里添加 APlayer 音乐播...

1、首先将下边的 APlayer.css 和 APlayer.js 代码下载然后解压上传到服务器。 2、单曲音乐的代 ...

Discuz! 相关帖子功能修改随机显示不依赖标...

打开 sourcemoduleforumforum_viewthread.php 文件,查找: 换行添加: 再查找: 换行添 ...

Discuz! X3.5 手机版 logo 的路径...

打开以下的模板文件,搜索 logo_m.svg 1.template/default/touch/portal/index.htm 2.template/def ...

热度会员~~:

文強bkboonkiongadmin老谟深虑TaChuaekin海岛tiaoyaonanosifefei220088小甜天

免责声明~~:


本站内容来源于合作伙伴及网络搜集,版权归原作者所有。如有侵犯版权,请立刻和本站联系,我们将在三个工作日内予以改正。
Email:hsbk@hotmail.com

服务与条款|隐私政策|免责声明|手机版|网站地图|友链申请| 文强阁

Powered by Discuz! X3.5|© 2001-2025 Discuz! Team. |本站总访问量已经运行: