მთავარი » 2012 » იანვარი » 4 » ფეიერვერკი საიტზე
23:45
ფეიერვერკი საიტზე
ამ სკრიპტის დაყენების შემდეგ,საიტზე ფეირევერკი გამოჩნდება

Code
ns=(document.layers)?1:0;  
amount=50;  
if (ns){  
for (i=0; i < amount; i++)  
document.write("");  
}  
else{  
document.write("");  
document.write("");  
for (i=0; i < amount; i++)  
document.write("");  
document.write("");  
}  
Clrs=new Array('ff0000','00ff00','ffffff','ff00ff','ffa500','ffff00','00ff00','ffffff','ff00ff')  
sClrs=new Array('ffa500','00ff00','FFAAFF','fff000','fffffF')  
Xpos=800;  
Ypos=700;  
initialStarColor='00ff00';  
step=10;  
currStep=0;  
explosionSize=500;  
function Fireworks(){  
var WinHeight=(document.layers)?window.innerHeight-100:window.document.body.clientHei ght-100;  
var WinWidth=(document.layers)?window.innerWidth-100:window.document.body.clientWidth -100;  
var Yscroll=(document.layers)?window.pageYOffset:document.body.scrollTop;  
for (i=0; i < amount; i++){  
var layer=(document.layers)?document.layers["nsstars"+i]:iestars[i].style;  
var randCol=Math.round(Math.random()*16);  
var randSz=Math.round(Math.random()*4);  
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 220)  
{  
currStep=0;  
Ypos = 50+Math.round(Math.random()*WinHeight)+Yscroll;  
Xpos = 50+Math.round(Math.random()*WinWidth);  
for (i=0; i
კატეგორია: საიტის სკრიფტები | ნანახია: 691 | დაამატა: OnlyME | რეიტინგი: 0.0/0
სულ კომენტარები: 0
კომენტარის დამატება შეუძლიათ მხოლოდ დარეგისტრირებულ მომხმარებლებს
[ რეგისტრაცია | შესვლა ]