friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

  • JavaScript
  •  » Fireworks trick (4 overlay & non overlay) --UPDATED!

#1  2008-06-04 13:56:49

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFriendster
Anadipsic en Sarcophilous
Location: KARAKURA TOWN
Registered: 2007-11-01
Posts: 10881
Last visit: Today
Reputation: 1302
Friendster

Fireworks trick (4 overlay & non overlay) --UPDATED!

this is a trick ...on how to put a fireworks,, >>
following your cursor.....


code here :exclaim:

for overlay!

Code:

<!-- Start of Fireworks -->
<script language="JavaScript">
<!--  IE4+, NS4+, NS6 Fireworks script by kurt.grigg@virgin.net
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();
// -->
</script>
<!-- End of Fireworks -->

paste it, inside your body tag.

for non overlay (Js extension)

IE browser compatible...

Code:

<!--  IE4+, NS4+, NS6 Fireworks script by kurt.grigg@virgin.net
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();

credits:
-Flint
-Jsmade easy

:thumbsup: :thumbsup:

preview here --- CLICK EM

Last edited by ---xXirukiTepe--- (2008-06-13 05:41:36)

#2  2008-06-04 14:32:41

Chiny.12
 ARGENiNE. :*
Chiny.12's display avatar
» FriendsterFreak
wth?
Location: another planet.
Registered: 2007-06-04
Posts: 1758
Last visit: 2009-04-24
Reputation: 61
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

i think you on the wrong section dude. Better post 'em in Trick and Tutorials Section. anyway, tnx for sharing. kewl trick.




toinksss.

#3  2008-06-05 06:07:50

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFriendster
Anadipsic en Sarcophilous
Location: KARAKURA TOWN
Registered: 2007-11-01
Posts: 10881
Last visit: Today
Reputation: 1302
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

^ Nah.....

its just a copy/paste add on Script... for
overlay Users...

Anyway, Thanks sis

#4  2008-06-05 06:13:06

ewenessgALLore
 ako eto jekarOHseben!
ewenessgALLore's display avatar
» FriendsterFreak
;]
Registered: 2007-11-17
Posts: 1713
Last visit: 2009-06-26
Reputation: 43
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

^nice overlay add on huh!?

`i'll use this one.. :lol:

#5  2008-06-05 07:42:31

dienasty099
 dienasty099
dienasty099's display avatar
» FriendsterTalker
`~`†zèr؆`~`
Barkada Trip
Location: kht saan
Registered: 2008-04-08
Posts: 213
Last visit: 2009-03-08
Reputation: 2
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

nice one...ill apply this one...looks good on overlays...hehehe


#6  2008-06-05 09:08:30

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFriendster
Anadipsic en Sarcophilous
Location: KARAKURA TOWN
Registered: 2007-11-01
Posts: 10881
Last visit: Today
Reputation: 1302
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

Thanks... for appreciating my thread. XD

#7  2008-06-05 09:17:41

nia_pearl19
 Ms. Tяanςferε&&hellip;
nia_pearl19's display avatar
» FriendsterWhiz
that's what u THINK!
Maingay na Kasambahay!!
Location: Philippines
Registered: 2008-04-05
Posts: 3178
Last visit: 2009-06-20
Reputation: 177
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

nice tricks.....,
btw can u help me make an overlay layout?.....
pls? :arrow:




GUYZ!!!...
Join mga …
..MAINGAY NA KASAMBAHAY..,
< -- Samahan nio ang mga taong madadaldal!
Be one of the pioneers...^^

#8  2008-06-05 09:50:03

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFriendster
Anadipsic en Sarcophilous
Location: KARAKURA TOWN
Registered: 2007-11-01
Posts: 10881
Last visit: Today
Reputation: 1302
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

^

thanks. Err...
ot: >> making an overlay, is a work, with full effort.
>> You can get some premade overlays... around...
Or, try the non-overlay w/ tweaks.

#9  2008-06-05 13:41:28

Lordheinz
 Heinz R.Fangonil
» Banned
^ trashed
Registered: 2007-06-26
Posts: 5178
Last visit: 2008-09-11
Reputation: 242

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

:arrow: moved from add ons section...


Thank you so much FRIENDSTERTALK...

#10  2008-06-11 18:48:49

christiandelacruz
christiandelacruz's display avatar
» FriendsterTalker
~.Prayer is the Anwers.~
Location: Massachussette USA
Registered: 2008-02-10
Posts: 101
Last visit: 2009-03-08
Reputation: -3
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

hoping someday, somebody can make this kind of effect to make our profile beautiful..

#11  2008-06-12 12:22:01

ErgeCastro
 Erjune Castro
» FriendsterNewbie
Dream Catch Me
Location: Somewhere
Registered: 2008-05-20
Posts: 36
Last visit: 2008-07-01
Reputation: ~

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

Is there a way that this can be applied on Javascript?


#12  2008-06-12 13:27:09

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFriendster
Anadipsic en Sarcophilous
Location: KARAKURA TOWN
Registered: 2007-11-01
Posts: 10881
Last visit: Today
Reputation: 1302
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

you try to remove
the script tag...
Just a trial.
Not sure ov that. Cause its for
the body tag.

=|

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();

#13  2008-06-13 03:05:33

flint_hydz
 The Empire will fall :(
flint_hydz's display avatar
» FriendsterGeek
Je L'Aime autant de :(
Alien Society
Location: The Vow City
Registered: 2007-06-23
Posts: 1371
Reputation: 65
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

yes it can..

just remove this part..

<script language="JavaScript">
and
</script>

it won't work using FF.. i know, i tried.. :lol:

#14  2008-06-13 03:55:31

CoWoCuPu
 MarKdAzNkidd
» Promoter
Registered: 2008-04-01
Posts: 4431
Reputation: 237

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

rofl...

dis is amazing man.....

cool!! ;):thumbsup:

#15  2008-06-13 09:36:02

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFriendster
Anadipsic en Sarcophilous
Location: KARAKURA TOWN
Registered: 2007-11-01
Posts: 10881
Last visit: Today
Reputation: 1302
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

^Thanks dude. But Am not a bro. Lol.

thanks flint.. for info..
Credits for yah! yey~

#16  2008-06-13 10:06:46

vincentcvm123
vincentcvm123's display avatar
» FriendsterNewbie
Registered: 2008-06-13
Posts: 56
Last visit: 2008-06-13
Reputation: ~

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

i love this trick..
thanks for sharing..


Siggy Under Construction

#17  2008-06-13 13:48:04

flint_hydz
 The Empire will fall :(
flint_hydz's display avatar
» FriendsterGeek
Je L'Aime autant de :(
Alien Society
Location: The Vow City
Registered: 2007-06-23
Posts: 1371
Reputation: 65
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

---xXirukiTepe--- wrote:

^Thanks dude. But Am not a bro. Lol.

thanks flint.. for info..
Credits for yah! yey~

whoa.. don't give credits to me coz I'm not the one who made the script..

hmm.. thx for the repu.. :wow:

#18  2008-06-14 03:18:54

faivan
 angel
faivan's display avatar
» Cursed Member
^.^
Location: durian city
Registered: 2008-05-29
Posts: 75
Last visit: 2008-06-21
Reputation: ~
???

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

tnx for sharing.. ^_^

#19  2008-06-16 09:27:45

---xXirukiTepe---
---xXirukiTepe---'s display avatar
» SuperFriendster
Anadipsic en Sarcophilous
Location: KARAKURA TOWN
Registered: 2007-11-01
Posts: 10881
Last visit: Today
Reputation: 1302
Friendster

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

flint_hydz wrote:

whoa.. don't give credits to me coz I'm not the one who made the script..

hmm.. thx for the repu..

Lol. its ok. welcome... =)

#20  2008-09-22 07:50:55

mistahchiq
» FriendsterNewbie
Registered: 2008-09-22
Posts: 1
Last visit: 2008-09-23
Reputation: ~

Re: Fireworks trick (4 overlay & non overlay) --UPDATED!

---xXirukiTepe--- wrote:

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'

whre shud i post this code ? :D:D

  • JavaScript
  •  » Fireworks trick (4 overlay & non overlay) --UPDATED!

Search Friendstertalk

Board footer

FriendsterTalk is not affiliated with Friendster.com
© 2002–2009 PunBB

[ 8 queries - 0.063 second ]
Powered by SyntheticNetwork

FriendsterTalk.com x

Welcome to FriendsterTalk! You'll need to login in order to fully use all the features and view all the sections of this site.

Please register if you're not yet a member. =)