FIREWORKS

Go down

FIREWORKS Empty FIREWORKS

Post by Glad E Olah on Thu Jan 01 2009, 00:57

Could someone give me the information to place fireworks on the index page like the falling snow?


Thank you.


Would like to place the fireworks there immediately please.
Glad E Olah
Glad E Olah
Forumember

Female Posts : 216
Reputation : -1
Language : English
Location : MO USA

http://shoutaroundtheworld.forumotion.com/index.htm

Back to top Go down

FIREWORKS Empty Re: FIREWORKS

Post by Gunhack X on Thu Jan 01 2009, 01:05

Here it is:

Code:
<script language="Javascript1.2">

/*
Document firework script (By Kurt Gregg, kurt.grigg@virgin.net)
*/

var ns=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

amount=14;
if (ns){
for (i=0; i < amount; i++)
document.write("<LAYER NAME='nsstars"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,1,1'></LAYER>");
}
else if (ie4||ns6){
document.write("<div id='ieCov' style='position:absolute;top:0px;left:0px'>");
document.write("<div style='position:relative'>");
for (i=0; i < amount; i++)
document.write("<div id='iestars"+i+"' style='position:absolute;top:0px;left:0px;width:1;height:1;background:#ffffff;font-size:1;z-index:10'></div>");
document.write("</div></div>");
}
Clrs=new Array('ff0000','00ff00','ffffff','ff00ff','ffa500','ffff00','00ff00','ffffff','ff00ff')
sClrs=new Array('ffa500','00ff00','FFAAFF','fff000','fffffF')
Xpos=300;
Ypos=150;
initialStarColor='00ff00';
step=5;
currStep=0;
explosionSize=120;
function Fireworks(){
var WinHeight=(ns||ns6)?window.innerHeight-100:window.document.body.clientHeight-100;
var WinWidth=(ns||ns6)?window.innerWidth-100:window.document.body.clientWidth-100;
var Yscroll=(ns||ns6)?window.pageYOffset:document.body.scrollTop;
for (i=0; i < amount; i++){
if (ie4||ns6)
var layer=ns6?document.getElementById("iestars"+i).style : eval("iestars"+i).style;
else if (ns)
var layer=document.layers["nsstars"+i]
var randCol=Math.round(Math.random()*8);
var randSz=Math.round(Math.random()*2);
layer.top = Ypos + explosionSize*Math.sin((currStep+i*5)/3)*Math.sin(currStep/100)
layer.left= Xpos + explosionSize*Math.cos((currStep+i*5)/3)*Math.sin(currStep/100)
if (currStep < 110){
 if (ns){layer.bgColor=initialStarColor;layer.clip.width=1;layer.clip.height=1}
 else{layer.background=initialStarColor;layer.width=1;layer.height=1;layer.fontSize=1}
 }
else{
 if (ns){layer.bgColor=Clrs[randCol];layer.clip.width=randSz;layer.clip.height=randSz}
 else{layer.background=Clrs[randCol];layer.width=randSz;layer.height=randSz;layer.fontSize=randSz}
 }
}
if (currStep > 220)
{
 currStep=0;
 Ypos = 50+Math.round(Math.random()*WinHeight)+Yscroll;
 Xpos = 50+Math.round(Math.random()*WinWidth);
 for (i=0; i < sClrs.length; i++)
  {
  var newIcol=Math.round(Math.random()*i);
  }
initialStarColor=sClrs[newIcol];
explosionSize=Math.round(80*Math.random()+100);
}
currStep+=step;
setTimeout("Fireworks()",20);
}
Fireworks();
// -->
</script>
Gunhack X
Gunhack X
Forumember

Male Posts : 479
Reputation : 14
Language : English, Español
Location : USA

http://windows.topgoo.net

Back to top Go down

FIREWORKS Empty Re: FIREWORKS

Post by ps2sdvr on Thu Jan 01 2009, 01:31

where do u place that code?
ps2sdvr
ps2sdvr
Forumember

Male Posts : 28
Reputation : 0
Language : English
Location : NYC

http://unlimited-media.n-stars.org/index.htm

Back to top Go down

FIREWORKS Empty Re: FIREWORKS

Post by Glad E Olah on Thu Jan 01 2009, 01:57

I want to place it on my index page instead of snow falling....I am going to go and try it.


Thanks for the help!
Glad E Olah
Glad E Olah
Forumember

Female Posts : 216
Reputation : -1
Language : English
Location : MO USA

http://shoutaroundtheworld.forumotion.com/index.htm

Back to top Go down

FIREWORKS Empty Re: FIREWORKS

Post by Glad E Olah on Thu Jan 01 2009, 02:11

Not exactly what I am looking for but will leave it for now. I appreciate your information.
Glad E Olah
Glad E Olah
Forumember

Female Posts : 216
Reputation : -1
Language : English
Location : MO USA

http://shoutaroundtheworld.forumotion.com/index.htm

Back to top Go down

FIREWORKS Empty Re: FIREWORKS

Post by metram on Thu Jan 01 2009, 05:00

yeah where do you put the code? I don't get it in the Admin panel?
metram
metram
Forumember

Posts : 46
Reputation : 0
Language : bulgarian

Back to top Go down

FIREWORKS Empty Re: FIREWORKS

Post by Gunhack X on Thu Jan 01 2009, 06:42

Sorry, but it was only what I found on the Internet.

You add this code in the templates (New_header) or in the Homepage message.
Gunhack X
Gunhack X
Forumember

Male Posts : 479
Reputation : 14
Language : English, Español
Location : USA

http://windows.topgoo.net

Back to top Go down

FIREWORKS Empty Re: FIREWORKS

Post by Cihadpx68 on Fri Jan 02 2009, 15:30

I still dont know where to add this i wanna add this Smile
avatar
Cihadpx68
Forumember

Posts : 119
Reputation : 0
Language : Dutch

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum