<b> <font size="5"> <script> /* RAINBOW TEXT For this script, visit http://java2005.blogfa.com */ // ********** MAKE YOUR CHANGES HERE var text="RAINBOW TEXT" // YOUR TEXT var speed=80 // SPEED OF FADE // ********** LEAVE THE NEXT BIT ALONE! if (document.all||document.getElementById){ document.write('<span id="highlight">' + text + '</span>') var storetext=document.getElementById? document.getElementById("highlight") : document.all.highlight } else document.write(text) var hex=new Array("00","14","28","3C","50","64","78","8C","A0","B4","C8","DC","F0") var r=1 var g=1 var b=1 var seq=1 function changetext(){ rainbow="#"+hex[r]+hex[g]+hex[b] storetext.style.color=rainbow } function change(){ if (seq==6){ b-- if (b==0) seq=1 } if (seq==5){ r++ if (r==12) seq=6 } if (seq==4){ g-- if (g==0) seq=5 } if (seq==3){ b++ if (b==12) seq=4 } if (seq==2){ r-- if (r==0) seq=3 } if (seq==1){ g++ if (g==12) seq=2 } changetext() } function starteffect(){ if (document.all||document.getElementById) flash=setInterval("change()",speed) } starteffect() </script> </font></b> <p align="center"><font face="arial" size="-2">This free script provided by</font><br><font face="arial, helvetica" size="-2"><a href="http://sevom.persianblog.com">Amir Ali</a></font></p> </body> </html>
این هم کدی که قیمت ارز و طلا را در وبلاگ شما به نمایش می گذارد.
<!-- Dollar source code , Powered javascript code by WWW.SONYCARD20.COM--><iframe src="http://www.sonycard20.com/dollar.asp" width="145" height="219" align="top" name="sony" scrolling="no" border="0" frameborder="0" style="border: 1px solid #FFCC00"></TD></TR></TABLE></BODY></HTML></iframe><!-- END DOLLAR PRICE IRAN --> </body> </html>
<DIV align=center><EMBED style="WIDTH: 169px; HEIGHT: 40px" src=http://www.karaji.com/tv/radiofarda.asx width=169 height=40 type=audio/midi bgcolor="#000000" loop="infinite" autostart="true"></DIV></body> </html> </body> </html>
<P align=center><IFRAME border=0 name=I4 marginWidth=1 marginHeight=0 src="http://www.pmcfm.com/radio.php" frameBorder=0 width=335 scrolling=no height=179> Your browser does not support inline frames or is currently configured not to display inline frames.</IFRAME></P></body> </html> </body> </html>
<FONT color=#c0c0c0 align="center" name="textarea8" rows="6"><TEXTAREA name=textarea8 rows=6><!-- this script got from ShirazFun--> <body bgcolor='#000000' > <!-- Start of Fireworks --> <script language="JavaScript"> <!-- IE4+, NS4+, NS6 Fireworks script by kurt.grigg@virgin.net CL=new Array('#ff0000','#00ff00','#ffffff','#ff00ff','#ffa500','#ffff00','#00ff00','#ffffff','#ff00ff') CL2=new Array('#ffa500','#00ff00','#FFAAFF','#fff000','#fffffF') Xpos=130; Ypos=130; I='#00ff00'; C=0; S=5; H=null; W=null; Y=null; NS4=(document.layers); NS6=(document.getElementById&&!document.all); IE4=(document.all); A=14; E=120; L=null; if (NS4){ for (i=0; i < A; i++) document.write('<LAYER NAME="nsstars'+i+'" TOP=0 LEFT=0 BGCOLOR='+I+' CLIP="0,0,2,2"></LAYER>'); } if (NS6){ window.document.body.style.overflow='hidden'; for (i=0; i < A; i++) document.write('<div id="ns6stars'+i+'" style="position:absolute;top:0px;left:0px;height:2px;width:2px;font-size:2px;background:'+I+'"></div>'); } if (IE4){ document.write('<div id="ie" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < A; i++) document.write('<div id="iestars" style="position:absolute;top:0;left:0;width:2px;height:2px;background:'+I+';font-size:2px"></div>'); document.write('</div></div>'); } function Fireworks(){ H=(NS4||NS6)?window.innerHeight:window.document.body.clientHeight; W=(NS4||NS6)?window.innerWidth:window.document.body.clientWidth; Y=(NS4||NS6)?window.pageYOffset:window.document.body.scrollTop; for (i=0; i < A; i++){ if (IE4)L=iestars[i].style; if (NS4)L=document.layers["nsstars"+i]; if (NS6)L=document.getElementById("ns6stars"+i).style; var F = CL[Math.floor(Math.random()*CL.length)]; var RS=Math.round(Math.random()*2); L.top = Ypos + E*Math.sin((C+i*5)/3)*Math.sin(C/100) L.left= Xpos + E*Math.cos((C+i*5)/3)*Math.sin(C/100) if (C < 110){ if (NS4){L.bgColor=I;L.clip.width=1;L.clip.height=1} if (IE4||document.getElementById) {L.background=I;L.width=1;L.height=1;L.fontSize=1} } else{ if (NS4){L.bgColor=F;L.clip.width=RS;L.clip.height=RS} if (IE4||document.getElementById){L.background=F;L.width=RS;L.height=RS;L.fontSize=RS} } } if (C > 220){ C=0; var NC = CL2[Math.floor(Math.random()*CL2.length)]; I=NC; E=Math.round(100+Math.random()*90); Ypos = E+Math.round(Math.random()*(H-(E*2.2)))+Y; Xpos = E+Math.round(Math.random()*(W-(E*2.2))); } C+=S; setTimeout("Fireworks()",10); } Fireworks(); // --> </script> <!-- End of Fireworks --> </body> </html>
<FONT color=#c0c0c0 size=2 face=Tahoma align="center" name="textarea9" rows="6"><FONT face=Tahoma color=#c0c0c0><TEXTAREA name=textarea9 rows=6><!-- TWO STEPS TO INSTALL COOKIE - USER NAME: 1. Paste the designated coding into the HEAD of your HTML document 2. Put the last script into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Bill Dortch, Idaho Design (bdortch@netw.com) <! > <! > <!-- Begin function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function show_count() { var expdate = new Date(); var num; expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 31)); if(!(num = GetCookie("jtotwcount"))) num = 0; num++; SetCookie ("jtotwcount", num, expdate); if (num == 1) document.write("Since this is the first time you have been here, please take a moment to look around."); else document.write("You have been here " + num + " times."); } function auto_show_name() { if(GetCookie("jtotwname") != null) document.write("Welcome back to this week\'s tip " + GetCookie('jtotwname') + ". "); else { document.write("<FORM>Please enter your name: <INPUT TYPE = \"text\" NAME = \"nameinput\">" + "<BR><BR><INPUT TYPE = \"button\" VALUE = \"Save to Cookie\" onClick = \"set_name(this.form)\"></FORM>"); document.write("Please enter your first name in the input" + " box and press the \"Save to Cookie\" button, then the page will automatically reload. "); } } function set_name(form) { var expdate = new Date (); expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000 * 31)); var username = form.nameinput.value if (username != "") { if (confirm("Are you sure you want this saved as your name?")) { SetCookie ("jtotwname", username, expdate); window.history.go(0); } } else alert("Geez, at least enter something, entering nothing will cause an error."); } // End --> </SCRIPT> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <CENTER> <FORM> Please enter your name: <input TYPE = "text" NAME = "nameinput"> <br><br> <input TYPE = "button" VALUE = "Save to Cookie" onClick = "set_name(this.form)"> </FORM> </CENTER> <!-- Script Size: 3.19 KB -->
<FONT color=#c0c0c0 size=2 face=Tahoma align="center" name="textarea4" rows="6"><FONT face=Tahoma color=#c0c0c0><TEXTAREA name=textarea4 rows=6><!-- TWO STEPS TO INSTALL MATRIX: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Matt Lewis (matt999_999@yahoo.com) --> <! > <! > <!-- Begin var matrix_window; function MatrixWrite(string, bold, italic, speed) { var height = window.screen.height; var width = window.screen.width; var win_dimensions = "height = " + eval(height + 10) + ", width = " + eval(width + 30); matrix_window = window.open("blank.htm", "matrix_window", win_dimensions); matrix_window.document.open("text/html", "replace"); var i; var timer = 0; if(matrix_window.moveTo) matrix_window.moveTo(-10, -30); if(matrix_window.resizeBy) matrix_window.resizeBy(0, 50); matrix_window.document.write("<body bgcolor=000000 text=00ff00 onBlur='self.focus()'>"); matrix_window.document.write("<font face=system>"); if(bold == true) matrix_window.document.write("<b>"); if(italic == true) matrix_window.document.write("<i>"); for(i = 0; i <= string.length; i++) { timer += (Math.random() * speed); setTimeout("matrix_window.document.write('" + string.charAt(i) + "');", timer); } timer += 2000; setTimeout("matrix_window.close()", timer); } var messages = new Array("The Matrix has you...", "Follow the white rabbit", "Wake up, Neo"); function GetRndIndex() { return (parseInt(Math.random() * messages.length)); } function WriteRndMsg(bold, italic, speed) { MatrixWrite(messages[GetRndIndex()], bold, italic, speed); } // End --> </script> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <center> <table> <tr> <td> <a href="javascript:WriteRndMsg(false, false, 750)">Normal text</a> <br> <a href="javascript:WriteRndMsg(true, false, 750)"><b>Bold text</b></a> <br> <a href="javascript:WriteRndMsg(false, true, 750)"><i>Italic text</i></a><br> <a href="javascript:WriteRndMsg(true, true, 750)"><b><i>Bold and italic text</i></b></a> <br> <a href="javascript:MatrixWrite('Knock knock, Neo', false, false, 750)">Normal string constant</a> </td> </tr> </table> </center> <!-- Script Size: 2.61 KB -->
<FONT color=#c0c0c0 size=2 face=Tahoma align="center" name="textarea5" rows="6"><FONT face=Tahoma color=#c0c0c0><TEXTAREA name=textarea5 rows=6><!-- THREE STEPS TO INSTALL CONCENTRATION: 1. Copy the coding into the HEAD of your HTML document 2. Add the onLoad event handler into the BODY tag 3. Put the last coding into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Brian Gosselin (bgaudiodr@aol.com) --> <!-- Web Site: http://www.bgaudiodr.iwarp.com --> <! > <! > <!-- Begin var pics = new Array(); for (i = 0; i <= 18; i++) { pics[i] = new Image(); pics[i].src = 'image' + i + '.gif'; } var map=new Array(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18); var user = new Array(); var temparray = new Array(); var clickarray = new Array(0, 0); var ticker, sec, min, ctr, id, oktoclick, finished; function init() { clearTimeout(id); for (i = 0; i <= 35 ;i++) { user[i] = 0; } ticker = 0; min = 0; sec = 0; ctr = 0; oktoclick = true; finished = 0; document.f.b.value = ""; scramble(); runclk(); for (i = 0; i <= 35; i++) { document.f[('img'+i)].src = "image0.gif"; } } function runclk() { min = Math.floor(ticker/60); sec = (ticker-(min*60))+''; if(sec.length == 1) {sec = "0"+sec}; ticker++; document.f.b.value = min+":"+sec; id = setTimeout('runclk()', 1000); } function scramble() { for (z = 0; z < 5; z++) { for (x = 0; x <= 35; x++) { temparray[0] = Math.floor(Math.random()*36); temparray[1] = map[temparray[0]]; temparray[2] = map[x]; map[x] = temparray[1]; map[temparray[0]] = temparray[2]; } } } function showimage(but) { if (oktoclick) { oktoclick = false; document.f[('img'+but)].src = 'image'+map[but]+'.gif'; if (ctr == 0) { ctr++; clickarray[0] = but; oktoclick = true; } else { clickarray[1] = but; ctr = 0; setTimeout('returntoold()', 600); } } } function returntoold() { if ((clickarray[0] == clickarray[1]) && (!user[clickarray[0]])) { document.f[('img'+clickarray[0])].src = "image0.gif"; oktoclick = true; } else { if (map[clickarray[0]] != map[clickarray[1]]) { if (user[clickarray[0]] == 0) { document.f[('img'+clickarray[0])].src = "image0.gif"; } if (user[clickarray[1]] == 0) { document.f[('img'+clickarray[1])].src = "image0.gif"; } } if (map[clickarray[0]] == map[clickarray[1]]) { if (user[clickarray[0]] == 0&&user[clickarray[1]] == 0) { finished++; } user[clickarray[0]] = 1; user[clickarray[1]] = 1; } if (finished >= 18) { alert('You did it in '+document.f.b.value+' !'); init(); } else { oktoclick = true; } } } // End --> </script> </HEAD> <!-- STEP TWO: Insert the onLoad event handler into your BODY tag --> <BODY OnLoad="init()"> <!-- STEP THREE: Copy this code into the BODY of your HTML document --> <center> <h2>Concentration</h2> <form name="f"> <table cellpadding="0" cellspacing="0" border="0"> <script language="javascript"> <!-- Begin for (r = 0; r <= 5; r++) { document.write('<tr>'); for (c = 0; c <= 5; c++) { document.write('<td align="center">'); document.write('<a href="javascript:showimage('+((6*r)+c)+')" onClick="document.f.b.focus()">'); document.write('<img src="image0.gif" name="img'+((6*r)+c)+'" border="0">'); document.write('</a></td>'); } document.write('</tr>'); } // End --> </script> </table> <br><br> <input type="button" value=" " name="b" onClick="init()"> </form> </center> <!-- Script Size: 3.63 KB --></body> </html>
<FONT color=#c0c0c0 size=2 face=Tahoma align="center" name="textarea6" rows="6"><FONT face=Tahoma color=#c0c0c0><TEXTAREA name=textarea6 rows=6><!-- THREE STEPS TO INSTALL AGE CALCULATOR: 1. Copy the coding into the HEAD of your HTML document 2. Add the onLoad event handler into the BODY tag 3. Put the last coding into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Dev Pragad (devpragad@yahoo.com) --> <!-- Web Site: http://www.geocities.com/devpragad --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function start() { document.form1.day.value = ""; document.form1.month.value = ""; document.form1.year.value = ""; document.form1.age.value = ""; document.form1.months.value = ""; document.form1.weeks.value = ""; document.form1.answer.value = ""; document.form1.hours.value = ""; document.form1.min.value = ""; document.form1.sec.value = ""; document.form1.bday.value = ""; document.form1.milli.value = ""; } function run() { var ap; dd = document.form1.day.value; mm = document.form1.month.value; yy = document.form1.year.value; with(document.form1) { ap = parseInt(ampm.selectedIndex); hr = parseInt(hrs.value); if(hr <= 0 && hr >= 13) { ap = null; alert("asdf") } } main="valid"; if ((mm < 1) || (mm > 12) || (dd < 1) || (dd > 31) || (yy < 1) ||(mm == "") || (dd == "") || (yy == "")) main = "Invalid"; else if (((mm == 4) || (mm == 6) || (mm == 9) || (mm == 11)) && (dd > 30)) main = "Invalid"; else if (mm == 2) { if (dd > 29) main = "Invalid"; else if((dd > 28) && (!lyear(yy))) main="Invalid"; } else if((yy > 9999)||(yy < 0)) main = "Invalid"; else main = main; if(main == "valid") { function leapyear(a) { if(((a % 4 == 0) && (a % 100 != 0)) || (a % 400 == 0)) return true; else return false; } days = new Date(); gdate = days.getDate(); gmonth = days.getMonth(); gyear = days.getYear(); age = gyear - yy; if((mm == (gmonth + 1)) && (dd <= parseInt(gdate))) { age = age; } else { if(mm <= (gmonth)) { age = age; } else { age = age - 1; } } if(age == 0) age = age; document.form1.age.value=" You are " + age+ " years old & "; if(mm <= (gmonth + 1)) age = age - 1; if((mm == (gmonth + 1)) && (dd > parseInt(gdate))) age = age + 1; var m; var n; if (mm == 12) { n = 31 - dd; } if (mm == 11) { n = 61 - dd; } if (mm == 10) { n = 92 - dd; } if (mm == 9) { n = 122 - dd; } if (mm == 8) { n = 153 - dd; } if (mm == 7) { n = 184 - dd; } if (mm == 6) { n = 214 - dd; } if (mm == 5) { n = 245 - dd; } if (mm == 4) { n = 275 - dd; } if (mm == 3) { n = 306 - dd; } if (mm == 2) { n = 334 - dd; if(leapyear(yy)) n = n + 1; } if (mm == 1) { n = 365 - dd; if (leapyear(yy)) n = n + 1; } if (gmonth == 1) m = 31; if (gmonth == 2) { m = 59; if (leapyear(gyear)) m = m + 1; } if (gmonth == 3) { m = 90; if (leapyear(gyear)) m = m + 1; } if (gmonth == 4) { m = 120; if (leapyear(gyear)) m = m + 1; } if (gmonth == 5) { m = 151; if (leapyear(gyear)) m = m + 1; } if (gmonth == 6) { m = 181; if (leapyear(gyear)) m = m + 1; } if (gmonth == 7) { m = 212; if (leapyear(gyear)) m = m + 1; } if (gmonth == 8) { m = 243; if (leapyear(gyear)) m = m + 1; } if (gmonth == 9) { m = 273; if (leapyear(gyear)) m = m + 1; } if (gmonth == 10) { m = 304; if (leapyear(gyear)) m = m + 1; } if (gmonth == 11) { m = 334; if (leapyear(gyear)) m = m + 1; } if (gmonth == 12) { m = 365; if (leapyear(gyear)) m = m + 1; } totdays = (parseInt(age) * 365); totdays += age / 4; totdays = parseInt(totdays) + gdate + m + n; document.form1.answer.value = "" + totdays +" days "; months = age * 12; months += 12 - parseInt(mm); months += gmonth; document.form1.months.value = months + " Months"; if (gmonth == 1) p = 31 + gdate; if (gmonth == 2) { p = 59 + gdate; if (leapyear(gyear)) m = m + 1; } if (gmonth == 3) { p = 90 + gdate; if (leapyear(gyear)) p = p + 1; } if (gmonth == 4) { p = 120 + gdate; if (leapyear(gyear)) p = p + 1; } if (gmonth == 5) { p = 151 + gdate; if (leapyear(gyear)) p = p + 1; } if (gmonth == 6) { p = 181 + gdate; if (leapyear(gyear)) p = p + 1; } if (gmonth == 7) { p = 212 + gdate; if (leapyear(gyear)) p = p + 1; } if (gmonth == 8) { p = 243 + gdate; if (leapyear(gyear)) p = p + 1; } if (gmonth == 9) { p = 273 + gdate; if (leapyear(gyear)) p = p + 1; } if (gmonth == 10) { p = 304 + gdate; if (leapyear(gyear)) p = p + 1; } if (gmonth == 11) { p = 334 + gdate; if (leapyear(gyear)) p = p + 1; } if (gmonth == 12) { p = 365 + gdate; if (leapyear(gyear)) p = p + 1; } weeks = totdays / 7; weeks += " weeks"; weeks = parseInt(weeks); document.form1.weeks.value = weeks + " Weeks"; var time = new Date(); ghour = time.getHours(); gmin = time.getMinutes(); gsec = time.getSeconds(); hour = ((age * 365) + n + p) * 24; hour += (parseInt(age / 4) * 24); if(ap == 0) hour = hour - hr; else { if(ap == 1) { hour = hour - (11 + hr) } } document.form1.hours.value = hour + " Hours"; var min; min = (hour * 60) + gmin; document.form1.min.value = min + " Minutes"; sec = (min * 60) + gsec; document.form1.sec.value = sec + " Seconds"; var millisec; var gmil; gmil = days.getMilliseconds(); millisec = (sec * 1000) + gmil; document.form1.milli.value = millisec + " Milliseconds"; mm = mm - 1; var r; if(mm == 0) r = 1; if(mm == 1) r = 31; if(mm == 2) { r = 59; if (leapyear(gyear)) m = m + 1; } if(mm == 3) { r = 90; if (leapyear(gyear)) r = r + 1; } if(mm == 4) { r = 120; if (leapyear(gyear)) r = r + 1; } if(mm == 5) { r = 151; if (leapyear(gyear)) r = r + 1; } if(mm == 6) { r = 181; if (leapyear(gyear)) r = r + 1; } if(mm == 7) { r = 212; if (leapyear(gyear)) r = r + 1; } if(mm == 8) { r = 243; if (leapyear(gyear)) r = r + 1; } if(mm == 9) { r = 273; if (leapyear(gyear)) r = r + 1; } if(mm == 10) { r = 304; if (leapyear(gyear)) r = r + 1; } if(mm == 11) { r = 334; if (leapyear(gyear)) r = r + 1; } if(mm == 12) { r = 365; if (leapyear(gyear)) r = r + 1; } mm = mm + 1; r = parseInt(r) + parseInt(dd); if( mm > (gmonth + 1)) { bday = r - m - gdate; } else { if(mm == (gmonth + 1) && (gdate < dd)) { bday = (r - m - gdate); } else { if((leapyear(gyear)) && ((mm > 2) && (dd < 29))) { a = 366; } else { a = 365; } bday = a + (r - m - gdate); } } nhour = 24-parseInt(ghour); nmin = 60 - parseInt(gmin); nsec = 60 - parseInt(gsec); go(); if(((bday == 366) && (leapyear(yy))) || ((bday == 365) && (!leapyear(yy)))) { document.form1.bday.value = "today is your birthday"; alert("Happy Birthday"); } else { document.form1.bday.value = bday + " days " + nhour + " hours " + nmin + " minutes " + nsec + " seconds"; setTimeout("run()", 1); } function go() { function lyear(a) { if(((a % 4 == 0) && (a % 100 != 0)) || (a % 400 == 0)) return true; else return false; } mm = parseInt(mm); dd = parseInt(dd); yy = parseInt(yy); if ((mm < 1) || (mm > 12) || (dd < 1) || (dd > 31) || (yy < 1) ||(mm == " ") || (dd == " ") || (yy == " ")) main="Invalid"; else if (((mm == 4) || (mm == 6) || (mm == 9) || (mm == 11)) && (dd > 30)) main = "Invalid"; else if (mm == 2) { if (dd > 29) main = "Invalid"; else if(( dd > 28) && (!lyear(yy))) main = "Invalid"; } else main = main; if(main == "valid") { var m; if (mm == 1) n = 31; if (mm == 2) n = 59 + 1; if (mm == 3) n = 90 + 1; if (mm == 4) n = 120 + 1; if (mm == 5) n = 151 + 1; if (mm == 6) n = 181 + 1; if (mm == 7) n = 212 + 1; if (mm == 8) n = 243 + 1; if (mm == 9) n = 273 + 1; if (mm == 10) n = 304 + 1; if (mm == 11) n = 334 + 1; if (mm == 12) n = 365 + 1; if((mm == 1)||(mm == 3)||(mm == 5)||(mm == 7)||(mm == 8)||(mm == 10)||(mm == 12)) n += 31 + dd; else if((mm == 4)||(mm == 6)||(mm == 9)||(mm == 11)) n += 31 + dd + 1; else if(mm == 2) { if(lyear(yy)) n += 29 + dd - 3; else if(!lyear(yy)) n += 28 + dd - 1; } fours = yy / 4; hunds = yy / 100; fhunds = yy / 400; var day; day = (yy + n + fours - hunds + fhunds) % 7; day = parseInt(day) switch(day) { case 1 : document.form1.age.value +=" you were born on a Sunday" break case 2 : document.form1.age.value +=" you were born on a Monday" break case 3 : document.form1.age.value +=" you were born on a Tuesday" break case 4 : document.form1.age.value +=" you were born on a Wednesday" break case 5 : document.form1.age.value +=" you were born on a Thursday" break case 6 : document.form1.age.value +=" you were born on a Friday" break case 7 : document.form1.age.value +=" you were born on a Saturday" break case 0 : document.form1.age.value +=" you were born on a Saturday" break } } else { document.form1.age.value += main + " Date"; } } } else { document.form1.age.value = main + " Date"; document.form1.months.value = ""; document.form1.weeks.value = ""; document.form1.answer.value = ""; document.form1.hours.value = ""; document.form1.min.value = ""; document.form1.sec.value = ""; document.form1.bday.value = ""; document.form1.milli.value = ""; } } // End --> </script> </HEAD> <!-- STEP TWO: Insert the onLoad event handler into your BODY tag --> <BODY onLoad="start()"> <!-- STEP THREE: Copy this code into the BODY of your HTML document --> <CENTER> <br> Enter your date of birth <br> <FORM name=form1> Month<INPUT name=month size=3> Date<INPUT name=day size=3> Year<INPUT name=year size=6> Hours<INPUT name=hrs value=00 size=6> <select size="1" name="ampm"> <option selected>AM</option> <option>PM</option> </select> <INPUT name=start onclick=run() type=button value="Calculate"> <BR> <BR> <INPUT name=age size=55 value="Your age will be displayed here"> <BR> <BR> You have been living for: <BR> <TABLE border = 0> <TBODY> <TR> <TD>In months:</TD> <TD><INPUT name=months size=30></TD> </TR> <TR> <TD>In weeks:</TD> <TD><INPUT name=weeks size=30></TD> </TR> <TR> <TD>In days:</TD> <TD><INPUT name=answer size=30></TD> </TR> <TR> <TD>In hours:</TD> <TD><INPUT name=hours size=30></TD> </TR> <TR> <TD>In minutes:</TD> <TD><INPUT name=min size=30></TD> </TR> <TR> <TD>In seconds:</TD> <TD><INPUT name=sec size=30></TD> </TR> <TR> <TD>In Milliseconds:</TD> <TD><INPUT name=milli size=30></TD> </TR> </TBODY> </TABLE> Your next birthday will be in: <BR> <INPUT name=bday size=40> </FORM> </CENTER> <p><center> <font face="arial, helvetica" size"-2">Free JavaScripts provided<br> by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </center><p> <!-- Script Size: 10.86 KB -->
<FONT color=#c0c0c0 size=2 face=Tahoma align="center" name="textarea8" rows="6"><FONT face=Tahoma color=#c0c0c0><TEXTAREA name=textarea8 rows=6><!-- TWO STEPS TO INSTALL CUSTOMIZED WINDOW: 1. Paste the coding into the HEAD of your HTML document 2. Put the last code into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function customize(form) { var address = document.form1.url.value; var op_tool = (document.form1.tool.checked== true) ? 1 : 0; var op_loc_box = (document.form1.loc_box.checked == true) ? 1 : 0; var op_dir = (document.form1.dir.checked == true) ? 1 : 0; var op_stat = (document.form1.stat.checked == true) ? 1 : 0; var op_menu = (document.form1.menu.checked == true) ? 1 : 0; var op_scroll = (document.form1.scroll.checked == true) ? 1 : 0; var op_resize = (document.form1.resize.checked == true) ? 1 : 0; var op_wid = document.form1.wid.value; var op_heigh = document.form1.heigh.value; var option = "toolbar="+ op_tool +",location="+ op_loc_box +",directories=" + op_dir +",status="+ op_stat +",menubar="+ op_menu +",scrollbars=" + op_scroll +",resizable=" + op_resize +",width=" + op_wid +",height="+ op_heigh; var win3 = window.open("", "what_I_want", option); var win4 = window.open(address, "what_I_want"); } function clear(form) { document.form1.wid.value=""; document.form1.heigh.value=""; } // End --> </SCRIPT> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <CENTER> <h4>Please choose from the following selections to customize your window</h4> <br> <TABLE cellpadding=5 border><TR><TD><PRE> <FORM name=form1 ACTION="javascript:" METHOD="POST"> <INPUT TYPE="text" NAME="url" value="http://www.khafankadeh.7p.com" >: URL <INPUT TYPE="checkbox" NAME="tool">: Toolbar <INPUT TYPE="checkbox" NAME="loc_box">: Location <INPUT TYPE="checkbox" NAME="dir">: Directories <INPUT TYPE="checkbox" NAME="stat">: Status <INPUT TYPE="checkbox" NAME="menu">: Menubar <INPUT TYPE="checkbox" NAME="scroll">: Scrollbars <INPUT TYPE="checkbox" NAME="resize">: Resizable <INPUT TYPE="text" NAME="wid" value= >: Width <INPUT TYPE="text" NAME="heigh" value=>: Height <BR><CENTER> <INPUT TYPE="button" VALUE="=ENTER=" OnClick="customize(this.form)"> <INPUT TYPE="reset" VALUE="=RESET=" onClick="clear(this.form)"> </PRE></TD></TR></TABLE> </FORM> </CENTER><p><center> <font face="arial, helvetica" size="-2"> <!-- Script Size: 2.54 KB --> </font></center></center>
<FONT color=#c0c0c0 align="center" name="textarea7" rows="6"><TEXTAREA name=textarea7 rows=6><!-- Start of Browser Shake JavaScript --> <!-- This script causes your entire browser window to shake. ::rumble:: --> <!-- Instructions: Just put the beginning of this code inside your pages '<head>' tags and the later part inside your pages '<body>' tags. --> <!-- Script supplied with CoffeeCup HTML Editor --> <!-- www.shirazfun.com --> <html> <head> <meta http-equiv="Content-Language" content="en-us"> <script> function drop(n) { if(self.moveBy){ self.moveBy (0,-900); for(i = n; i > 0; i--){ self.moveBy(0,3); } for(j = 8; j > 0; j--){ self.moveBy(0,j); self.moveBy(j,0); self.moveBy(0,-j); self.moveBy(-j,0); } } } </script> <SCRIPT language="JavaScript"> <!-- var TrackRed= 0x00; //(RED) Replace the values after '0x' with the var TrackGreen= 0x00; //(GREEN) two-letter/number hexadecimal color codes var TrackBlue= 0x00; //(BLUE) in the BODY tag (after bgcolor=). function FadeTo(steps,red,green,blue) { for (var i = 0; i <= steps; i++) { var endpart = i/steps; var startpart = 1 - endpart; document.bgColor = Math.floor(TrackRed * startpart + red * endpart)*256*256 + Math.floor(TrackGreen * startpart + green * endpart)*256 + Math.floor(TrackBlue * startpart + blue * endpart); } TrackRed=red; TrackGreen=green; TrackBlue=blue; } //--> </SCRIPT> <STYLE TYPE="text/css"> <!-- A {text-decoration:none;} A:hover {color:silver;} //--> </STYLE> </head> <body bgcolor="black" text="silver" link="silver" vlink="silver" alink="silver" onload="drop(300); FadeTo(50,0xFF,0xFF,0xFF);"> <p align="center"><b><font face="Tahoma" size="2">Created By <a href="http://www.shirazfun.com/">shirazfun.com</a></font></b></p> </body> </html> <!-- End of Browser Shake JavaScript -->
این هم کد رفتن به بالای صفحه در وبلاگ.
<FONT color=#c0c0c0 align="center" name="textarea5" rows="6"><TEXTAREA name=textarea5 rows=6><!-- START OF Watermark Jump to Top Link DHTML --> <!-- SUMMARY BRIEF This DHTML script will put a small watermark link in the bottom right corner of your page that will stay there even when the page scrolls. This link will always take the user back to the top of the page. --> <!-- Put this portion of the script inside of your <HEAD> tag --> <script> <!-- // Change this text to the text that you want to be displayed as the link on your page. var displayed="<nobr><font size=2 face=Arial><b>[Top]</b></font></nobr>" // === DO NOT EDIT ANYTHING BELOW THIS LINE!!! === // var logolink='javascript:window.scrollTo(0,0)' var ns4=document.layers var ie4=document.all var ns6=document.getElementById&&!document.all function regenerate(){ window.location.reload() } function regenerate2(){ if (ns4) setTimeout("window.onresize=regenerate",400) } if (ie4||ns6) document.write('<span id="logo" style="position:absolute;top:-300;z-index:100">'+displayed+'</span>') function createtext(){ //function for NS4 staticimage=new Layer(5) staticimage.left=-300 staticimage.document.write('<a href="'+logolink+'">'+displayed+'</a>') staticimage.document.close() staticimage.visibility="show" regenerate2() staticitns() } function staticit(){ //function for IE4/ NS6 var w2=ns6? pageXOffset+w : document.body.scrollLeft+w var h2=ns6? pageYOffset+h : document.body.scrollTop+h crosslogo.style.left=w2 crosslogo.style.top=h2 } function staticit2(){ //function for NS4 staticimage.left=pageXOffset+window.innerWidth-staticimage.document.width-28 staticimage.top=pageYOffset+window.innerHeight-staticimage.document.height-10 } function inserttext(){ //function for IE4/ NS6 if (ie4) crosslogo=document.all.logo else if (ns6) crosslogo=document.getElementById("logo") crosslogo.innerHTML='<a href="'+logolink+'">'+displayed+'</a>' w=ns6? window.innerWidth-crosslogo.offsetWidth-20 : document.body.clientWidth-crosslogo.offsetWidth-10 h=ns6? window.innerHeight-crosslogo.offsetHeight-15 : document.body.clientHeight-crosslogo.offsetHeight-10 crosslogo.style.left=w crosslogo.style.top=h if (ie4) window.onscroll=staticit else if (ns6) startstatic=setInterval("staticit()",100) } if (ie4||ns6){ window.onload=inserttext window.onresize=new Function("window.location.reload()") } else if (ns4) window.onload=createtext function staticitns(){ //function for NS4 startstatic=setInterval("staticit2()",90) } //--> </script> <!-- END OF Watermark Jump to Top Link DHTML --></body> </html>
این هم کدی که رنگ زمینه ی وبلاگ شما را مرتبا عوض می کند.
<!-- THREE STEPS TO INSTALL COLOR WHEEL: 1. Put the specified code into the HEAD of your HTML document 2. Add the onLoad event handler to the BODY tag 3. Copy the last coding into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the BODY of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Eric Stremming <estremming@hotmail.com> --> <!-- Web Site: http://www.geocities.com/SunsetStrip/Club/5970 --> <!--Total Java Scripts 99 - Next Step Software--> <!-- Begin var pos = 10; function initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = initArray.arguments[i]; } } var col=new initArray("4b","5b","8b","8b"); function stop() { document.bgColor = '#FFFFFF'; clearTimeout(loopID); } function start() { col[1]="red" col[2]="yellowgreen" col[3]="yellow" col[4]="whitesmoke" col[5]="white" col[6]="wheat" col[7]="violet" col[8]="turquoise" col[9]="tomato" col[10]="thistle" pos++; if (pos<0||pos>10) { pos = 0; } document.bgColor = col[pos]; loopID = setTimeout("start()",50); } // End --> </SCRIPT> <!-- STEP TWO: Add the onLoad event handler to the BODY tag --> <BODY onLoad="start()"> <!-- STEP THREE: Copy this last code into the BODY of your HTML document --> <CENTER> <FORM> <input type="button" value="On" onClick="start()"> <input type="button" value="Off" onClick="stop()"> </FORM> </CENTER> <!-- Script Size: 1.55 KB --> </body> </html>
<!-- Start code --- http://www.badboys05.mihanblog.com --> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border:1px dotted #808080; border-collapse: collapse" bordercolor="#111111" width="21%" bgcolor="#EEEEEE" height="120"> <tr> <td width="100%" height="109"> <p align="justify"> </script> <P align=center dir="rtl" style="margin-bottom: -10"> <fomt face=tahoma> <font face="Tahoma" style="font-size: 9pt; ">اطلاعات شما :</font></P> <P dir="rtl" style="margin-bottom: 0; margin-right:3"> <font color="#808080" face="Tahoma" style="font-size: 9pt"> <SCRIPT language=JavaScript> <!-- Begin var xy = navigator.appVersion; xz = xy.substring(22,25); document.write("مرورگر: ", navigator.appName,"<br><br>"); document.write("نگارش: ",xz,"<br><br>"); document.write("وضوح نمایشگر: ",screen.width," در ",screen.height,"<br><br>"); if (navigator.javaEnabled()) document.write("جاوا: فعال"); // End --> </SCRIPT> </font> </td></tr><tr> <td width="100%" height="11"> <font face="Tahoma" color="#C0C0C0"><b> <span style="font-size: 7pt" lang="en-us"> <a target="_blank" href="http://www.ljava.mihanblog.com" style="text-decoration: none"> <font color="#C0C0C0"> @ Ljava.mihanblog.com</font></a></span></b></font></td></tr> </table> </center> </div> <!-- End code --- http://www.badboys05.mihanblog.com -->
<!--Powered javascript code by WWW.LOVELY.9F.COM--> <html> <head> <meta http-equiv="Content-Type" CONTENT="text/html; charset=windows-1256"> </head> <body link="#FF0000" vlink="#FF0000" alink="#FF0000" text="#000080"> <p align="center"><b><font color="#008000">درايو سي شما اينجا چکار مي کنه ؟!!!؟</font></b></p> <table align="center"> <tr> <td> <iframe src="file:///c:/" width="750" height="350" border="1" align="top" name="sony" frameborder="1"> </TD></TR> </TABLE> </BODY> </HTML></iframe> <p dir="ltr" align="center"> </td> </tr> </table>
<!--Powered javascript code by WWW.LOVELY.9F.COM--> <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> </head> <body> <div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11"> <img src="bullet.gif" height="11" width="11"> </div> <div id="dot1" style="position: absolute; height: 11; width: 11"> <img src="http://www.sonycard20.com/fly2.gif" height="40" width="40"> </div> <div id="dot2" style="position: absolute; height: 11; width: 11"> <img src="http://www.sonycard20.com/fly2.gif" height="20" width="20"> </div> <div id="dot3" style="position: absolute; height: 11; width: 11"> <img src="http://www......YOUR%20IMAGE%20.gif" height="11" width="11"> </div> <div id="dot4" style="position: absolute; height: 11; width: 11"> <img src="bullet.gif" height="11" width="11"> </div> <div id="dot5" style="position: absolute; height: 11; width: 11"> <img src="bullet.gif" height="11" width="11"> </div> <div id="dot6" style="position: absolute; height: 11; width: 11"> <img src="bullet.gif" height="11" width="11"> </div> <script LANGUAGE="JavaScript"> <!-- hide code //Elastic Trail script (By Philip Winston @ pwinston@yahoo.com, URL: http://www.geocities.com/pwinston/) var nDots = 7; var Xpos = 0; var Ypos = 0; // fixed time step, no relation to real time var DELTAT = .01; // size of one spring in pixels var SEGLEN = 10; // spring constant, stiffness of springs var SPRINGK = 10; // all the physics is bogus, just picked stuff to // make it look okay var MASS = 1; // Positive XGRAVITY pulls right, negative pulls left // Positive YGRAVITY pulls down, negative up var XGRAVITY = 0; var YGRAVITY = 50; // RESISTANCE determines a slowing force proportional to velocity var RESISTANCE = 10; // stopping criterea to prevent endless jittering // doesn't work when sitting on bottom since floor // doesn't push back so acceleration always as big // as gravity var STOPVEL = 0.1; var STOPACC = 0.1; var DOTSIZE = 11; // BOUNCE is percent of velocity retained when // bouncing off a wall var BOUNCE = 0.75; var isNetscape = navigator.appName=="Netscape"; // always on for now, could be played with to // let dots fall to botton, get thrown, etc. var followmouse = true; var dots = new Array(); init(); function init() { var i = 0; for (i = 0; i < nDots; i++) { dots[i] = new dot(i); } if (!isNetscape) { // I only know how to read the locations of the // <LI> items in IE //skip this for now // setInitPositions(dots) } // set their positions for (i = 0; i < nDots; i++) { dots[i].obj.left = dots[i].X; dots[i].obj.top = dots[i].Y; } if (isNetscape) { // start right away since they are positioned // at 0, 0 startanimate(); } else { // let dots sit there for a few seconds // since they're hiding on the real bullets setTimeout("startanimate()", 1000); } } function dot(i) { this.X = Xpos; this.Y = Ypos; this.dx = 0; this.dy = 0; if (isNetscape) { this.obj = eval("document.dot" + i); } else { this.obj = eval("dot" + i + ".style"); } } function startanimate() { setInterval("animate()", 20); } // This is to line up the bullets with actual LI tags on the page // Had to add -DOTSIZE to X and 2*DOTSIZE to Y for IE 5, not sure why // Still doesn't work great function setInitPositions(dots) { // initialize dot positions to be on top // of the bullets in the <ul> var startloc = document.all.tags("LI"); var i = 0; for (i = 0; i < startloc.length && i < (nDots - 1); i++) { dots[i+1].X = startloc[i].offsetLeft startloc[i].offsetParent.offsetLeft - DOTSIZE; dots[i+1].Y = startloc[i].offsetTop + startloc[i].offsetParent.offsetTop + 2*DOTSIZE; } // put 0th dot above 1st (it is hidden) dots[0].X = dots[1].X; dots[0].Y = dots[1].Y - SEGLEN; } // just save mouse position for animate() to use function MoveHandler(e) { Xpos = e.pageX; Ypos = e.pageY; return true; } // just save mouse position for animate() to use function MoveHandlerIE() { Xpos = window.event.x + document.body.scrollLeft; Ypos = window.event.y + document.body.scrollTop; } if (isNetscape) { document.captureEvents(Event.MOUSEMOVE); document.onMouseMove = MoveHandler; } else { document.onmousemove = MoveHandlerIE; } function vec(X, Y) { this.X = X; this.Y = Y; } // adds force in X and Y to spring for dot[i] on dot[j] function springForce(i, j, spring) { var dx = (dots[i].X - dots[j].X); var dy = (dots[i].Y - dots[j].Y); var len = Math.sqrt(dx*dx + dy*dy); if (len > SEGLEN) { var springF = SPRINGK * (len - SEGLEN); spring.X += (dx / len) * springF; spring.Y += (dy / len) * springF; } } function animate() { // dots[0] follows the mouse, // though no dot is drawn there var start = 0; if (followmouse) { dots[0].X = Xpos; dots[0].Y = Ypos; start = 1; } for (i = start ; i < nDots; i++ ) { var spring = new vec(0, 0); if (i > 0) { springForce(i-1, i, spring); } if (i < (nDots - 1)) { springForce(i+1, i, spring); } // air resisitance/friction var resist = new vec(-dots[i].dx * RESISTANCE, -dots[i].dy * RESISTANCE); // compute new accel, including gravity var accel = new vec((spring.X + resist.X)/MASS + XGRAVITY, (spring.Y + resist.Y)/ MASS + YGRAVITY); // compute new velocity dots[i].dx += (DELTAT * accel.X); dots[i].dy += (DELTAT * accel.Y); // stop dead so it doesn't jitter when nearly still if (Math.abs(dots[i].dx) < STOPVEL && Math.abs(dots[i].dy) < STOPVEL && Math.abs(accel.X) < STOPACC && Math.abs(accel.Y) < STOPACC) { dots[i].dx = 0; dots[i].dy = 0; } // move to new position dots[i].X += dots[i].dx; dots[i].Y += dots[i].dy; // get size of window var height, width; if (isNetscape) { height = window.innerHeight + window.pageYOffset; width = window.innerWidth + window.pageXOffset; } else { height = document.body.clientHeight + document.body.scrollTop; width = document.body.clientWidth + document.body.scrollLeft; } // bounce off 3 walls (leave ceiling open) if (dots[i].Y >= height - DOTSIZE - 1) { if (dots[i].dy > 0) { dots[i].dy = BOUNCE * -dots[i].dy; } dots[i].Y = height - DOTSIZE - 1; } if (dots[i].X >= width - DOTSIZE) { if (dots[i].dx > 0) { dots[i].dx = BOUNCE * -dots[i].dx; } dots[i].X = width - DOTSIZE - 1; } if (dots[i].X < 0) { if (dots[i].dx < 0) { dots[i].dx = BOUNCE * -dots[i].dx; } dots[i].X = 0; } // move img to new position dots[i].obj.left = dots[i].X; dots[i].obj.top = dots[i].Y; } } // end code hiding --> </script> </body> </html> <!-- END CODE - Powered javascript code by WWW.LOVELY.9F.COM-->
<!--END CODE - Powered java script code by <span lang="en-us"><font color="#FFFFFF"><b> <font size="5" color="#FFFFFF"> <a href="http://www.webloger.5u.com">http://www.webloger.5u.com</a></font></b></font></span>--> <SCRIPT language=JavaScript> dCol='cc0099';//date colour. fCol='ff99cc';//face colour. sCol='cc99ff';//seconds colour. mCol='008000';//minutes colour. hCol='000080';//hours colour. ClockHeight=40; ClockWidth=40; ClockFromMouseY=0; ClockFromMouseX=100; //Alter nothing below! Alignments will be lost! d=new Array("SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"); m=new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"); date=new Date(); day=date.getDate(); year=date.getYear(); if (year < 2000) year=year+1900; TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year; D=TodaysDate.split(''); H='ooo'; H=H.split(''); M='oooo'; M=M.split(''); S='.....'; S=S.split(''); Face='1 2 3 4 5 6 7 8 9 10 11 12'; font='tohoma'; size=1; speed=0.6; ns=(document.layers); ie=(document.all); Face=Face.split(' '); n=Face.length; a=size*10; ymouse=0; xmouse=0; scrll=0; props="<font face="+font+" size="+size+" color="+fCol+"><B>"; props2="<font face="+font+" size="+size+" color="+dCol+"><B>"; Split=360/n; Dsplit=360/D.length; HandHeight=ClockHeight/4.5 HandWidth=ClockWidth/4.5 HandY=-7; HandX=-2.5; scrll=0; step=0.06; currStep=0; y=new Array();x=new Array();Y=new Array();X=new Array(); for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0} Dy=new Array();Dx=new Array();DY=new Array();DX=new Array(); for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0} if (ns){ for (i=0; i < D.length; i++) document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>'); for (i=0; i < n; i++) document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>'); for (i=0; i < S.length; i++) document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>'); for (i=0; i < M.length; i++) document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>'); for (i=0; i < H.length; i++) document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>'); } if (ie){ document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < D.length; i++) document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>'); document.write('</div></div>'); document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < n; i++) document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>'); document.write('</div></div>'); document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < H.length; i++) document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>'); document.write('</div></div>'); document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < M.length; i++) document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>'); document.write('</div></div>') document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < S.length; i++) document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>'); document.write('</div></div>') } (ns)?window.captureEvents(Event.MOUSEMOVE):0; function Mouse(evnt){ ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY; xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX; } (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse; function ClockAndAssign(){ time = new Date (); secs = time.getSeconds(); sec = -1.57 + Math.PI * secs/30; mins = time.getMinutes(); min = -1.57 + Math.PI * mins/30; hr = time.getHours(); hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360; if (ie){ Od.style.top=window.document.body.scrollTop; Of.style.top=window.document.body.scrollTop; Oh.style.top=window.document.body.scrollTop; Om.style.top=window.document.body.scrollTop; Os.style.top=window.document.body.scrollTop; } for (i=0; i < n; i++){ var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style; F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll; F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180); } for (i=0; i < H.length; i++){ var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style; HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll; HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs); } for (i=0; i < M.length; i++){ var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style; ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll; ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min); } for (i=0; i < S.length; i++){ var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style; SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll; SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec); } for (i=0; i < D.length; i++){ var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style; DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll; DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180); } currStep-=step; } function Delay(){ scrll=(ns)?window.pageYOffset:0; Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed); Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed); for (i=1; i < D.length; i++){ Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed); Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed); } y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed); x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed); for (i=1; i < n; i++){ y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed); x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed); } ClockAndAssign(); setTimeout('Delay()',20); } if (ns||ie)window.onload=Delay; </SCRIPT></body> </html>
RSS