دوستاني که از قالب هاي من استفاده مي کنند به من خبر بدهند
نمونه کار
دانلود قالب
موفق باشید
کد دوم برای : تقويم براي وبلاگها
کد سوم برای : نشان دهنده مدت زمان حضور كاربر در وبلاگ شما
کد چهارم برای : تاريخ ميلادي و فارسي براي وبلاگ شما
۱:
<!-- START OF Find In Page Form DHTML --> <!-- SUMMARY BRIEF This DHTML script mimics the Find (Ctrl+F) feature in your browser. It will look in the current page for whatever text the user inputs. If it finds the text, it hilights the text so the user can see it. If it doesn't find the text, it pops up a javascript alert stating that the text was not found on the current page. --> <!-- Put this portion of the script inside of your <HEAD> tag --> <script language="JavaScript"> var NS4 = (document.layers); var IE4 = (document.all); var win = window; var n = 0; function findInPage(str) { var txt, i, found; if (str == "") return false; if (NS4) { if (!win.find(str)) while(win.find(str, false, true)) n++; else n++; if (n == 0) alert("Not found."); } if (IE4) { txt = win.document.body.createTextRange(); for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) { txt.moveStart("character", 1); txt.moveEnd("textedit"); } if (found) { txt.moveStart("character", -1); txt.findText(str); txt.select(); txt.scrollIntoView(); n++; } else { if (n > 0) { n = 0; findInPage(str); } else alert("Not found."); } } return false; } </script> <!-- Put this code into your page where you want the search form to appear. --> <form name="search" onSubmit="return findInPage(this.string.value);"> <p align="center"> <a target="_blank" style="text-decoration: none" href="http://www.iransohrab.net"> <font color="#CCCCCC" style="font-size: 9pt"> <input name="string" type="text" size=15 onChange="n = 0;" style="border: 1px solid #C0C0C0; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1"></font><font color="#CCCCCC"><span style="font-size: 9pt"> <input type="submit" value="جستجو" style="border: 1px solid #C0C0C0; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #CCCCCC">www.</span></font><font color="#CCCCCC" face="Tahoma" style="font-size: 9pt">iransohrab.net</font></a></p> </form></body> </html>
<!-- ONE STEP TO INSTALL BG SCROLLER: 1. Copy the coding into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the BODY of your HTML document --> <BODY> <body background="آدرس وب عكس در اينجا"> <!-- Original: p.d (shervin_tanha7@yahoo.com) --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://shervin-hacker.blogfa.com --> <script language="JavaScript"> <!-- Begin var backgroundOffset = 0; var bgObject = eval('document.body'); function scrollBG(maxSize) { backgroundOffset = backgroundOffset + 1; if (backgroundOffset > maxSize) backgroundOffset = 0; bgObject.style.backgroundPosition = "0 " + backgroundOffset; } var ScrollTimer = window.setInterval("scrollBG(307)", 64); // End --> </script> <!-- Script Size: 0.72 KB --></body> </html> </body> </html>
توسط اين كدها شما قادر خواهيد بود كه به وبلاگ خود ساعت اضافه كنيد ...
<SCRIPT LANGUAGE="JavaScript"> var timerID = null; var timerRunning = false; function stopclock () { if(timerRunning) clearTimeout(timerID); timerRunning = false; } function showtime () { var now = new Date(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds() var timeValue = "" + ((hours >12) ? hours -12 :hours) timeValue += ((minutes < 10) ? ":0" : ":") + minutes timeValue += ((seconds < 10) ? ":0" : ":") + seconds timeValue += (hours >= 12) ? " P.M." : " A.M." document.clock.face.value = timeValue; // you could replace the above with this // and have a clock on the status bar: // window.status = timeValue; timerID = setTimeout("showtime()",1000); timerRunning = true; } function startclock () { // Make sure the clock is stopped stopclock(); showtime(); } </SCRIPT> <BODY onLoad="startclock(); timerONE=window.setTimeout" BGCOLOR="#FFFFFF" TEXT="ffffff"> <CENTER><form name="clock" onSubmit="0"> <input type="text" name="face" size=13 value=""></CENTER>1 <----> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: mohandes-computer (mahdik84@gmail.com) --> <!-- Web Site: http://mohandes-computer.blogfa.com --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! Http://mohandes-computer.blogfa.com --> <!-- Begin colors = new Array('330099','00ff00','ff00ff'); //Clock face colors. sCol = 'ff00ff'; //seconds colour. mCol = '00ff00'; //minutes colour. hCol = '330099'; //hours colour. //Alter nothing below! H = 'iransohrab..'; H = H.split(''); H = H.reverse(); M = 'mohandes-comuter..'; M = M.split(''); M = M.reverse(); S = 'java code..'; S = S.split(''); S = S.reverse(); dots = 12; var Ypos = 0,Xpos = 0,Ybase = 0,Xbase = 0; var ay = 0, ax = 0, Ay = 0, Ax = 0, by = 0, bx = 0, By = 0, Bx = 0, cy = 0, cx = 0, Cy = 0, Cx = 0, dy = 0, dx = 0, Dy = 0, Dx = 0; count = 0; count_a = 0; move = 1; ns = (document.layers)?1:0; viz = (document.layers)?'hide':'hidden'; if (ns) { for (I = 0; I < dots; I++) document.write('<layer name=nface'+I+' top=0 left=0 bgcolor=#ffffff clip="0,0,3,3"></layer>'); for (I = 0; I < S.length; I++) document.write('<layer name=nx'+I+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+sCol+'><center>'+S[I]+'</center></font></layer>'); for (I = 0; I < M.length; I++) document.write('<layer name=ny'+I+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+mCol+'><center>'+M[I]+'</center></font></layer>'); for (I = 0; I < H.length; I++) document.write('<layer name=nz'+I+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+hCol+'><center>'+H[I]+'</center></font></layer>'); } else{ document.write('<div id="W" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I = 0; I < dots; I++) { document.write('<div id="face" style="position:absolute;top:0px;left:0px;width:3px;height:3px;font-size:3px;background:#ffffff"></div>'); } document.write('</div></div>'); document.write('<div id="X" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I = 0; I < S.length; I++) { document.write('<div id="x" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+sCol+';text-align:center;padding-top:10px">'+S[I]+'</div>'); } document.write('</div></div>') document.write('<div id="Y" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I = 0; I < M.length; I++) { document.write('<div id="y" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+mCol+';text-align:center;padding-top:10px">'+M[I]+'</div>'); } document.write('</div></div>') document.write('<div id="Z" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I = 0; I < H.length; I++) { document.write('<div id="z" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+hCol+';text-align:center;padding-top:10px">'+H[I]+'</div>'); } document.write('</div></div>'); } if (ns) { window.captureEvents(Event.MOUSEMOVE); function nsMouse(evnt) { Ypos = evnt.pageY + 100; Xpos = evnt.pageX + 100; } window.onMouseMove = nsMouse; } else{ function ieMouse() { Ypos = event.y + 100; Xpos = event.x + 100; } document.onmousemove = ieMouse; } function clock() { 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; Ybase = 15; Xbase = 15; if (ns) { document.layers["nx"+0].visibility = viz; document.layers["ny"+0].visibility = viz; document.layers["nz"+0].visibility = viz; for (I = 0; I < S.length; I++) { document.layers["nx"+I].top = ay - 12 + (I * Ybase) * Math.sin(sec); document.layers["nx"+I].left = ax - 12 + (I * Xbase) * Math.cos(sec); } for (I = 0; I < M.length; I++) { document.layers["ny"+I].top = by - 12 + (I * Ybase) * Math.sin(min); document.layers["ny"+I].left = bx - 12 + (I * Xbase) * Math.cos(min); } for (I = 0; I < H.length; I++) { document.layers["nz"+I].top = cy - 12 + (I * Ybase) * Math.sin(hrs); document.layers["nz"+I].left = cx - 12 + (I * Xbase) * Math.cos(hrs); } for (I = 0; I < dots; ++I) { document.layers["nface"+I].top = dy - 2 + (70 * Math.sin(-0.49+dots+I/1.9)); document.layers["nface"+I].left = dx + 4 + (70 * Math.cos(-0.49+dots+I/1.9)); } } else { var scrll = document.body.scrollTop; W.style.pixelTop = scrll; X.style.pixelTop = scrll; Y.style.pixelTop = scrll; Z.style.pixelTop = scrll; x[0].style.visibility=viz; y[0].style.visibility = viz; z[0].style.visibility = viz; for (I = 0; I < S.length; I++) { x[I].style.pixelTop = ay - 12 + (I * Ybase) * Math.sin(sec); x[I].style.pixelLeft = ax - 12 + (I * Xbase) * Math.cos(sec); } for (I = 0; I < M.length; I++) { y[I].style.pixelTop = by - 12 + (I * Ybase) * Math.sin(min); y[I].style.pixelLeft = bx - 12 + (I * Xbase) * Math.cos(min); } for (I = 0; I < H.length; I++) { z[I].style.pixelTop = cy - 12 + (I * Ybase) * Math.sin(hrs); z[I].style.pixelLeft = cx - 12 + (I * Xbase) * Math.cos(hrs); } for (I = 0; I < dots; ++I) { face[I].style.pixelTop = dy + 6 + (70 * Math.sin(-0.49 + dots + I / 1.9)); face[I].style.pixelLeft = dx + 4 + (70 * Math.cos(-0.49 + dots + I / 1.9)); } } } function MouseFollow() { ay = Math.round(Ay += ((Ypos) - Ay) * 4 / 15); ax = Math.round(Ax += ((Xpos) - Ax) * 4 / 15); by = Math.round(By += (ay - By) * 4 / 15); bx = Math.round(Bx += (ax - Bx) * 4 / 15); cy = Math.round(Cy += (by - Cy) * 4 / 15); cx = Math.round(Cx += (bx - Cx) * 4 / 15); dy = Math.round(Dy += (cy - Dy) * 4 / 15); dx = Math.round(Dx += (cx - Dx) * 4 / 15); clock(); setTimeout('MouseFollow()',10); } function colorstep() { count +=move; if (count >= dots) {count=0;count_a += move} if (count_a == colors.length) count_a = 0; if (ns) document.layers["nface"+count].bgColor = colors[count_a]; else face[count].style.background = colors[count_a]; setTimeout('colorstep()',100) } function StartAll() { MouseFollow(); colorstep(); } if (document.layers || document.all) window.onload = StartAll; // End --> </script> </HEAD> <BODY> </BODY></HTML>2 <!-- THREE STEPS TO INSTALL CLOCK TYPE mohandes-computer.blogfa.com: 1. Paste the first code in the HEAD of your HTML document 2. Copy the onLoad event handler into the BODY tag 3. Add the last code in the BODY of your HTML document --> <!-- STEP ONE: Paste the first code in the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function showMilitaryTime() { if (document.form.showMilitary[0].checked) { return true; } return false; } function showTheHours(theHour) { if (showMilitaryTime() || (theHour > 0 && theHour < 13)) { if (theHour == "0") theHour = 12; return (theHour); } if (theHour == 0) { return (12); } return (theHour-12); } function showZeroFilled(inValue) { if (inValue > 9) { return "" + inValue; } return "0" + inValue; } function showAmPm() { if (showMilitaryTime()) { return (""); } if (now.getHours() < 12) { return (" am"); } return (" pm"); } function showTheTime() { now = new Date document.form.showTime.value = showTheHours(now.getHours()) + ":" + showZeroFilled(now.getMinutes()) + ":" + showZeroFilled(now.getSeconds()) + showAmPm() setTimeout("showTheTime()",1000) } // End --> </script> <BODY onLoad="showTheTime()"> <!-- STEP THREE: Add the last code in the BODY of your HTML document --> <BODY> <center><form name=form> <input type=text name=showTime size=11><p> <input type=radio name=showMilitary checked>Military Time<br> <input type=radio name=showMilitary>12 Hour Time<br> </form></center> </table> </form> </FONT> </CENTER> </center> </body></html>3 <SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! Http://mohandes-computer.blogfa.com --> <!-- Silly Clock 4 by mohandes-computer --> <!-- http://mohandes-computer.blogfa.com --> <!-- Begin sCol = '7788ff'; //seconds colour. mCol = '000000'; //minutes colour. hCol = 'ff0000'; //hours colour. fCol='0000ff';//face colour. dCol='fff000';//dot colour. ClockHeight=35; ClockWidth=35; ClockFromMouseY=80; ClockFromMouseX=5; //Alter nothing below! Alignments will be lost! ns=(document.layers); ie=(document.all); h=3; m=4; s=5; face='1 2 3 4 5 6 7 8 9 10 11 12'; face=face.split(' '); n=face.length; speed=0.6; ymouse=0; xmouse=0; scrll=0; p="<font face=Arial size=1 color="+fCol+">"; e=360/n; HandHeight=ClockHeight/4; HandWidth=ClockWidth/4; HandY=0; HandX=0; scrll=0; y=new Array();x=new Array();Y=new Array();X=new Array(); for (I=0; I < 37; 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 < n; I++){Dy[I]=0;Dx[I]=0;DY[I]=0;DX[I]=0} if (ns){ for (I=0; I < n; I++) document.write('<layer name="nsN'+I+'" top=0 left=0 height=15 width=15><center>'+p+face[I]+'</font></center></layer>'); for (I=0; I < n; I++) document.write('<layer name="nsD'+I+'" top=0 left=0 bgcolor='+dCol+' clip="0,0,2,2"></layer>'); for (I=0; I < h; I++) document.write('<layer name=nsH'+I+' top=0 left=0 bgcolor='+hCol+' clip="0,0,2,2"></layer>'); for (I=0; I < m; I++) document.write('<layer name=nsM'+I+' top=0 left=0 bgcolor='+mCol+' clip="0,0,2,2"></layer>'); for (I=0; I < s; I++) document.write('<layer name=nsS'+I+' top=0 left=0 bgcolor='+sCol+' clip="0,0,2,2"></layer>'); } if (ie){ document.write('<div id="On" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I=0; I < n; I++) document.write('<div id="ieN" style="position:absolute;width:15px;height:15px;text-align:center">'+p+face[I]+'</font></div>'); document.write('</div></div>'); document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I=0; I < n; I++) document.write('<div id="ieD" style="position:absolute;height:2px;width:2px;font-size:2px;background:'+dCol+'"></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; I++) document.write('<div id="ieH" style="position:absolute;width:2px;height:2px;font-size:2px;background:'+hCol+'"></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; I++) document.write('<div id="ieM" style="position:absolute;width:2px;height:2px;font-size:2px;background:'+mCol+'"></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; I++) document.write('<div id="ieS" style="position:absolute;width:2px;height:2px;font-size:2px;background:'+sCol+'"></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){ On.style.top=window.document.body.scrollTop; Od.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 < s; I++){ var sd=(ns)?document.layers['nsS'+I]:ieS[I].style; sd.top=y[8+I]+HandY+(I*HandHeight)*Math.sin(sec)+scrll; sd.left=x[8+I]+HandX+(I*HandWidth)*Math.cos(sec); } for (I=0; I < m; I++){ var md=(ns)?document.layers['nsM'+I]:ieM[I].style; md.top=y[4+I]+HandY+(I*HandHeight)*Math.sin(min)+scrll; md.left=x[4+I]+HandX+(I*HandWidth)*Math.cos(min); } for (I=0; I < h; I++){ var hd=(ns)?document.layers['nsH'+I]:ieH[I].style; hd.top=y[1+I]+HandY+(I*HandHeight)*Math.sin(hrs)+scrll; hd.left=x[1+I]+HandX+(I*HandWidth)*Math.cos(hrs); } for (I=0; I < n; I++){ var D=(ns)?document.layers['nsD'+I]:ieD[I].style; D.top=y[13+I] + ClockHeight*Math.sin(-1.0471 + I*e*Math.PI/180)+scrll; D.left=x[13+I] + ClockWidth*Math.cos(-1.0471 + I*e*Math.PI/180); } for (I=0; I < n; I++){ var N=(ns)?document.layers['nsN'+I]:ieN[I].style; N.top=y[25+I]-6 + ClockHeight*1.4*Math.sin(-1.0471 + I*e*Math.PI/180)+scrll; N.left=x[25+I]-6 + ClockWidth*1.4*Math.cos(-1.0471 + I*e*Math.PI/180); } } function Delay(){ scrll=(ns)?window.pageYOffset:0; y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed); x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed); for (I=1; I < 37; 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; // End --> </script> </BODY></HTML>4 <!-- THREE STEPS TO INSTALL CLOCK TYPE mohandes-computer.blogfa.com: 1. Paste the first code in the HEAD of your HTML document 2. Copy the onLoad event handler into the BODY tag 3. Add the last code in the BODY of your HTML document --> <!-- STEP ONE: Paste the first code in the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function showMilitaryTime() { if (document.form.showMilitary[0].checked) { return true; } return false; } function showTheHours(theHour) { if (showMilitaryTime() || (theHour > 0 && theHour < 13)) { if (theHour == "0") theHour = 12; return (theHour); } if (theHour == 0) { return (12); } return (theHour-12); } function showZeroFilled(inValue) { if (inValue > 9) { return "" + inValue; } return "0" + inValue; } function showAmPm() { if (showMilitaryTime()) { return (""); } if (now.getHours() < 12) { return (" am"); } return (" pm"); } function showTheTime() { now = new Date document.form.showTime.value = showTheHours(now.getHours()) + ":" + showZeroFilled(now.getMinutes()) + ":" + showZeroFilled(now.getSeconds()) + showAmPm() setTimeout("showTheTime()",1000) } // End --> </script> <BODY onLoad="showTheTime()"> <!-- STEP THREE: Add the last code in the BODY of your HTML document --> <BODY> <center><form name=form> <input type=text name=showTime size=11><p> <input type=radio name=showMilitary checked>Military Time<br> <input type=radio name=showMilitary>12 Hour Time<br> </form></center> </table> </form> </FONT> </CENTER> </center> </body></html>5 <SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! Http://mohandes-computer.blogfa.com--> <!-- Begin <!--By: iransohrab (mahdik84@gmail.com) --> <!-- Web Site: http://mohandes-computer.blogfa.com --> function displaydatetime() { if (!document.layers && !document.all) return; var today; var timeLocal; var timeUTC; today = new Date(); timeLocal = today.toLocaleString() + " " + "Local"; //Convert to current locale. timeUTC = today.toUTCString(); //Convert to UTC. if (document.layers) { document.layers.clockLocal.document.write(timeLocal); document.layers.clockLocal.document.close(); document.layers.clockUTC.document.write(timeUTC); document.layers.clockUTC.document.close();} else if (document.all) { clockLocal.innerHTML = timeLocal; clockUTC.innerHTML = timeUTC;} setTimeout("displaydatetime()", 500) } window.onload = displaydatetime; // End --> </script> </HEAD> <body> <span id=clockLocal style="position:relative;"></span><br> <span id=clockUTC style="position:relative;"></span> </BODY></HTML>6 <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <head> <script language="JavaScript"> <!-- hiding function MakeArrayday(size) { this.length = size; for(var i = 1; i <= size; i++) { this[i] = ""; } return this; } function MakeArraymonth(size) { this.length = size; for(var i = 1; i <= size; i++) { this[i] = ""; } return this; } function funClock() { if (!document.layers && !document.all) return; var runTime = new Date(); var hours = runTime.getHours(); var minutes = runTime.getMinutes(); var seconds = runTime.getSeconds(); var dn = "قبل از ظهر"; if (hours >= 12) { dn = "بعد از ظهر"; hours = hours - 12; } if (hours == 0) { hours = 12; } if (minutes <= 9) { minutes = "0" + minutes; } if (seconds <= 9) { seconds = "0" + seconds; } movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + " " + dn + "</b>"; if (document.layers) { document.layers.clock.document.write(movingtime); document.layers.clock.document.close(); } else if (document.all) { clock.innerHTML = movingtime; } setTimeout("funClock()", 1000) } window.onload = funClock; // End --> </script> </head> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <body> <span id=clock style="position:relative;"></span>7
<SCRIPT LANGUAGE="JavaScript"> var timerID = null; var timerRunning = false; function stopclock () { if(timerRunning) clearTimeout(timerID); timerRunning = false; } function showtime () { var now = new Date(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds() var timeValue = "" + ((hours >12) ? hours -12 :hours) timeValue += ((minutes < 10) ? ":0" : ":") + minutes timeValue += ((seconds < 10) ? ":0" : ":") + seconds timeValue += (hours >= 12) ? " P.M." : " A.M." document.clock.face.value = timeValue; // you could replace the above with this // and have a clock on the status bar: // window.status = timeValue; timerID = setTimeout("showtime()",1000); timerRunning = true; } function startclock () { // Make sure the clock is stopped stopclock(); showtime(); } </SCRIPT> <BODY onLoad="startclock(); timerONE=window.setTimeout" BGCOLOR="#FFFFFF" TEXT="ffffff"> <CENTER><form name="clock" onSubmit="0"> <input type="text" name="face" size=13 value=""></CENTER>1
<----> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: mohandes-computer (mahdik84@gmail.com) --> <!-- Web Site: http://mohandes-computer.blogfa.com --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! Http://mohandes-computer.blogfa.com --> <!-- Begin colors = new Array('330099','00ff00','ff00ff'); //Clock face colors. sCol = 'ff00ff'; //seconds colour. mCol = '00ff00'; //minutes colour. hCol = '330099'; //hours colour. //Alter nothing below! H = 'iransohrab..'; H = H.split(''); H = H.reverse(); M = 'mohandes-comuter..'; M = M.split(''); M = M.reverse(); S = 'java code..'; S = S.split(''); S = S.reverse(); dots = 12; var Ypos = 0,Xpos = 0,Ybase = 0,Xbase = 0; var ay = 0, ax = 0, Ay = 0, Ax = 0, by = 0, bx = 0, By = 0, Bx = 0, cy = 0, cx = 0, Cy = 0, Cx = 0, dy = 0, dx = 0, Dy = 0, Dx = 0; count = 0; count_a = 0; move = 1; ns = (document.layers)?1:0; viz = (document.layers)?'hide':'hidden'; if (ns) { for (I = 0; I < dots; I++) document.write('<layer name=nface'+I+' top=0 left=0 bgcolor=#ffffff clip="0,0,3,3"></layer>'); for (I = 0; I < S.length; I++) document.write('<layer name=nx'+I+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+sCol+'><center>'+S[I]+'</center></font></layer>'); for (I = 0; I < M.length; I++) document.write('<layer name=ny'+I+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+mCol+'><center>'+M[I]+'</center></font></layer>'); for (I = 0; I < H.length; I++) document.write('<layer name=nz'+I+' top=0 left=0 width=36 height=36><font face=Verdana size=2 color='+hCol+'><center>'+H[I]+'</center></font></layer>'); } else{ document.write('<div id="W" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I = 0; I < dots; I++) { document.write('<div id="face" style="position:absolute;top:0px;left:0px;width:3px;height:3px;font-size:3px;background:#ffffff"></div>'); } document.write('</div></div>'); document.write('<div id="X" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I = 0; I < S.length; I++) { document.write('<div id="x" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+sCol+';text-align:center;padding-top:10px">'+S[I]+'</div>'); } document.write('</div></div>') document.write('<div id="Y" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I = 0; I < M.length; I++) { document.write('<div id="y" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+mCol+';text-align:center;padding-top:10px">'+M[I]+'</div>'); } document.write('</div></div>') document.write('<div id="Z" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I = 0; I < H.length; I++) { document.write('<div id="z" style="position:absolute;width:36px;height:36px;font-family:Verdana;font-size:12px;color:'+hCol+';text-align:center;padding-top:10px">'+H[I]+'</div>'); } document.write('</div></div>'); } if (ns) { window.captureEvents(Event.MOUSEMOVE); function nsMouse(evnt) { Ypos = evnt.pageY + 100; Xpos = evnt.pageX + 100; } window.onMouseMove = nsMouse; } else{ function ieMouse() { Ypos = event.y + 100; Xpos = event.x + 100; } document.onmousemove = ieMouse; } function clock() { 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; Ybase = 15; Xbase = 15; if (ns) { document.layers["nx"+0].visibility = viz; document.layers["ny"+0].visibility = viz; document.layers["nz"+0].visibility = viz; for (I = 0; I < S.length; I++) { document.layers["nx"+I].top = ay - 12 + (I * Ybase) * Math.sin(sec); document.layers["nx"+I].left = ax - 12 + (I * Xbase) * Math.cos(sec); } for (I = 0; I < M.length; I++) { document.layers["ny"+I].top = by - 12 + (I * Ybase) * Math.sin(min); document.layers["ny"+I].left = bx - 12 + (I * Xbase) * Math.cos(min); } for (I = 0; I < H.length; I++) { document.layers["nz"+I].top = cy - 12 + (I * Ybase) * Math.sin(hrs); document.layers["nz"+I].left = cx - 12 + (I * Xbase) * Math.cos(hrs); } for (I = 0; I < dots; ++I) { document.layers["nface"+I].top = dy - 2 + (70 * Math.sin(-0.49+dots+I/1.9)); document.layers["nface"+I].left = dx + 4 + (70 * Math.cos(-0.49+dots+I/1.9)); } } else { var scrll = document.body.scrollTop; W.style.pixelTop = scrll; X.style.pixelTop = scrll; Y.style.pixelTop = scrll; Z.style.pixelTop = scrll; x[0].style.visibility=viz; y[0].style.visibility = viz; z[0].style.visibility = viz; for (I = 0; I < S.length; I++) { x[I].style.pixelTop = ay - 12 + (I * Ybase) * Math.sin(sec); x[I].style.pixelLeft = ax - 12 + (I * Xbase) * Math.cos(sec); } for (I = 0; I < M.length; I++) { y[I].style.pixelTop = by - 12 + (I * Ybase) * Math.sin(min); y[I].style.pixelLeft = bx - 12 + (I * Xbase) * Math.cos(min); } for (I = 0; I < H.length; I++) { z[I].style.pixelTop = cy - 12 + (I * Ybase) * Math.sin(hrs); z[I].style.pixelLeft = cx - 12 + (I * Xbase) * Math.cos(hrs); } for (I = 0; I < dots; ++I) { face[I].style.pixelTop = dy + 6 + (70 * Math.sin(-0.49 + dots + I / 1.9)); face[I].style.pixelLeft = dx + 4 + (70 * Math.cos(-0.49 + dots + I / 1.9)); } } } function MouseFollow() { ay = Math.round(Ay += ((Ypos) - Ay) * 4 / 15); ax = Math.round(Ax += ((Xpos) - Ax) * 4 / 15); by = Math.round(By += (ay - By) * 4 / 15); bx = Math.round(Bx += (ax - Bx) * 4 / 15); cy = Math.round(Cy += (by - Cy) * 4 / 15); cx = Math.round(Cx += (bx - Cx) * 4 / 15); dy = Math.round(Dy += (cy - Dy) * 4 / 15); dx = Math.round(Dx += (cx - Dx) * 4 / 15); clock(); setTimeout('MouseFollow()',10); } function colorstep() { count +=move; if (count >= dots) {count=0;count_a += move} if (count_a == colors.length) count_a = 0; if (ns) document.layers["nface"+count].bgColor = colors[count_a]; else face[count].style.background = colors[count_a]; setTimeout('colorstep()',100) } function StartAll() { MouseFollow(); colorstep(); } if (document.layers || document.all) window.onload = StartAll; // End --> </script> </HEAD> <BODY> </BODY></HTML>2
<!-- THREE STEPS TO INSTALL CLOCK TYPE mohandes-computer.blogfa.com: 1. Paste the first code in the HEAD of your HTML document 2. Copy the onLoad event handler into the BODY tag 3. Add the last code in the BODY of your HTML document --> <!-- STEP ONE: Paste the first code in the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function showMilitaryTime() { if (document.form.showMilitary[0].checked) { return true; } return false; } function showTheHours(theHour) { if (showMilitaryTime() || (theHour > 0 && theHour < 13)) { if (theHour == "0") theHour = 12; return (theHour); } if (theHour == 0) { return (12); } return (theHour-12); } function showZeroFilled(inValue) { if (inValue > 9) { return "" + inValue; } return "0" + inValue; } function showAmPm() { if (showMilitaryTime()) { return (""); } if (now.getHours() < 12) { return (" am"); } return (" pm"); } function showTheTime() { now = new Date document.form.showTime.value = showTheHours(now.getHours()) + ":" + showZeroFilled(now.getMinutes()) + ":" + showZeroFilled(now.getSeconds()) + showAmPm() setTimeout("showTheTime()",1000) } // End --> </script> <BODY onLoad="showTheTime()"> <!-- STEP THREE: Add the last code in the BODY of your HTML document --> <BODY> <center><form name=form> <input type=text name=showTime size=11><p> <input type=radio name=showMilitary checked>Military Time<br> <input type=radio name=showMilitary>12 Hour Time<br> </form></center> </table> </form> </FONT> </CENTER> </center> </body></html>3
<SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! Http://mohandes-computer.blogfa.com --> <!-- Silly Clock 4 by mohandes-computer --> <!-- http://mohandes-computer.blogfa.com --> <!-- Begin sCol = '7788ff'; //seconds colour. mCol = '000000'; //minutes colour. hCol = 'ff0000'; //hours colour. fCol='0000ff';//face colour. dCol='fff000';//dot colour. ClockHeight=35; ClockWidth=35; ClockFromMouseY=80; ClockFromMouseX=5; //Alter nothing below! Alignments will be lost! ns=(document.layers); ie=(document.all); h=3; m=4; s=5; face='1 2 3 4 5 6 7 8 9 10 11 12'; face=face.split(' '); n=face.length; speed=0.6; ymouse=0; xmouse=0; scrll=0; p="<font face=Arial size=1 color="+fCol+">"; e=360/n; HandHeight=ClockHeight/4; HandWidth=ClockWidth/4; HandY=0; HandX=0; scrll=0; y=new Array();x=new Array();Y=new Array();X=new Array(); for (I=0; I < 37; 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 < n; I++){Dy[I]=0;Dx[I]=0;DY[I]=0;DX[I]=0} if (ns){ for (I=0; I < n; I++) document.write('<layer name="nsN'+I+'" top=0 left=0 height=15 width=15><center>'+p+face[I]+'</font></center></layer>'); for (I=0; I < n; I++) document.write('<layer name="nsD'+I+'" top=0 left=0 bgcolor='+dCol+' clip="0,0,2,2"></layer>'); for (I=0; I < h; I++) document.write('<layer name=nsH'+I+' top=0 left=0 bgcolor='+hCol+' clip="0,0,2,2"></layer>'); for (I=0; I < m; I++) document.write('<layer name=nsM'+I+' top=0 left=0 bgcolor='+mCol+' clip="0,0,2,2"></layer>'); for (I=0; I < s; I++) document.write('<layer name=nsS'+I+' top=0 left=0 bgcolor='+sCol+' clip="0,0,2,2"></layer>'); } if (ie){ document.write('<div id="On" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I=0; I < n; I++) document.write('<div id="ieN" style="position:absolute;width:15px;height:15px;text-align:center">'+p+face[I]+'</font></div>'); document.write('</div></div>'); document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (I=0; I < n; I++) document.write('<div id="ieD" style="position:absolute;height:2px;width:2px;font-size:2px;background:'+dCol+'"></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; I++) document.write('<div id="ieH" style="position:absolute;width:2px;height:2px;font-size:2px;background:'+hCol+'"></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; I++) document.write('<div id="ieM" style="position:absolute;width:2px;height:2px;font-size:2px;background:'+mCol+'"></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; I++) document.write('<div id="ieS" style="position:absolute;width:2px;height:2px;font-size:2px;background:'+sCol+'"></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){ On.style.top=window.document.body.scrollTop; Od.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 < s; I++){ var sd=(ns)?document.layers['nsS'+I]:ieS[I].style; sd.top=y[8+I]+HandY+(I*HandHeight)*Math.sin(sec)+scrll; sd.left=x[8+I]+HandX+(I*HandWidth)*Math.cos(sec); } for (I=0; I < m; I++){ var md=(ns)?document.layers['nsM'+I]:ieM[I].style; md.top=y[4+I]+HandY+(I*HandHeight)*Math.sin(min)+scrll; md.left=x[4+I]+HandX+(I*HandWidth)*Math.cos(min); } for (I=0; I < h; I++){ var hd=(ns)?document.layers['nsH'+I]:ieH[I].style; hd.top=y[1+I]+HandY+(I*HandHeight)*Math.sin(hrs)+scrll; hd.left=x[1+I]+HandX+(I*HandWidth)*Math.cos(hrs); } for (I=0; I < n; I++){ var D=(ns)?document.layers['nsD'+I]:ieD[I].style; D.top=y[13+I] + ClockHeight*Math.sin(-1.0471 + I*e*Math.PI/180)+scrll; D.left=x[13+I] + ClockWidth*Math.cos(-1.0471 + I*e*Math.PI/180); } for (I=0; I < n; I++){ var N=(ns)?document.layers['nsN'+I]:ieN[I].style; N.top=y[25+I]-6 + ClockHeight*1.4*Math.sin(-1.0471 + I*e*Math.PI/180)+scrll; N.left=x[25+I]-6 + ClockWidth*1.4*Math.cos(-1.0471 + I*e*Math.PI/180); } } function Delay(){ scrll=(ns)?window.pageYOffset:0; y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed); x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed); for (I=1; I < 37; 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; // End --> </script> </BODY></HTML>4
<!-- THREE STEPS TO INSTALL CLOCK TYPE mohandes-computer.blogfa.com: 1. Paste the first code in the HEAD of your HTML document 2. Copy the onLoad event handler into the BODY tag 3. Add the last code in the BODY of your HTML document --> <!-- STEP ONE: Paste the first code in the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function showMilitaryTime() { if (document.form.showMilitary[0].checked) { return true; } return false; } function showTheHours(theHour) { if (showMilitaryTime() || (theHour > 0 && theHour < 13)) { if (theHour == "0") theHour = 12; return (theHour); } if (theHour == 0) { return (12); } return (theHour-12); } function showZeroFilled(inValue) { if (inValue > 9) { return "" + inValue; } return "0" + inValue; } function showAmPm() { if (showMilitaryTime()) { return (""); } if (now.getHours() < 12) { return (" am"); } return (" pm"); } function showTheTime() { now = new Date document.form.showTime.value = showTheHours(now.getHours()) + ":" + showZeroFilled(now.getMinutes()) + ":" + showZeroFilled(now.getSeconds()) + showAmPm() setTimeout("showTheTime()",1000) } // End --> </script> <BODY onLoad="showTheTime()"> <!-- STEP THREE: Add the last code in the BODY of your HTML document --> <BODY> <center><form name=form> <input type=text name=showTime size=11><p> <input type=radio name=showMilitary checked>Military Time<br> <input type=radio name=showMilitary>12 Hour Time<br> </form></center> </table> </form> </FONT> </CENTER> </center> </body></html>5
<SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! Http://mohandes-computer.blogfa.com--> <!-- Begin <!--By: iransohrab (mahdik84@gmail.com) --> <!-- Web Site: http://mohandes-computer.blogfa.com --> function displaydatetime() { if (!document.layers && !document.all) return; var today; var timeLocal; var timeUTC; today = new Date(); timeLocal = today.toLocaleString() + " " + "Local"; //Convert to current locale. timeUTC = today.toUTCString(); //Convert to UTC. if (document.layers) { document.layers.clockLocal.document.write(timeLocal); document.layers.clockLocal.document.close(); document.layers.clockUTC.document.write(timeUTC); document.layers.clockUTC.document.close();} else if (document.all) { clockLocal.innerHTML = timeLocal; clockUTC.innerHTML = timeUTC;} setTimeout("displaydatetime()", 500) } window.onload = displaydatetime; // End --> </script> </HEAD> <body> <span id=clockLocal style="position:relative;"></span><br> <span id=clockUTC style="position:relative;"></span> </BODY></HTML>6
<!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <head> <script language="JavaScript"> <!-- hiding function MakeArrayday(size) { this.length = size; for(var i = 1; i <= size; i++) { this[i] = ""; } return this; } function MakeArraymonth(size) { this.length = size; for(var i = 1; i <= size; i++) { this[i] = ""; } return this; } function funClock() { if (!document.layers && !document.all) return; var runTime = new Date(); var hours = runTime.getHours(); var minutes = runTime.getMinutes(); var seconds = runTime.getSeconds(); var dn = "قبل از ظهر"; if (hours >= 12) { dn = "بعد از ظهر"; hours = hours - 12; } if (hours == 0) { hours = 12; } if (minutes <= 9) { minutes = "0" + minutes; } if (seconds <= 9) { seconds = "0" + seconds; } movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + " " + dn + "</b>"; if (document.layers) { document.layers.clock.document.write(movingtime); document.layers.clock.document.close(); } else if (document.all) { clock.innerHTML = movingtime; } setTimeout("funClock()", 1000) } window.onload = funClock; // End --> </script> </head> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <body> <span id=clock style="position:relative;"></span>7
<font face="Tahoma" size="2" color="#000000"> <object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer1" width="150" height="45"> <param name="URL" ref value="http://www.asemani.org/parsplanet.asx"> <param name="rate" value="1"> <param name="balance" value="0"> <param name="currentPosition" value="0"> <param name="defaultFrame" value> <param name="playCount" value="1"> <param name="autoStart" value="-1"> <param name="currentMarker" value="0"> <param name="invokeURLs" value="-1"> <param name="baseURL" value> <param name="volume" value="50"> <param name="mute" value="0"> <param name="uiMode" value="full"> <param name="stretchToFit" value="0"> <param name="windowlessVideo" value="0"> <param name="enabled" value="-1"> <param name="enableContextMenu" value="-1"> <param name="fullScreen" value="0"> <param name="SAMIStyle" value> <param name="SAMILang" value> <param name="SAMIFilename" value> <param name="captioningID" value> <param name="enableErrorDialogs" value="0"> </object></font></body> </html> </body> </html> </body> </html> </body> </html>
اما کد اول ۳ تا کانتر :
کانتر اول تعداد بازدید های کلی را مشخص می کند .
کانتر دوم تعداد افراد آنلاین را مشخص می کند .
اما کانتر سوم تعداد بازدید های شما را از اون وبلاگ مشخص می کند .
برای داشتن این کانتر عالی باید اوا کد زیر را بین و کپی کنید :
<script language="javascript" src="https://www.sharemation.com\tavoosi\bikaran.weblog\bikaran\yourcounter.js"></script> <!--//this should be placed between <head> & </head> ---></body> </html>
<style>body{cursor:url("آدرس فایل");}</style></body> </html> </body> </html>