Vlade' <3 Membru Activ
Numarul mesajelor : 715 Data nasterii : 09/12/1994 Data de inscriere : 21/07/2009 Varsta : 29 Localizare : Undeva pe planeta albastra
| Subiect: Scripturi HTML Sam Noi 26, 2011 3:08 pm | |
| Va prezint cateva scripturi HTML
1.Auto increment copyright date - Cod:
-
<!--Simply copy and paste it where you wish it to appear.-->
<SCRIPT LANGUAGE="JavaScript"> <!--
//Visit http://rainbow.arch.scriptmania.com for this script //Change the beginning date (ie: 1997) and //copyright text (ie: Rainbow Arch) to your own.
today=new Date(); y0=today.getFullYear();
// end hiding ---> </SCRIPT>
<center>Copyright © 1997-<SCRIPT LANGUAGE="JavaScript"> <!--- Hide from old browsers document.write(y0); // end hiding ---> </SCRIPT> <a target=_top href="http://rainbow.arch.scriptmania.com">Rainbow Arch</a></center>
2.Magnetic Letters - Cod:
-
<!--Simply copy and paste between the <body> and </body> tags --> <!-- of your HTML where you want the text message to appear.-->
<SCRIPT>
// Distributed by http://rainbow.arch.scriptmania.com
var text=new Array() var textsplashcolors=new Array()
// Place your messages below. Add as many as you like! text[0]="Welcome to Rainbow Arch." text[1]="Another great javascript for your site ..." text[2]="Magnetic Letters gives a great effect for webpages." text[3]="Entertain your visitors with this script ..." text[4]="Grab the code below!."
// Change the letter colors here textsplashcolors[0]="#FFFF00" textsplashcolors[1]="#FF0000" textsplashcolors[2]="#00FF00" textsplashcolors[3]="#00FFFF" textsplashcolors[4]="#FF00FF" textsplashcolors[5]="#FFAA00" textsplashcolors[6]="#0088FF"
// Change the font var textfont="Arial"
// Change the font-size for IE4x/5x/6x and NS6x (CSS-standard) var textfontsize=18
// Change the font size for NS4x (HTML-standard) var textfontsizeHTML=4
// Change the pause between the messages (seconds) var textpause=3
// DO NOT EDIT BELOW THIS LINE
// CREDITS: // Letter Magnet // By Urs Dudli and Peter Gehrig // Copyright (c) 2002 Peter Gehrig and Urs Dudli. All rights reserved. // Permission given to use the script provided that this notice remains as is.
var textweight="bold" var textweightA="<b>" var textweightB="</b>" var textitalic="normal" var textitalicA="" var textitalicB="" var textalignabsolute="topleft" var letterwidth=new Array() var messagewidth=0 var messageheight=0 var i_colors=0 var letterspace=Math.floor(textfontsize/1.3) var timer var i_text=0 var textsplitted var i_textpath=0 var endpause=1 var endpausemilli=endpause*10 var maxtextlength=0 var i_endposition=0 var windowwidth=0 var windowheight=0 var windowwidthfactor=1 var windowheightfactor=1 var i_span=0 var startposmax_x=0 var startposmax_y=0 textpause*=1000 var x_step=new Array() var y_step=new Array() var x_finalpos=new Array() var y_finalpos=0 var max_loop=20 var i_loop=0
var ns4=document.layers?1:0 var ns6=document.getElementById&&!document.all?1:0 var ie=document.all?1:0
for (i=0;i<=text.length-1;i++) { if (text[i].length>=maxtextlength) {maxtextlength=text[i].length} } for (i=0;i<=text.length-1;i++) { text[i]=text[i]+" " }
var xpos=new Array() for (i=0;i<=maxtextlength;i++) { xpos[i]=5000 }
var ypos=new Array() for (i=0;i<=maxtextlength;i++) { ypos[i]=5000 }
function randomizer(range) { return Math.floor(range*Math.random()) }
function getpagesize() { if (ie) { windowheight=parseInt(document.body.clientHeight) windowwidth=parseInt(document.body.clientWidth) } if (ns4 || ns6) { windowheight=parseInt(window.innerHeight) windowwidth=parseInt(window.innerWidth) } startposmax_x=windowwidth-2*parseInt(textfontsize) startposmax_y=windowheight-2*parseInt(textfontsize)
changecontent() }
function changecontent() { messagewidth=0 var textsa=text[i_text] textsplitted=textsa.split("") if (ie) { for (i=0;i<=textsplitted.length-1;i++) { var thisspan=eval("document.all.span"+i) thisspan.innerHTML="<span style='font-family:"+textfont+";font-size:"+textfontsize+";font-style:"+textitalic+";font-weight:"+textweight+";color:"+textsplashcolors[i_colors]+";text-align:center'>"+textsplitted[i]+"</span>" i_colors++ if (i_colors>textsplashcolors.length-1) {i_colors=0} letterwidth[i]=Math.round(thisspan.offsetWidth*1.2) if (letterwidth[i]==0) {letterwidth[i]=parseInt(textfontsize)} messagewidth+=letterwidth[i] messageheight=Math.round(document.all.span0.offsetHeight) } } if (ns6) { for (i=0;i<=textsplitted.length-1;i++) { var thisspan=eval(document.getElementById('span'+i)) thisspan.innerHTML="<span style='font-family:"+textfont+";font-size:"+textfontsize+";font-style:"+textitalic+";font-weight:"+textweight+";color:"+textsplashcolors[i_colors]+"'>"+textsplitted[i]+"</span>" i_colors++ if (i_colors>textsplashcolors.length-1) {i_colors=0} letterwidth[i]=Math.round(parseInt(thisspan.offsetWidth)*1.2) if (letterwidth[i]==0) {letterwidth[i]=textfontsize} messagewidth+=letterwidth[i] messageheight=Math.round(document.getElementById('span0').offsetHeight) } } if (ns4) { for (i=0; i<textsplitted.length-1; i++) { var thisspan=eval("document.span"+i+".document") thisspan.write("<p><font size="+textfontsizeHTML+" color="+textsplashcolors[i_colors]+" face="+textfont+">"+textitalicA+textweightA+textsplitted[i]+textweightB+textitalicB+"</font></p>") thisspan.close() letterwidth[i]=Math.round(thisspan.width*1.2) if (letterwidth[i]==0) {letterwidth[i]=textfontsize} messagewidth+=letterwidth[i] messageheight=Math.round(document.span0.document.height) thisspan.clear() i_colors++ if (i_colors>textsplashcolors.length-1) {i_colors=0} } for (i=0; i<textsplitted.length-1; i++) { var thisspan=eval("document.span"+i) thisspan.visibility="show" } } i_text++ if (i_text>=text.length) {i_text=0} getfinalpos() }
function getfinalpos() { if (ie || ns6) {var padding_x=100}; if (ns4) {var padding_x=40}; if (ie || ns6) {var padding_y=80}; if (ns4) {var padding_y=40}; if (textalignabsolute=="middlecenter") { x_finalpos[0]=(windowwidth-messagewidth)/2 y_finalpos=(windowheight-messageheight)/2 } else if (textalignabsolute=="topleft") { x_finalpos[0]=5 y_finalpos=0 } else if (textalignabsolute=="topcenter") { x_finalpos[0]=(windowwidth-messagewidth)/2 y_finalpos=0 } else if (textalignabsolute=="topright") { x_finalpos[0]=windowwidth-messagewidth y_finalpos=0 } else if (textalignabsolute=="bottomleft") { x_finalpos[0]=5 y_finalpos=windowheight-messageheight } else if (textalignabsolute=="bottomcenter") { x_finalpos[0]=(windowwidth-messagewidth)/2 y_finalpos=windowheight-messageheight } else if (textalignabsolute=="bottomright") { x_finalpos[0]=windowwidth-messagewidth y_finalpos=windowheight-messageheight } for (i=1;i<textsplitted.length-1;i++) { x_finalpos[i]=x_finalpos[i-1]+letterwidth[i-1] } gotostartpos() }
function gotostartpos() { if (ie) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.all.span"+i+".style") thisspan.posLeft=randomizer(startposmax_x) thisspan.posTop=randomizer(startposmax_y) } } if (ns4) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.span"+i) thisspan.left=randomizer(startposmax_x) thisspan.top=randomizer(startposmax_y) } } if (ns6) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.getElementById('span'+i).style") thisspan.left=randomizer(startposmax_x) thisspan.top=randomizer(startposmax_y) } } gotostandstillpos() }
function gotostandstillpos() { if (ie) { if (i_loop<=max_loop-1) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.all.span"+i+".style") x_step[i]=(x_finalpos[i]-thisspan.posLeft)/(max_loop-i_loop) y_step[i]=(y_finalpos-thisspan.posTop)/(max_loop-i_loop) thisspan.posLeft+=x_step[i] thisspan.posTop+=y_step[i] } i_loop++ var timer=setTimeout("gotostandstillpos()",20) } else { i_loop=0 clearTimeout(timer) timer=setTimeout("gotoendpos()",textpause) } } if (ns4) { if (i_loop<=max_loop-1) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.span"+i) x_step[i]=(x_finalpos[i]-thisspan.left)/(max_loop-i_loop) y_step[i]=(y_finalpos-thisspan.top)/(max_loop-i_loop) thisspan.left+=x_step[i] thisspan.top+=y_step[i] } i_loop++ var timer=setTimeout("gotostandstillpos()",20) } else { i_loop=0 clearTimeout(timer) timer=setTimeout("gotoendpos()",textpause) } } if (ns6) { if (i_loop<=max_loop-1) { for (i=0;i<textsplitted.length-1;i++) { var thisspan=eval("document.getElementById('span'+i).style") x_step[i]=(x_finalpos[i]-parseInt(thisspan.left))/(max_loop-i_loop) y_step[i]=(y_finalpos-parseInt(thisspan.top))/(max_loop-i_loop) thisspan.left=parseInt(thisspan.left)+x_step[i] thisspan.top=parseInt(thisspan.top)+y_step[i] } i_loop++ var timer=setTimeout("gotostandstillpos()",20) } else { i_loop=0 clearTimeout(timer) timer=setTimeout("gotoendpos()",textpause) } } }
function gotoendpos() { if (ie) { if (i_loop<=textsplitted.length-1) { var thisspan=eval("document.all.span"+i_loop+".style") thisspan.posLeft=-1000 i_loop++ var timer=setTimeout("gotoendpos()",10) } else { clearTimeout(timer) i_loop=0 var timer=setTimeout("changecontent()",400) } } if (ns4) { if (i_loop<=textsplitted.length-1) { var thisspan=eval("document.span"+i_loop) thisspan.left=-1000 i_loop++ var timer=setTimeout("gotoendpos()",10) } else { clearTimeout(timer) i_loop=0 changecontent() } } if (ns6) { if (i_loop<=textsplitted.length-1) { var thisspan=eval("document.getElementById('span'+i_loop).style") thisspan.left=-1000 i_loop++ var timer=setTimeout("gotoendpos()",10) } else { clearTimeout(timer) i_loop=0 changecontent() } } }
if (ie) { for (i=0;i<=maxtextlength;i++) { document.write("<span id='span"+i+"' style='position:absolute'>") document.write("</span>") } window.onload=getpagesize } if (ns6) { for (i=0;i<=maxtextlength;i++) { document.write("<span id='span"+i+"' style='position:absolute'>") document.write(textsplitted) document.write("</span>") } window.onload=getpagesize } if (ns4) { for (i=0;i<=maxtextlength;i++) { document.write("<layer name='span"+i+"' visibility=hide>") document.write(textsplitted) document.write("</layer>") } window.onload=getpagesize } </script>
<br><p align="left"><font face="arial" size="-2">Free scripts<br>provided by </font><br><font face="arial, helvetica" size="-2"><a href="http://rainbow.arch.scriptmania.com">Rainbow Arch</a></font></p>
3.Clock with seconds and greeting
- Cod:
-
<!--Simply copy and paste it where you wish it to appear.-->
<script language="Javascript1.2"> <!-- //Visit http://rainbow.arch.scriptmania.com for this script
var tags_before_clock = "<big>" var tags_after_clock = "</big>"
if(navigator.appName == "Netscape") { document.write('<layer id="clock"></layer><br>'); }
if (navigator.appVersion.indexOf("MSIE") != -1){ document.write('<span id="clock"></span><br>'); }
function upclock(){ var dte = new Date(); var hrs = dte.getHours(); var min = dte.getMinutes(); var sec = dte.getSeconds(); var col = ":"; var spc = " "; var apm;
if (12 < hrs) { apm="PM"; hrs-=12; }
else { apm="AM"; }
if (hrs == 0) hrs=12; if (min<=9) min="0"+min; if (sec<=9) sec="0"+sec;
if(navigator.appName == "Netscape") { document.clock.document.write(tags_before_clock +hrs+col+min+col+sec+spc+apm+tags_after_clock); document.clock.document.close(); }
if (navigator.appVersion.indexOf("MSIE") != -1){ clock.innerHTML = tags_before_clock+hrs +col+min+col+sec+spc+apm+tags_after_clock; } }
setInterval("upclock()",1000); //--> </SCRIPT>
<SCRIPT type=text/Javascript> <!-- /* Java Script Calendar */
calendar = new Date(); day = calendar.getDay(); month = calendar.getMonth(); date = calendar.getDate(); year = calendar.getYear(); if (year < 1000) year+=1900 cent = parseInt(year/100); g = year % 19; k = parseInt((cent - 17)/25); i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30; i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11)); j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7; l = i - j; emonth = 3 + parseInt((l + 40)/44); edate = l + 28 - 31*parseInt((emonth/4)); emonth--; var dayname = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); var monthname = new Array ("January","February","March","April","May","June","July","August","September","October","November","December" ); document.write("<font face=verdana,arial size=2>"); document.write(dayname[day] + ", "); document.write(monthname[month] + " "); if (date< 10) document.write("0" + date + ", "); else document.write(date + ", "); document.write(year + " <BR><font color=FF0000>"); // Easter if ((month == emonth) && (date == edate)) document.write("Easter Sunday (Western) "); // January if ((month == 0) && (date == 1)) document.write("New Year's Day"); if ((month == 0) && (date == 15)) document.write("Adults Day (Japan)"); if ((month == 0) && (date == 27)) document.write("Wolfgang Amadeus Mozart born (1756)"); if ((month == 0) && (day == 1) && (date > 14) && (date< 22)) document.write("Martin Luther King's Birthday"); // February if ((month == 1) && (date == 2)) document.write("Groundhog Day"); if ((month == 1) && (date == 8)) document.write("Jules Verne born (1828)"); if ((month == 1) && (date == 11)) document.write("National Foundation Day (Japan)"); if ((month == 1) && (date== 12)) document.write("Lincoln's Birthday"); if((month == 1) && (date == 14)) document.write("St. Valentine's Day"); if ((month == 1) && (date == 15)) document.write("Galileo Galilei born (1564)"); if ((month == 1) && (date == 22)) document.write("Washington's Birthday"); if ((month == 1) && (date == 29)) document.write("Leap Day"); // March if ((month == 2) && (date == 3)) document.write("Girl's Day (Japan)"); if ((month == 2) && (date == 17)) document.write("St. Patrick's Day"); if ((month == 2) && (date == 21)) document.write("J.S. Bach born (1685)"); // April if ((month == 3) && (date == 1)) document.write("April Fools' Day"); if ((month == 3) && (date == 8)) document.write("Buddha born"); if ((month == 3) && (date == 15) && (day != 0)) document.write("Income Tax Day (USA), "); if ((month == 3) && (date == 16) && (day == 1)) document.write("Income Tax Day (USA) "); if ((month == 3) && (date == 15)) document.write("Leonardo da Vinci born (1452)"); if ((month == 3) && (date == 22)) document.write("Earth Day"); if ((month == 3) && (date == 29)) document.write("Emperor's Birthday (Japan)"); if ((month == 3) && (day == 0) && (date > 0) && (date< 8)) document.write("Daylight Savings Time Begins"); // May if ((month == 4) && (date == 1)) document.write("May Day, Boy's Day (Japan)"); if ((month == 4) && (date == 2)) document.write("Constitution Day (Japan)"); if ((month == 4) && (date == 5)) document.write("Cinco de Mayo (Mexico), Children's Day (Japan)"); if ((month == 4) && (date == 14)) document.write("Independence Day (Paraguay)"); if ((month == 4) && (day == 0) && (date > 7) && (date< 16)) document.write("Mother's Day"); if ((month == 4) && (day == 1) && (date > 24)) document.write("Memorial Day"); // June if ((month == 5) && (date == 5)) document.write("Constitution Day (Denmark)"); if ((month == 5) && (date == 6)) document.write("D-Day (USA)"); if ((month == 5) && (date == 11)) document.write("Kamehameha (Hawaii)"); if ((month == 5) && (date == 14)) document.write("FlagDay (USA)"); if ((month == 5) && (date == 21)) document.write("Summer Solstice"); if((month == 5) && (date == 24)) document.write("St. Jean Baptiste Day (Canada)"); if ((month == 5) && (date == 30)) document.write("Independence Day (Zaire)"); if ((month == 5) && (day == 0) && (date > 15) && (date< 24)) document.write("Father's Day"); // July if ((month == 6) && (date == 1)) document.write("Independence Day (Canada)"); if ((month == 6) && (date == 4)) document.write("Independence Day (USA)"); if ((month == 6) && (date == 14)) document.write("Bastille Day (France)"); // August if ((month == 7) && (date == 1)) document.write("Confederation Day (Switzerland)"); if ((month == 7) && (date == 10)) document.write("Independence Day (Ecuador)"); if ((month == 7) && (date == 15)) document.write("Independence Day (India)"); // September if ((month == 8) && (date == 7)) document.write("Independence Day (Brazil)"); if ((month == 8) && (date == 15)) document.write("Respect for the Aged Day (Japan)"); if ((month == 8) && (date == 16)) document.write("Independence Day (Mexico)"); if ((month == 8) && (day== 1)&& (date > 0) && (date< 8)) document.write("Labor Day (USA)"); // October if ((month == 9) && (date == 1)) document.write("German Reunufication (1990)"); if ((month == 9) && (date == 10)) document.write("Health-Sports Day (Japan)"); if ((month == 9) && (day == 1) && (date > 7) && (date< 16)) document.write("Columbus Day (USA)"); if ((month == 9) && (day == 0) && (date > 24) && (date< 31)) document.write("Daylight Savings Time Ends"); if ((month == 9) && (day == 0) && (date == 31)) document.write("Daylight Savings Time Ends<BR>"); if ((month == 9) && (date == 24)) document.write("United Nations Day"); if ((month == 9) && (date == 31)) document.write("Halloween"); // November if ((month == 10) && (date == 1)) document.write("All Saints Day"); if ((month == 10) && (date == 2)) document.write("All Souls Day"); if ((month == 10) && (date == 3)) document.write("Culture Day (Japan)"); if ((month == 10) && (date == 5)) document.write("Guy Fawkes Night (UK)"); if ((month == 10) && (date == 11)) document.write("Veteran's Day (USA), Remembrance Day (Canada)"); if ((month == 10) && (date ==20)) document.write("Revolution Day (Mexico)"); if ((month == 10) && (date == 23)) document.write("Labor Thanksgiving Day (Japan)"); if ((month == 10) && (day == 4) && (date > 23) && (date< 30)) document.write("Thanksgiving (USA)"); if ((month == 10) && (date == 30) && (day == 4)) document.write("Thanksgiving (USA)"); // December if ((month == 11) && (date == 10)) document.write("Human Rights Day"); if ((month == 11) && (date == 21)) document.write("Winter Solstice"); if ((month == 11) && (date == 24)) document.write("Christmas Eve"); if ((month == 11) && (date == 25)) document.write("Christmas"); if ((month == 11) && (date == 26)) document.write("Boxing Day"); if ((month == 11) && (date == 31)) document.write("New Year's Eve"); document.write("<br></font>"); //--> </SCRIPT>
<SCRIPT type=text/javaScript>
<!-- Begin datetoday = new Date(); timenow=datetoday.getTime(); datetoday.setTime(timenow); thehour = datetoday.getHours(); if (thehour > 18) display = "Evening"; else if (thehour >12) display = "Afternoon"; else display = "Morning"; var greeting = ("Good " + display + "!"); document.write(greeting); // End --> </SCRIPT>
<p align="center"><font face="arial" size="-2">This free script provided by</font><br> <font face="arial, helvetica" size="-2"><a href="http://rainbow.arch.scriptmania.com">Rainbow Arch</a></font></p>
4.Time Button
- Cod:
-
<SCRIPT LANGUAGE="JavaScript">
<!-- Paste this code into the BODY of your HTML document --> <!-- This script from http://www.rainbow.arch.scriptmania.com -->
<!-- Begin day = new Date(); miVisit = day.getTime(); function clock() { dayTwo = new Date(); hrNow = dayTwo.getHours(); mnNow = dayTwo.getMinutes(); scNow = dayTwo.getSeconds(); miNow = dayTwo.getTime(); if (hrNow == 0) { hour = 12; ap = " AM"; } else if(hrNow <= 11) { ap = " AM"; hour = hrNow; } else if(hrNow == 12) { ap = " PM"; hour = 12; } else if (hrNow >= 13) { hour = (hrNow - 12); ap = " PM"; } if (hrNow >= 13) { hour = hrNow - 12; } if (mnNow <= 9) { min = "0" + mnNow; } else (min = mnNow) if (scNow <= 9) { secs = "0" + scNow; } else { secs = scNow; } time = hour + ":" + min + ":" + secs + ap; document.form.button.value = time; self.status = time; setTimeout('clock()', 1000); } function timeInfo() { milliSince = miNow; milliNow = miNow - miVisit; secsVisit = Math.round(milliNow / 1000); minsVisit = Math.round((milliNow / 1000) / 60); alert("There have been " + milliSince + " milliseconds since midnight, January 1, 1970. " + "You have spent " + milliNow + " of those milliseconds on this page. " + ".... About " + minsVisit + " minutes, and " + secsVisit + " seconds."); } document.write("<form name="form">" + "<input type=button value="Click for info!"" + " name=button onClick="timeInfo()"></form>"); onError = null; clock(); // End --> </SCRIPT>
5.Float Up Drifter - Party Balloons
- Cod:
-
<!--Copy and paste into your HTML just above the close </BODY> tag. -->
<script language="JavaScript1.2"> <!-- Begin /* Float Up Drifter - JavaScript Visit www.rainbow.arch.scriptmania.com/scripts/index.html for this script and many more */ // Configure below - change number of images to render var no = 8; // Configure speed below var speed = 20; // The smaller the number, the faster the movement
var floatr = new Array(); // Your image location floatr[0] = "balloon0.gif" floatr[1] = "balloon1.gif" floatr[2] = "balloon2.gif" floatr[3] = "balloon3.gif" floatr[4] = "balloon4.gif" floatr[5] = "balloon5.gif" floatr[6] = "balloon6.gif" floatr[7] = "balloon7.gif"
var ns4up = (document.layers) ? 1 : 0; // browser sniffer var ie4up = (document.all) ? 1 : 0; var ns6up = (document.getElementById&&!document.all) ? 1 : 0; var dx, xp, yp; // coordinate and position variables var am, stx, sty; // amplitude and step variables var i, doc_width = 800, doc_height = 1800;
if (ns4up||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(); j = 0;
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 (ns4up) { // set layers if (i == 0) { document.write("<layer name="dot"+ i +"" left="15" top="15" visibility="show"><img src=""+ floatr[j] + "" border="0"></layer>"); } else { document.write("<layer name="dot"+ i +"" left="15" top="15" visibility="show"><img src=""+ floatr[j] + "" border="0"></layer>"); } } else if (ie4up||ns6up) { if (i == 0) { document.write("<div id="dot"+ i +"" style="POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;"><img src="" + floatr[j] + "" border="0"></div>"); } else { document.write("<div id="dot"+ i +"" style="POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:1;"><img src="" + floatr[j] + "" border="0"></div>"); } } if (j == (floatr.length-1)) { j = 0; } else { j += 1; } }
function floatrNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] -= sty[i]; if (yp[i] < -50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = doc_height; 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]+pageYOffset; document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("floatrNS()", speed); }
function floatrIE_NS6() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] -= sty[i]; if (yp[i] < -50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = doc_height; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = ns6up?window.innerWidth-5:document.body.clientWidth; doc_height = ns6up?window.innerHeight-5:document.body.clientHeight; } dx[i] += stx[i]; if (ie4up){ document.all["dot"+i].style.pixelTop = yp[i]+document.body.scrollTop; document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]); } else if (ns6up){ document.getElementById("dot"+i).style.top=yp[i]+pageYOffset; document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]); } } setTimeout("floatrIE_NS6()", speed); }
if (ns4up) { floatrNS(); } else if (ie4up||ns6up) { floatrIE_NS6(); } // End --> </script> <p><font face="arial" size="-2">Free JavaScript from </font><br><font face="arial, helvetica" size="-2"><a href="http://rainbow.arch.scriptmania.com/scripts/">Rainbow Arch</a></font></p>
6.Float Down Drifter
- Cod:
-
<!--Simply copy and paste code into <BODY> of HTML page Just above the close </BODY> tag. -->
<SCRIPT type="text/javascript"> /* Float Down Snow - Drifter - JavaScript Visit www.rainbow.arch.scriptmania.com/scripts/ for this script and many more */
// **** Changed to Snow image float down from text letter ****
// Set the number of snowflakes (more than 30 - 40 not recommended) var snowmax=12
// Set the colors for the snow. Add as many colors as you like var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD","#ffffff","#ffc0cb")
// Set the fonts, that create the snowflakes. Add as many fonts as you like var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans Multumesc")
// **** CHANGE YOUR IMAGE HERE ****
// Set the letter that creates your snowflake (recommended: * ) var snowletter=" <img src=snow.gif> "
// Set the speed of sinking (recommended values range from 0.3 to 2) var sinkspeed=0.6
// Set the maximal-size of your snowflaxes var snowmaxsize=40
// Set the minimal-size of your snowflaxes var snowminsize=20
// Set the snowing-zone // Set 1 for all-over-snowing, set 2 for left-side-snowing // Set 3 for center-snowing, set 4 for right-side-snowing var snowingzone=1
/////////////////////////////////////////////////////////////////////////// // CONFIGURATION ENDS HERE ///////////////////////////////////////////////////////////////////////////
// Do not edit below this line var snow=new Array() var marginbottom var marginright var timer var i_snow=0 var x_mv=new Array(); var crds=new Array(); var lftrght=new Array(); var browserinfos=navigator.userAgent var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) var ns6=document.getElementById&&!document.all var opera=browserinfos.match(/Opera/) var browserok=ie5||ns6||opera
function randommaker(range) { rand=Math.floor(range*Math.random()) return rand }
function initsnow() { if (ie5 || opera) { marginbottom = document.body.clientHeight+(document.body.clientHeight*(1/8)) marginright = document.body.clientWidth-20 } else if (ns6) { marginbottom = window.innerHeight+(window.innerHeight*(1/10)) marginright = window.innerWidth-20 }
var snowsizerange=snowmaxsize-snowminsize for (i=0;i<=snowmax;i++) { crds[i] = 0; lftrght[i] = Math.random()*15; x_mv[i] = 0.03 + Math.random()/10; snow[i]=document.getElementById("s"+i) snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)] snow[i].size=randommaker(snowsizerange)+snowminsize snow[i].style.fontSize=snow[i].size snow[i].style.color=snowcolor[randommaker(snowcolor.length)] snow[i].sink=sinkspeed*snow[i].size/5 if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size) snow[i].style.left=snow[i].posx snow[i].style.top=snow[i].posy } movesnow() }
function movesnow() { for (i=0;i<=snowmax;i++) { crds[i] += x_mv[i]; snow[i].posy+=snow[i].sink snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]); snow[i].style.top=snow[i].posy
if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){ if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=0 } } var timer=setTimeout("movesnow()",50) }
for (i=0;i<=snowmax;i++) { document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>") } if (browserok) { window.onload=initsnow } </script>
<p><font face="arial" size="-2">Free JavaScript from </font><br><font face="arial, helvetica" size="-2"><a href="http://rainbow.arch.scriptmania.com/scripts/">Rainbow Arch</a></font></p>
7.Hearts Fall_1 - Drifter JavaScript
- Cod:
-
<!--Simply copy and paste code into <BODY> of HTML page Just above the close </BODY> tag. -->
<SCRIPT type="text/javascript"> /* Hearts Fall 1 - Drifter - JavaScript Visit www.rainbow.arch.scriptmania.com/scripts/ for this script and many more */
// **** Changed to Hearts from Snow ****
// Set the number of snowflakes (more than 30 - 40 not recommended) var snowmax=12
// Set the colors for the snow. Add as many colors as you like var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD","#ffffff","#ffc0cb")
// Set the fonts, that create the snowflakes. Add as many fonts as you like var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans Multumesc")
// **** CHANGE YOUR IMAGE HERE ****
// Set the letter that creates your snowflake (recommended: * ) var snowletter=" <img src=heart9.gif> "
// Set the speed of sinking (recommended values range from 0.3 to 2) var sinkspeed=0.6
// Set the maximal-size of your snowflaxes var snowmaxsize=40
// Set the minimal-size of your snowflaxes var snowminsize=20
// Set the snowing-zone // Set 1 for all-over-snowing, set 2 for left-side-snowing // Set 3 for center-snowing, set 4 for right-side-snowing var snowingzone=1
/////////////////////////////////////////////////////////////////////////// // CONFIGURATION ENDS HERE ///////////////////////////////////////////////////////////////////////////
// Do not edit below this line var snow=new Array() var marginbottom var marginright var timer var i_snow=0 var x_mv=new Array(); var crds=new Array(); var lftrght=new Array(); var browserinfos=navigator.userAgent var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) var ns6=document.getElementById&&!document.all var opera=browserinfos.match(/Opera/) var browserok=ie5||ns6||opera
function randommaker(range) { rand=Math.floor(range*Math.random()) return rand }
function initsnow() { if (ie5 || opera) { marginbottom = document.body.clientHeight marginright = document.body.clientWidth } else if (ns6) { marginbottom = window.innerHeight marginright = window.innerWidth } var snowsizerange=snowmaxsize-snowminsize for (i=0;i<=snowmax;i++) { crds[i] = 0; lftrght[i] = Math.random()*15; x_mv[i] = 0.03 + Math.random()/10; snow[i]=document.getElementById("s"+i) snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)] snow[i].size=randommaker(snowsizerange)+snowminsize snow[i].style.fontSize=snow[i].size snow[i].style.color=snowcolor[randommaker(snowcolor.length)] snow[i].sink=sinkspeed*snow[i].size/5 if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size) snow[i].style.left=snow[i].posx snow[i].style.top=snow[i].posy } movesnow() }
function movesnow() { for (i=0;i<=snowmax;i++) { crds[i] += x_mv[i]; snow[i].posy+=snow[i].sink snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]); snow[i].style.top=snow[i].posy
if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){ if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=0 } } var timer=setTimeout("movesnow()",50) }
for (i=0;i<=snowmax;i++) { document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>") } if (browserok) { window.onload=initsnow } </script>
<p><font face="arial" size="-2">Free JavaScript from </font><br><font face="arial, helvetica" size="-2"><a href="http://rainbow.arch.scriptmania.com/scripts/">Rainbow Arch</a></font></p>
| |
|