Forum www.forum.fora.pl Strona Główna

www.forum.fora.pl
Nieoficjalne forum pomocy serwisu fora.pl
 

Gwiazdki zamiast sniegu...
Idź do strony 1, 2  Następny
 
Napisz nowy temat   Odpowiedz do tematu    Forum www.forum.fora.pl Strona Główna -> Pomoc i pytania
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
..::GoNzO::..
Nowicjusz
Nowicjusz



Dołączył: 15 Gru 2005
Posty: 37
Przeczytał: 0 tematów

Ostrzeżeń: 0/5
Skąd: Królewskie Miasto Kraków

PostWysłany: Sob 1:26, 17 Gru 2005    Temat postu: Gwiazdki zamiast sniegu...

Witam wszytskich. Mam prośbe: czy ktoś ma zrobiony obrazek gwiazdki który mógłby spadac na forum zamiast sniegu? chodzi mi o sam obrazek(bez tła) wilkoście płatków śniegu. Bo jak bede miałobrazek to sobie juz tak zmienie skrypta ze bedą padały gwiadki a nia platki sniegu:P tylko ze nie wychodzi mi obrazek gwiazdki:) I jeszzce jedno jak koś chce skrypty na fajerwerki itd to pisac;)

Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
maro
Nowicjusz
Nowicjusz



Dołączył: 16 Gru 2005
Posty: 38
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

PostWysłany: Sob 10:11, 17 Gru 2005    Temat postu:

dawej te fajerwerki :)sylwester sie zblirza!! to fjerwerki sie przydadzą,ja niestety nie mam tego obrazka Mad z gwiazka Neutral

Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Martyn@
Nowicjusz
Nowicjusz



Dołączył: 03 Gru 2005
Posty: 35
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

PostWysłany: Sob 11:02, 17 Gru 2005    Temat postu: Re: Gwiazdki zamiast sniegu...

ja chce skrypta na fajerwerki

Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Cannibals
Wymiatacz
Wymiatacz



Dołączył: 05 Gru 2005
Posty: 539
Przeczytał: 0 tematów

Ostrzeżeń: 5/5
Skąd: Daleko :)

PostWysłany: Sob 11:09, 17 Gru 2005    Temat postu:

Ludzie wejdxcie w temat Słownik Skryptów.
Tam znajdziecie duzo skryptów i na snieg i na fajerwerki i na inne pierdoły Shocked


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
szybki
Wymiatacz
Wymiatacz



Dołączył: 17 Lis 2005
Posty: 565
Przeczytał: 0 tematów

Pomógł: 2 razy
Ostrzeżeń: 5/5

PostWysłany: Sob 12:05, 17 Gru 2005    Temat postu:

Jeżeli masz skrypt to mogę go zmodyfikować żeby nie leciał śnieg tylko gwazdki. Do tego potrzebuje tylko skryptu.

Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
KrisKSD
Taki se gostek
Taki se gostek



Dołączył: 10 Gru 2005
Posty: 7
Przeczytał: 0 tematów

Ostrzeżeń: 5/5
Skąd: Grodzisk Wlkp.

PostWysłany: Sob 12:23, 17 Gru 2005    Temat postu:

mnie sie wydaje ze wszystko trzeba zebrać po tu co dzień jest kilka tych samych teamtów bo wiara na nic nie patrzy tylko nowy temamt i koniec
zapraszam tych co nie wiedzą jak zrobić śnieg czy tam inne bajery [link widoczny dla zalogowanych] tam wszystko znajdziecie



[img][http://img222.imageshack.us/img222/6615/baner2dr.png/img]


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
..::GoNzO::..
Nowicjusz
Nowicjusz



Dołączył: 15 Gru 2005
Posty: 37
Przeczytał: 0 tematów

Ostrzeżeń: 0/5
Skąd: Królewskie Miasto Kraków

PostWysłany: Sob 12:33, 17 Gru 2005    Temat postu:

Tu macie na fajerwerki jak sie komus nie chce szukac w googlach:

<style type="text/css">

body { overflow: hidden; }

v\ { behavior: url(#default#VML); }

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



colors = new Array();



// Define your own color combinations

colors[0] = new Array('yellow', 'lime');

colors[1] = new Array('silver', 'green')

colors[2] = new Array('silver', 'blue');

colors[3] = new Array('silver', 'purple');

colors[4] = new Array('purple', 'white');

colors[5] = new Array('blue', 'silver');

colors[6] = new Array('red', 'fuchsia');

colors[7] = new Array('yellow', 'red');



// Define the maximum number of fire arrows

maximum = 1000;



vmlobj='';

for(i = 0; i < 12; i++){

vmlobj += '<div id="ster'+i+'" style="position:absolute; left:-50px; top-50px; visibility:hidden; z-index:50;">';

vmlobj += '<v:shape style="width:15px; height:15px;" fillcolor="yellow" coordorigin="0,0" coordsize="200 200">';

vmlobj += '<v:path v="m 8,65 l 72,65, 92,11, 112,65, 174,65, 122,100, 142,155,92,121, 42,155, 60,100 x e"/>';

vmlobj += '<v:stroke on="false" /></v:shape></div>';

}

document.write(vmlobj); vmlobj = null;



aantal = 0;



function begin()

{

try {

if(aantal == maximum){ return;}

kleurschema = Math.floor(Math.random() * colors.length);

posLinks = Math.floor(Math.random() * (document.body.clientWidth - 180));

posLinks = (posLinks < 170)? 170: posLinks;

posBoven = Math.floor(Math.random() * (document.body.clientHeight - 180));

posBoven = (posBoven < 170)? 170: posBoven;

straal = 0; uiteen = true; teller = 1; flikkereffect = false;

for(var i = 0; i < 12; i++){

document.getElementsByTagName('shape')[i].setAttribute('fillcolor', colors[kleurschema][0]);

document.getElementById('ster'+i).style.visibility = 'hidden'; // 5.0 fix

document.getElementById('ster'+i).style.left = posLinks;

document.getElementById('ster'+i).style.top = posBoven;

}

document.getElementById('ster0').style.top = (document.body.clientHeight - 20);

document.getElementById('ster0').style.visibility = 'visible';

omhoog();

} catch(e){}

}



function omhoog()

{

try {

positie = parseInt(document.getElementById('ster0').style.top);

if(positie > posBoven){

document.getElementById('ster0').style.top = (positie - 25);

setTimeout('omhoog()', 50);

} else {

for(i = 1; i < 12; i++){

document.getElementById('ster'+i).style.top = positie;

document.getElementById('ster'+i).style.visibility = 'visible';

}

uiteenspatten();

}

} catch(e){}

}



function uiteenspatten()

{

try {

if(straal > 120 && straal % 10 == 0){

flikkereffect = true;

teller = (teller == colors[kleurschema].length)? 0: (teller+1);

}

for(var i = 0; i < 12; i++){

var hoek = i * 30;

var piHoek = Math.PI - Math.PI / 180 * hoek;

var links = posLinks + Math.round(straal * Math.sin(piHoek));

var boven = positie + Math.round(straal * Math.cos(piHoek));

document.getElementById('ster'+i).style.left = links;

document.getElementById('ster'+i).style.top = boven;

if(flikkereffect){

document.getElementsByTagName('shape')[i].setAttribute('fillcolor', colors[kleurschema][teller]);

}

}

if(straal < 160 && uiteen){

straal += (straal < 120)? 10: 5;

setTimeout('uiteenspatten()', 50);

}

else if(straal > 120){

uiteen = false; straal -= 5;

setTimeout('uiteenspatten()', 50);

}

else if(straal <= 120){

for(var i = 0; i < 12; i++){

document.getElementById('ster'+i).style.visibility = 'hidden';

}

aantal++;

setTimeout('begin()', 500);

}

} catch(e) {}

}



window.onload=begin;



</script>

A tutaj na fajerwerki przy kursorze:

<script>
var xLayerNo=0;



function xLayer(xHtml, x, y, w)

{

if(x==null)x=0;

if(y==null)y=0;

if(w==null)w=100;



if(document.layers)

{

this.layer=new Layer(w);

this.layer.document.open();

this.layer.document.write(xHtml);

this.layer.document.close();

this.layer.moveTo(x,y);

this.images=this.layer.document.images;

/*** These used to be prototypes (like IE ) but when NS (communicator) 4.7 ***/

/*** first loads up, for some reason the prototypes do not get assigned ***/

this.moveTo = function(x,y) { this.layer.moveTo(x,y); }

this.moveBy = function(x,y) { this.layer.moveBy(x,y); }

this.show = function() { this.layer.visibility = "show"; }

this.hide = function() { this.layer.visibility = "hide"; }

this.setzIndex = function(z) { this.layer.zIndex = z; }

this.setBgColor = function(color) { this.layer.bgColor = color; }

this.setBgImage = function(image) { this.layer.background.src = image; }

this.getX = function() { return this.layer.left; }

this.getY = function() { return this.layer.right; }

this.getWidth = function() { return this.layer.width; }

this.getHeight = function() { return this.layer.height; }

this.getStackingOrder = function() { return this.layer.zIndex; }

this.isVisible = function() { return this.layer.visibility == "show"; }

this.setContent = function(xHtml)

{

this.layer.document.open();

this.layer.document.write(xHtml);

this.layer.document.close();

}

this.clip = function(x1,y1, x2,y2)

{

this.layer.clip.top =y1;

this.layer.clip.left =x1;

this.layer.clip.bottom =y2;

this.layer.clip.right =x2;

}



}

else

if(document.all)

{

var xName="xLayer" + xLayerNo++;



txt = "<DIV ID='" + xName

+ "' STYLE=\"position:absolute;"

+ "left:" + x + ";"

+ "top:" + y + ";"

+ "width:" + w + ";"

+ "visibility:hidden\">"

+ xHtml

+ "</DIV>";

document.body.insertAdjacentHTML("BeforeEnd",txt);

this.content = document.all[xName];

this.layer = document.all[xName].style;

this.images = document.images;

}

return(this);

}



if(document.layers)

{

/**** START prototypes for NS ***/

/*** END NS ***/

}

else

if(document.all)

{

/*** START prototypes for IE ***/

xLayer.prototype.moveTo = function(x,y)

{

this.layer.pixelLeft = x;

this.layer.pixelTop = y;

}

xLayer.prototype.moveBy = function(x,y)

{

this.layer.pixelLeft += x;

this.layer.pixelTop += y;

}

xLayer.prototype.show = function() { this.layer.visibility = "visible"; }

xLayer.prototype.hide = function() { this.layer.visibility = "hidden"; }

xLayer.prototype.setzIndex = function(z) { this.layer.zIndex = z; }

xLayer.prototype.setBgColor = function(color) { this.layer.backgroundColor = color; }

xLayer.prototype.setBgImage = function(image) { this.layer.backgroundImage = image; }

xLayer.prototype.setContent = function(xHtml) { this.content.innerHTML=xHtml; }

xLayer.prototype.getX = function() { return this.layer.pixelLeft; }

xLayer.prototype.getY = function() { return this.layer.pixelRight; }

xLayer.prototype.getWidth = function() { return this.layer.pixelWidth; }

xLayer.prototype.getHeight = function() { return this.layer.pixelHeight; }

xLayer.prototype.getStackingOrder = function() { return this.layer.zIndex; }

xLayer.prototype.isVisible = function() { return this.layer.visibility == "visible"; }

xLayer.prototype.clip = function(x1,y1, x2,y2)

{

this.layer.clip="rect("+y1+" "+x2+" "+y2+" "+x1+")";

this.layer.pixelWidth=x2;

this.layer.pixelHeight=y2;

this.layer.overflow="hidden";

}

/*** END IE ***/

}

else

{

xLayer.prototype.moveTo = function(x,y) { }

xLayer.prototype.moveBy = function(x,y) { }

xLayer.prototype.show = function() { }

xLayer.prototype.hide = function() { }

xLayer.prototype.setStackingOrder = function(z) { }

xLayer.prototype.setBgColor = function(color) { }

xLayer.prototype.setBgImage = function(image) { }

xLayer.prototype.getX = function() { return 0; }

xLayer.prototype.getY = function() { return 0; }

xLayer.prototype.getWidth = function() { return 0; }

xLayer.prototype.getHeight = function() { return 0; }

xLayer.prototype.getStackingOrder = function() { return 0; }

xLayer.prototype.isVisible = function() { return false; }

xlayer.prototype.setContent = function(xHtml) { }



}

/*** End - xLayer - a cross browser layer object by [link widoczny dla zalogowanych] ***/



var theTimer=null;

var mouseX = 100;

var mouseY = 100;



var oneDeg=(2*Math.PI)/360;



/*** Pinwheel type 1 ***/

var Radius = 5;

var NumStars=32;

var NumSteps=16;

var StepAngle=(25)*oneDeg;



/*** Pinwheel type 2 ***/

//var Radius = 10;

//var NumStars=16;

//var NumSteps=8;

//var StepAngle=(22.5)*oneDeg;



/*** Pinwheel type 3 ***/

//var Radius = 5;

//var NumStars=16;

//var NumSteps=16;

//var StepAngle=(22.5)*oneDeg;



/*** Pinwheel type 4 ***/

//var Radius = 10;

//var NumStars=32;

//var NumSteps=16;

//var StepAngle=(11.25)*oneDeg;



var StarObject=new Array();



var hexDigit=new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");

function dec2hex(dec)

{

return(hexDigit[dec>>4]+hexDigit[dec&15]);

}

function hex2dec(hex)

{

return(parseInt(hex,16))

}



function CreateStar()

{



this.layer = new xLayer(" ", 100, 100, 10);

this.currAngle = 0;

this.step = 0;

this.x = 100;

this.y = 100;

return (this);

}



function restart()

{

for(i=0;i<NumStars;i++)

{

StarObject[i].currAngle = (StepAngle*i);

StarObject[i].step = (i%NumSteps);

StarObject[i].x = mouseX;

StarObject[i].y = mouseY;

StarObject[i].layer.moveTo(mouseX, mouseY);

StarObject[i].layer.show();

}

}

/*** Choose a random pinwheel configuration ***/

function next_random()

{

var num=Math.floor(Math.random()*4);



for(i=0;i<NumStars;i++)

StarObject[i].layer.hide();



if(num==0){

Radius = 5;

NumStars=32;

NumSteps=16;

StepAngle=(25)*oneDeg;

}

else

if(num==1){

Radius = 10;

NumStars=16;

NumSteps=8;

StepAngle=(22.5)*oneDeg;

}

else

if(num==2){

Radius = 5;

NumStars=16;

NumSteps=16;

StepAngle=(22.5)*oneDeg;

}

else{

Radius = 10;

NumStars=32;

NumSteps=16;

StepAngle=(11.25)*oneDeg;

}





for(i=0 ; i<NumStars; i++)

{

var s=StarObject[i];

s.currAngle = (StepAngle*i);

s.step = (i%NumSteps);

s.x=mouseX;

s.y=mouseY;

}



restart();



theTimer=setTimeout("next_random()", 10000);

}

function start()

{

if (document.all)

document.onmousemove = IE_MouseMove;



if (document.layers) {

window.captureEvents(Event.MOUSEMOVE);

window.onmousemove = NS_MouseMove;

}



for(i=0 ; i<NumStars; i++)

{

StarObject[i]=new CreateStar();

StarObject[i].currAngle = (StepAngle*i);

StarObject[i].step = (i%NumSteps);

StarObject[i].layer.clip(0,0,2,2);

StarObject[i].layer.setBgColor("red");

}



for(i=0 ; i<NumStars ; i++)

StarObject[i].layer.show();



/*** Remove this if you only 1 type of pinwheel ***/

theTimer=setTimeout("next_random()", 10000);



Rotate();

}



function changeColour(s)

{

var colour="";



r2= Math.floor(Math.random()*2)*255;

g2= Math.floor(Math.random()*2)*255;

b2= Math.floor(Math.random()*2)*255;



if(r2==0 && g2==0 && b2==0)

r2=255;



colour = "#" + dec2hex(r2) + dec2hex(g2) + dec2hex(b2);

s.layer.setBgColor(colour);



s.x=mouseX;

s.y=mouseY;

}

function Rotate()

{

var x;

var y;

for (i = 0 ; i < NumStars ; i++ ) {

var s=StarObject[i];



if(s.step==0)

changeColour(s);



var angle = s.currAngle;

var rad = s.step*Radius + 10;

x = s.x + rad*Math.cos(angle);

y = s.y + rad*Math.sin(angle);



s.layer.moveTo(x,y);



s.step = (s.step+1)%NumSteps;

}



setTimeout("Rotate()", 30);

}





function IE_MouseMove()

{

mouseX = document.body.scrollLeft+event.x;

mouseY = document.body.scrollTop+event.y;

}

function NS_MouseMove(evnt) {

mouseX = evnt.pageX;

mouseY = evnt.pageY;

}



function handle_resize()

{

if(document.layers)

start();

}



window.onresize=handle_resize;

window.onload=start;
</script>


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
..::GoNzO::..
Nowicjusz
Nowicjusz



Dołączył: 15 Gru 2005
Posty: 37
Przeczytał: 0 tematów

Ostrzeżeń: 0/5
Skąd: Królewskie Miasto Kraków

PostWysłany: Sob 12:36, 17 Gru 2005    Temat postu:


szybki napisał:
Jeżeli masz skrypt to mogę go zmodyfikować żeby nie leciał śnieg tylko gwazdki. Do tego potrzebuje tylko skryptu.


Zmodyfikowac skrypt żeby nie leciał śnieg tylko gwiazdki to ja też potrafie. Mi chodzi tylko i wyłacznie o obrazek gwiazdki. Nie mam programu żeby zrobić gwiazdkę bezs tła. A jak leci gwiazdka w kwadracie to to paskudnie wygląda. Twisted Evil


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
..::GoNzO::..
Nowicjusz
Nowicjusz



Dołączył: 15 Gru 2005
Posty: 37
Przeczytał: 0 tematów

Ostrzeżeń: 0/5
Skąd: Królewskie Miasto Kraków

PostWysłany: Sob 18:39, 17 Gru 2005    Temat postu:

Dobra gwiadzki juz sobie sam zrobiłęm nawet zarabiscie wyszłySmile jak ktos chce srypt to do tematu ze skryptami:) Podsumowując prosze o zamknięcie tematu:)

Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Febe12
Amator postów
Amator postów



Dołączył: 18 Gru 2005
Posty: 41
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

PostWysłany: Nie 14:20, 18 Gru 2005    Temat postu:

Możecie podaj kod na gwiazdki Confused Bo chciała bym dodać je na swoej forum o Harrym Potterze Smile

Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
MIMIsimka
Taki se gostek
Taki se gostek



Dołączył: 25 Wrz 2005
Posty: 17
Przeczytał: 0 tematów

Ostrzeżeń: 1/5
Skąd: warsztat

PostWysłany: Nie 15:06, 18 Gru 2005    Temat postu: 2 pytania

1.Podajcie kod na śnieg:-)
2.Gdzie się wkleja te kody??? Sad


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
..::GoNzO::..
Nowicjusz
Nowicjusz



Dołączył: 15 Gru 2005
Posty: 37
Przeczytał: 0 tematów

Ostrzeżeń: 0/5
Skąd: Królewskie Miasto Kraków

PostWysłany: Nie 20:26, 18 Gru 2005    Temat postu:

KOD NA GWIAZDKI:


Kod:
<script type="text/javascript">

/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/

//Configure below to change URL path to the snow image
var snowsrc="http://img223.imageshack.us/img223/5571/gwiazdkakolejna5oo.gif"
// Configure below to change number of snow to render
var no = 10;
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "pageheight";

///////////Stop Config//////////////////////////////////

var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;

if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}
}
}

function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}

function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}


if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}

</script>



KOD NA ŚNIEG BYŁ JUZ PODAWANY CHYBA 1000000 razy ale wkleje go jeszcze raz:


Kod:
<script type="text/javascript">

/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/

//Configure below to change URL path to the snow image
var snowsrc="http://img506.imageshack.us/img506/4899/snieg5cg.gif"
// Configure below to change number of snow to render
var no = 10;
// Configure whether snow should disappear after x seconds (0=never):
var hidesnowtime = 0;
// Configure how much snow should drop down before fading ("windowheight" or "pageheight")
var snowdistance = "pageheight";

///////////Stop Config//////////////////////////////////

var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 600;

if (ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = iecompattest().clientWidth;
doc_height = iecompattest().clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ie4up||ns6up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
}
}
}

function snowIE_NS6() { // IE and NS6 main animation function
doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] += sty[i];
if (yp[i] > doc_height-50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = 0;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
}
dx[i] += stx[i];
document.getElementById("dot"+i).style.top=yp[i]+"px";
document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";
}
snowtimer=setTimeout("snowIE_NS6()", 10);
}

function hidesnow(){
if (window.snowtimer) clearTimeout(snowtimer)
for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
}


if (ie4up||ns6up){
snowIE_NS6();
if (hidesnowtime>0)
setTimeout("hidesnow()", hidesnowtime*1000)
}

</script>


A gdzie sie to wkleja?
Panel Administracyjny Arrow Fora Arrow Zarządzaj Arrow Nowe forum w byle jakiej kategorii Arrow opis forum


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Febe12
Amator postów
Amator postów



Dołączył: 18 Gru 2005
Posty: 41
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

PostWysłany: Nie 20:29, 18 Gru 2005    Temat postu:

Bardzo ci dziękuje za kod na gwiazdki Smile

Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
umbridge
Taki se gostek
Taki se gostek



Dołączył: 17 Gru 2005
Posty: 10
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

PostWysłany: Nie 20:35, 18 Gru 2005    Temat postu:

musi byc nowe forum? bo cos mi nie wychodzi w starszym...


wlasnie moze to jest spowodowane tym ze juz mam skrypt na te spadajace drzewka...odpowiedzcie prosze.... czy to moze byc moj problem....


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Martyn@
Nowicjusz
Nowicjusz



Dołączył: 03 Gru 2005
Posty: 35
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

PostWysłany: Nie 20:51, 18 Gru 2005    Temat postu:

a ja jeszcze ponudze apropo tego skryptu na snieg czy moglby ktos zrobic zeby lecialo wiecej platlow tego sniegu
bardzo prosze Rolling Eyes


Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Wyświetl posty z ostatnich:   
Napisz nowy temat   Odpowiedz do tematu    Forum www.forum.fora.pl Strona Główna -> Pomoc i pytania Wszystkie czasy w strefie EET (Europa)
Idź do strony 1, 2  Następny
Strona 1 z 2

 
Skocz do:  
Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach


fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2005 phpBB Group
deoxGreen v1.2 // Theme created by Sopel stylerbb.net & programosy.pl

Regulamin