- Code:
<script>
//Nguồn: VNFOR
// Fall v1.7a By Vession - [url=http://vnforum.co.cc/]http://vnforum.co.cc[/url]
var fallg=new Array();
///////////// Only Edit these lines ////////////////
var no=10, speed=95, slider=20, fallmax=8, wind=1;
fallg[0]=new Array("http://img14.imageshack.us/img14/6739/hoamai16gp.gif",30,30,1);
fallg[1]=new Array("http://img14.imageshack.us/img14/951/hoamai23ea.gif",34,22,1);
fallg[2]=new Array("http://img14.imageshack.us/img14/7517/hoamai31bz.gif",30,30,1);
//////////////////////////////////////////////////////////////////
// Don't Edit Below Here Unless You Know What You're Doing ?;o) //
//////////////////////////////////////////////////////////////////
var o=new Array(), tog=1;
var ns4 = (document.layers) ? true : false;
var ie4 = (document.all) ? true : false;
var ns6 = (document.getElementById&&!document.all) ? true : false;
if(ie4) falllayer="document.all['gf'+i].style";
if(ns4) falllayer="document.layers['gf'+i]";
if(ns6) falllayer="document.getElementById('gf'+i).style";
function winWid(){ return (ns4||ns6) ? window.innerWidth : document.body.clientWidth; }
function winHei(){ return (ns4||ns6) ? window.innerHeight : document.body.clientHeight; }
function winOfy(){ return (ns4||ns6) ? window.pageYOffset : document.body.scrollTop; }
function togFall(){
if (tog==1){
clearTimeout(dofall);
for (i = 0; i < no; i++) { with(eval(falllayer)){ top = 0; left = -500; } }
tog=0;
}else{
tog=1;
fall();
}
}
function newobj(q,t){
x=parseInt(Math.random()*fallg.length);
spin = parseInt(Math.random()*slider);
spin = (Math.random()>0.5) ? spin : -spin;
o[q]
= new
Array(parseInt(Math.random()*(winWid()-slider)),-30,spin,0.02+Math.random()/10,parseInt(1+Math.random()*fallmax),fallg[x][1],fallg[x][2],fallg[x][0],fallg[x][3],0);
if(t==1){
if(ns4){
document.write('<layer name="gf'+q+'" left="0" top="0"
visibility="show"><img src="'+o[q][7]+'"
border="0"></layer>'); }
if(ie4||ns6){
document.write('<img src="'+o[q][7]+'" border="0" id="gf'+q+'"
style="POSITION: absolute; Z-INDEX: -'+q+'; VISIBILITY: visible; TOP:
0px; LEFT: 0px;">'); }
}
if(t==0 && !ns4){
tem=(ie4)?document.all['gf'+q]:document.getElementById('gf'+q);
tem.src=o[q][7];
}
}
function fall(){
for (i = 0; i < no; i++) {
if((o[i][1]>winHei()-o[i][6]-10)||(o[i][0]>winWid()-slider-o[i][5])){ newobj(i,0); }
o[i][1] += o[i][4];
o[i][0]+=wind;
o[i][9] += o[i][3];
sizexy=(o[i][8]==1)?Math.sin(o[i][9]):1;
laysf=(ie4)?sizexy:parseInt(sizexy+1);
with(eval(falllayer)){
top = o[i][1]+winOfy();
left = o[i][0]+o[i][2]*Math.cos(o[i][9]);
if(!ns4){
zIndex=laysf;
width=parseInt(((o[i][5]/4)*3)+((o[i][5]/4)*sizexy));
height=parseInt(((o[i][6]/4)*3)+((o[i][6]/4)*sizexy));
}
}
}
dofall = setTimeout("fall()", speed);
}
for (i = 0; i < no; i++){ newobj(i,1);}
dofall = setTimeout("fall()", 100);
</script>
Latest topics
» Hướng dẫn làm nhiệm vụ GTA San AnDreas
by Dương Tiến Vinh Tue Jul 28, 2015 11:02 pm
» I-Ninja [Full PC]
by thanglun2 Sun Apr 26, 2015 4:53 pm
» Theme - Naruto ( Cực Hot Cực Hot )
by sayedn73 Fri Feb 13, 2015 10:14 am
» Dynasty Warriors 6 [Full PC]
by dungfa1992 Wed Dec 31, 2014 9:17 pm
» Gun Metal - Tranfomer Wars [Full PC]
by nghia6541 Tue Dec 30, 2014 9:11 am
» Theme :Sao Băng
by sayedn73 Sun Dec 21, 2014 9:41 am
» Theme dành cho fangirl(đặc biệt là fan DBSK)
by sayedn73 Sun Dec 21, 2014 9:31 am
» Share Code Viewtopic_body VBB By SockDust
by sayedn73 Sun Dec 21, 2014 8:12 am
» The House Of The Dead III [Full PC]
by kriskiller Sat Sep 13, 2014 9:36 am
» [Da Liễu] Bệnh vảy nến
by con_zubo Wed Nov 13, 2013 10:31 am
» Game Lego Batman (Full DVD)
by hotel1221 Mon May 27, 2013 11:02 am
» Game G-Force | Biệt Đội Chuột Lang (Full DVD)
by hotel1221 Mon May 27, 2013 10:52 am
» Game Phá Hàng Xóm 2
by hotel1221 Mon May 27, 2013 10:49 am
» Day Of The Zombie [Full PC]
by hotel1221 Sun May 26, 2013 6:25 pm
» Neighbours From Hell 1 + 2
by tuanvu0707 Wed Apr 10, 2013 10:10 am
by Dương Tiến Vinh Tue Jul 28, 2015 11:02 pm
» I-Ninja [Full PC]
by thanglun2 Sun Apr 26, 2015 4:53 pm
» Theme - Naruto ( Cực Hot Cực Hot )
by sayedn73 Fri Feb 13, 2015 10:14 am
» Dynasty Warriors 6 [Full PC]
by dungfa1992 Wed Dec 31, 2014 9:17 pm
» Gun Metal - Tranfomer Wars [Full PC]
by nghia6541 Tue Dec 30, 2014 9:11 am
» Theme :Sao Băng
by sayedn73 Sun Dec 21, 2014 9:41 am
» Theme dành cho fangirl(đặc biệt là fan DBSK)
by sayedn73 Sun Dec 21, 2014 9:31 am
» Share Code Viewtopic_body VBB By SockDust
by sayedn73 Sun Dec 21, 2014 8:12 am
» The House Of The Dead III [Full PC]
by kriskiller Sat Sep 13, 2014 9:36 am
» [Da Liễu] Bệnh vảy nến
by con_zubo Wed Nov 13, 2013 10:31 am
» Game Lego Batman (Full DVD)
by hotel1221 Mon May 27, 2013 11:02 am
» Game G-Force | Biệt Đội Chuột Lang (Full DVD)
by hotel1221 Mon May 27, 2013 10:52 am
» Game Phá Hàng Xóm 2
by hotel1221 Mon May 27, 2013 10:49 am
» Day Of The Zombie [Full PC]
by hotel1221 Sun May 26, 2013 6:25 pm
» Neighbours From Hell 1 + 2
by tuanvu0707 Wed Apr 10, 2013 10:10 am
Code Hoa Mai Rơi Cho Tết
TTFRCP01- Member
- Cảnh Báo :
Lý Do Vi Phạm : An Toàn
Posts : 35
SDPoints : 175
Thanked : 3
Tham Gia : 17/09/2011
|
|
No Comment.