|
Author |
Message |
marlo_00
HCG Member
> : I love HCG!
Posts : 14
Age : 30
Country :
Reg-Date : 2008-11-15
Forum Warning :
Contribution :
|
Subject: firework on background Mon Dec 29, 2008 3:08 pm |
|
|
this code works anywhere but it is more beautiful in pure black backgrounds - Code:
-
CL=new Array('#ff0000','#00ff00','#ffffff','#ff00ff','#ffa500','#ffff00','#00ff00','#ffffff','#ff00ff') CL2=new Array('#ffa500','#00ff00','#FFAAFF','#fff000','#fffffF') Xpos=130; Ypos=130; I='#00ff00'; C=0; S=5; H=null; W=null; Y=null; NS4=(document.layers); NS6=(document.getElementById&&!document.all); IE4=(document.all); A=14; E=120; L=null; if (NS4){ for (i=0; i < A; i++) document.write('<LAYER NAME="nsstars'+i+'" TOP=0 LEFT=0 BGCOLOR='+I+' CLIP="0,0,2,2"></LAYER>'); } if (NS6){ window.document.body.style.overflow='hidden'; for (i=0; i < A; i++) document.write('<div id="ns6stars'+i+'" style="position:absolute;top:0px;left:0px;height:2px;width:2px;font-size:2px;background:'+I+'"></div>'); } if (IE4){ document.write('<div id="ie" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < A; i++) document.write('<div id="iestars" style="position:absolute;top:0;left:0;width:2px;height:2px;background:'+I+';font-size:2px"></div>'); document.write('</div></div>'); } function Fireworks(){ H=(NS4||NS6)?window.innerHeight:window.document.body.clientHeight; W=(NS4||NS6)?window.innerWidth:window.document.body.clientWidth; Y=(NS4||NS6)?window.pageYOffset:window.document.body.scrollTop; for (i=0; i < A; i++){ if (IE4)L=iestars[i].style; if (NS4)L=document.layers["nsstars"+i]; if (NS6)L=document.getElementById("ns6stars"+i).style; var F = CL[Math.floor(Math.random()*CL.length)]; var RS=Math.round(Math.random()*2); L.top = Ypos + E*Math.sin((C+i*5)/3)*Math.sin(C/100) L.left= Xpos + E*Math.cos((C+i*5)/3)*Math.sin(C/100) if (C < 110){ if (NS4){L.bgColor=I;L.clip.width=1;L.clip.height=1} if (IE4||document.getElementById) {L.background=I;L.width=1;L.height=1;L.fontSize=1} } else{ if (NS4){L.bgColor=F;L.clip.width=RS;L.clip.height=RS} if (IE4||document.getElementById){L.background=F;L.width=RS;L.height=RS;L.fontSize=RS} } } if (C > 220){ C=0; var NC = CL2[Math.floor(Math.random()*CL2.length)]; I=NC; E=Math.round(100+Math.random()*90); Ypos = E+Math.round(Math.random()*(H-(E*2.2)))+Y; Xpos = E+Math.round(Math.random()*(W-(E*2.2))); } C+=S; setTimeout("Fireworks()",10); } Fireworks();
preview here ready to paste - Code:
-
<script src="http://h1.badwaresite.www/marlocz/fireworksgallery/fireworks1.js"></script> hope u like this code _________________________________________________ sorry i have to edit this
Last edited by marlo_00 on Fri Jan 02, 2009 7:44 pm; edited 1 time in total
|
|
|
|
chaos
HCG Member
> : POYGEE pa sa tatay mu . hahaha
Posts : 34
Age : 33
Location : Philippines
Mood : Bored
Country :
Reg-Date : 2008-10-27
Forum Warning :
Contribution :
|
Subject: Re: firework on background Mon Dec 29, 2008 3:24 pm |
|
|
im first . wahaha it only works on IE??
|
|
|
|
Pawem
Promoter
> : i miss this :)
Posts : 3903
Age : 30
Location : Britannia
Mood : Energetic
Country :
Reg-Date : 2008-09-19
Forum Warning :
Contribution :
|
Subject: Re: firework on background Mon Dec 29, 2008 3:27 pm |
|
|
BLOCKiNG MFF IN THE PREViEW. err.
|
|
|
|
marlo_00
HCG Member
> : I love HCG!
Posts : 14
Age : 30
Country :
Reg-Date : 2008-11-15
Forum Warning :
Contribution :
|
Subject: Re: firework on background Mon Dec 29, 2008 3:31 pm |
|
|
i dont know but ill try to make it work on other browsers because im only using ie!!!!! im sorry for for the inconvenience
|
|
|
|
chaos
HCG Member
> : POYGEE pa sa tatay mu . hahaha
Posts : 34
Age : 33
Location : Philippines
Mood : Bored
Country :
Reg-Date : 2008-10-27
Forum Warning :
Contribution :
|
Subject: Re: firework on background Mon Dec 29, 2008 3:37 pm |
|
|
oh . i see . il try to use it on mozilla . it works . but my scrollbar was gone . any way . other users can use it . kip up da gud work . xD
|
|
|
|
marlo_00
HCG Member
> : I love HCG!
Posts : 14
Age : 30
Country :
Reg-Date : 2008-11-15
Forum Warning :
Contribution :
|
Subject: Re: firework on background Mon Dec 29, 2008 3:43 pm |
|
|
|
|
|
|
chaos
HCG Member
> : POYGEE pa sa tatay mu . hahaha
Posts : 34
Age : 33
Location : Philippines
Mood : Bored
Country :
Reg-Date : 2008-10-27
Forum Warning :
Contribution :
|
Subject: Re: firework on background Mon Dec 29, 2008 3:50 pm |
|
|
|
|
|
|
ahn min hyo
HCG Elite
> : inge repu :)
Posts : 1022
Age : 33
Mood : Good
Country :
Reg-Date : 2008-12-01
Forum Warning :
Contribution :
|
Subject: Re: firework on background Mon Dec 29, 2008 4:59 pm |
|
|
where should i paste the ready to paste code? <script src="http://h1.badwaresite.www/marlocz/fireworks.js"></script>
|
|
|
|
stolenhart09
HCG Addict
> : iF FLiRTiNG WAS A SPORT.. i COULD BE A VARSITY.. ]
Posts : 350
Age : 32
Location : BOMBiNG CAPiTAL~GENERAL SANTOS CiTY.. ;]
Mood : Crazy
Country :
Reg-Date : 2008-10-30
Forum Warning :
Contribution :
|
|
|
|
riN_018
HCG Member
> : HCG, so cool!
Posts : 27
Age : 33
Location : philippines
Mood : Blissful
Country :
Reg-Date : 2008-11-03
Forum Warning :
Contribution :
|
|
|
|
chick flicks
HCG Addict
> : I love HCG! <3 ..
Posts : 411
Age : 31
Location : CALOOCAN
Mood : Happy
Reg-Date : 2008-11-08
Forum Warning :
Contribution :
|
Subject: Re: firework on background Tue Dec 30, 2008 11:26 am |
|
|
niCE maganda tlaga! paG BG mo bLaCk para kitang kita ung fire works i LOve it tHankS ..
|
|
|
|
jeds.dilaw
Contributor
> : pop it.lock it.
polka dot it!
Posts : 10113
Age : 28
Location : stomach, with my pet. XD
Mood : Bittersweet
Country :
Reg-Date : 2008-11-04
Forum Warning :
Contribution :
|
Subject: Re: firework on background Tue Dec 30, 2008 12:45 pm |
|
|
tenks fer sheirin' ..dis is rily cul!
|
|
|
|
zachariiss
HCG Addict
> : www.zachariissblog.co.nr
Posts : 444
Age : 28
Location : laguna
Mood : Happy
Country :
Reg-Date : 2008-10-05
Forum Warning :
Contribution :
|
Subject: Re: firework on background Tue Dec 30, 2008 2:14 pm |
|
|
why its not working at mozilla firefox ?
|
|
|
|
Marlou123
HCG Addict
> : I love HCG!
Posts : 222
Age : 29
Location : Catarman Cordova Cebu
Mood : Excited
Reg-Date : 2008-12-30
Forum Warning :
Contribution :
|
Subject: Re: firework on background Tue Jan 20, 2009 8:08 am |
|
|
luv it thnx for sharing... keep it up
|
|
|
|
clement09
HCG Member
> : I love HCG!
Posts : 14
Age : 34
Location : Balabag, Boracay, Malay, Aklan
Mood : Happy
Country :
Reg-Date : 2009-01-26
Forum Warning :
Contribution :
|
|
|
|
bimbo13
Guest
> : boooh~
Posts : 8
Age : 35
Location : sampranzisco, agushan chur
Mood : Curious
Country :
Reg-Date : 2009-04-02
Forum Warning :
Contribution :
|
Subject: Re: firework on background Thu Apr 16, 2009 7:58 pm |
|
|
nwei. nice!! [b]hahahah.
|
|
|
|
ynnahco
HCG Addict
> : ang cute ni *toot!*
Posts : 312
Age : 28
Location : Imus,Cavite
Mood : Giggly
Country :
Reg-Date : 2009-02-16
Forum Warning :
Contribution :
|
Subject: Re: firework on background Thu Apr 16, 2009 8:48 pm |
|
|
thanks for sharing.. gonna use it!!x))
|
|
|
|
bimbo13
Guest
> : boooh~
Posts : 8
Age : 35
Location : sampranzisco, agushan chur
Mood : Curious
Country :
Reg-Date : 2009-04-02
Forum Warning :
Contribution :
|
Subject: Re: firework on background Mon Apr 20, 2009 4:11 pm |
|
|
weei. hey?! can this effect can only be seen in a black background?? huh? coz in my white background, it doesnt work. please answer it as soon as possible.^^
|
|
|
|
Mickey™
Promoter
> : Twitter: mickeysantilla
Posts : 2676
Age : 31
Location : Nueva Ecija
Mood : Happy
Country :
Reg-Date : 2009-01-31
Forum Warning :
Contribution :
|
|
|
|
shay24
HCG Member
> : I love HCG!
Posts : 17
Age : 36
Location : city of smile
Mood : Alone
Reg-Date : 2008-10-18
Forum Warning :
Contribution :
|
Subject: Re: firework on background Fri Jan 29, 2010 11:01 pm |
|
|
wat is the file extension?
|
|
|
|
Ms. Xie
HCG Guru
Posts : 8683
Age : 30
Mood : Bittersweet
Country :
Reg-Date : 2009-06-03
Forum Warning :
Contribution :
|
Subject: Re: firework on background Fri Feb 05, 2010 10:29 pm |
|
|
No preview/s or what?
Well anyway, thanks for sharing this. Ima add it in my 'code-list.' :)
|
|
|
|
neesay_vill
HCG Geek
> : jump then. fall
Posts : 572
Age : 27
Location : in DAVE'S HEART
Mood : Energetic
Country :
Reg-Date : 2009-05-15
Forum Warning :
Contribution :
|
Subject: Re: firework on background Sat Feb 06, 2010 9:21 pm |
|
|
|
|
|
|
kaira0493
HCG Elite
> : LOVEdrunk.
Posts : 1429
Age : 30
Location : @ home.
Mood : Gloomy
Country :
Reg-Date : 2009-04-15
Forum Warning :
Contribution :
|
Subject: Re: firework on background Sat Feb 06, 2010 9:56 pm |
|
|
nice work dude. :)) keep it up.
|
|
|
|
eryl234
HCG Freak
> : tHank'S HCG
Posts : 115
Age : 30
Location : manila
Mood : Calm
Country :
Reg-Date : 2009-03-31
Forum Warning :
Contribution :
|
Subject: Re: firework on background Wed Feb 24, 2010 6:20 pm |
|
|
|
|
|
|
Sponsored content
|
Subject: Re: firework on background |
|
|
|
|
|
|
|