Tổng số bài gửi : 58 Age : 30 Registration date : 28/05/2007
Tiêu đề: lá rơi trong web Sat Oct 27, 2007 5:34 pm
<script> var isNetscape6=false; if (navigator.appName == "Netscape" && parseFloat(navigator.appVersion) >= 5) isNetscape6=true; /* This script has been disabled for Netscape 6 due to ugly scrollbar activety. Could probably be fixed with a clipped container div but can't be bothered. */ if (!isNetscape6){ num=15; //Smoothness depends on image file size, the smaller the size the more you can use! stopafter=3000; //seconds!
'); for (i=0; i < num; i++){ randomleaf = pics[Math.floor(Math.random()*pics.length)]; document.write(''); } document.write('
'); } if (!document.all&&!document.layers){ for (i=0; i < num; i++){ randomleaf = pics[Math.floor(Math.random()*pics.length)]; document.write("
"); } } inih=(document.all)?window.document.body.clientHeight:window.innerHeight-100; iniw=(document.all)?window.document.body.clientWidth:window.innerWidth-100; for (i=0; i < num; i++){ y[i]=Math.round(Math.random()*inih); x[i]=Math.round(Math.random()*iniw); s[i]=Math.random()*5+3; s1[i]=0; s2[i]=Math.random()*0.1+0.05; } function fall(){ h=(document.all)?window.document.body.clientHeight:window.innerHeight; w=(document.all)?window.document.body.clientWidth:window.innerWidth; scy=(document.all)?document.body.scrollTop:window.pageYOffset; scx=(document.all)?document.body.scrollLeft:window.pageXOffset; for (i=0; i <num> h){ y[i]=-60; x[i]=Math.round(Math.random()*w); s[i]=Math.random()*5+3; } s1[i]+=s2[i]; if (document.layers){ document.layers["leaf"+i].left=x[i]; document.layers["leaf"+i].top=y[i]+scy; } else{ document.getElementById("leaf"+i).style.left=x[i]; document.getElementById("leaf"+i).style.top=y[i]+scy; } } timer=setTimeout('fall()',20); } fall(); function dsbl(){ for (i=0; i <num> </script>
Được sửa bởi ngày Mon Oct 29, 2007 8:21 am; sửa lần 1.
Khách v Khách viếng thăm
Tiêu đề: Re: lá rơi trong web Sun Oct 28, 2007 8:50 am
Mừng quá,vậy là anh vẫn còn ở diễn đàn,lâu quá anh không lên làm em cứ tưởng.Nhưng bài này nói về cái gì đó anh,em xem kĩ rồi mà vẫn không hiểu.
help-14 Admin
Tổng số bài gửi : 58 Age : 30 Registration date : 28/05/2007
Tiêu đề: Re: lá rơi trong web Mon Oct 29, 2007 8:18 am
Khi em lập web hoặc forum có hỗ trợ javascrip thì chị cần paste phần này vào trong đoạn mã html của web là được! ví dụ như 4rum anh đang lập cho lớp nè: http://a5pro.diendan.vn
ash&pikachu New Trainer
Tổng số bài gửi : 5 Registration date : 15/08/2008
Tiêu đề: Re: lá rơi trong web Thu Oct 23, 2008 10:07 am