منوي سيار :
<script><br /> if (!document.layers)<br /> document.write('<div id="divStayTopLeft" style="position:absolute">')<br /> </script></p> <p><layer id="divStayTopLeft"></p> <p><!--EDIT BELOW CODE TO YOUR OWN MENU--><br /> <table border="1" width="130" cellspacing="0" cellpadding="0"><br /> <tr><br /> <td width="100%" bgcolor="#FFFFCC"><br /> <p align="center"><font size="4" face="Tahoma">Menu</font></td><br /> </tr><br /> <tr><br /> <td width="100%" bgcolor="#FFFFFF"><br /> <p align="left"> <font face="Tahoma"> <br /> <a href="http://spirit.blogsky.com" style="text-decoration: none">spirit</a><br><br /> <a href="http://java.download.ir" style="text-decoration: none">java</a><br><br /> <a href="http://download.ir" style="text-decoration: none">download</a><br><br /> <a href="URL" style="text-decoration: none">text</a><br><br /> <a href="URL" style="text-decoration: none">text</a></font></td><br /> </tr><br /> </table><br /> <!--END OF EDIT--></p> <p></layer></p> <p><br /> <script type="text/javascript"></p> <p>/*<br /> this script got from java.download.ir (spirit.blogsky.com)<br /> */</p> <p>//Enter "frombottom" or "fromtop"<br /> var verticalpos="frombottom"</p> <p>if (!document.layers)<br /> document.write('</div>')</p> <p>function JSFX_FloatTopDiv()<br /> {<br /> var startX = 3,<br /> startY = 150;<br /> var ns = (navigator.appName.indexOf("Netscape") != -1);<br /> var d = document;<br /> function ml(id)<br /> {<br /> var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];<br /> if(d.layers)el.style=el;<br /> el.sP=function(x,y){this.style.left=x;this.style.top=y;};<br /> el.x = startX;<br /> if (verticalpos=="fromtop")<br /> el.y = startY;<br /> else{<br /> el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;<br /> el.y -= startY;<br /> }<br /> return el;<br /> }<br /> window.stayTopLeft=function()<br /> {<br /> if (verticalpos=="fromtop"){<br /> var pY = ns ? pageYOffset : document.body.scrollTop;<br /> ftlObj.y += (pY + startY - ftlObj.y)/8;<br /> }<br /> else{<br /> var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;<br /> ftlObj.y += (pY - startY - ftlObj.y)/8;<br /> }<br /> ftlObj.sP(ftlObj.x, ftlObj.y);<br /> setTimeout("stayTopLeft()", 10);<br /> }<br /> ftlObj = ml("divStayTopLeft");<br /> stayTopLeft();<br /> }<br /> JSFX_FloatTopDiv();<br /> </script><br />
باز کننده صفحه :
<title>Congratulations!</title><br /> <style Type=Text/CSS><br /> <!--<br /> .Close {<br /> font-family: "Trebuchet MS";<br /> font-size: 18px;<br /> font-weight: bold;<br /> color: #FFFF00;<br /> }<br /> A:Link {color:#FFFF00;text-decoration: none;}<br /> A:Visited {color:#FFFF00;text-decoration: none;}<br /> A:Active {color:#FFFF00;text-decoration: none;}<br /> A:Hover {color:#FFFFFF;text-decoration: underline;}<br /> --><br /> </style><br /> <script language="JavaScript" type="text/JavaScript"><br /> <!--<br /> function TB_animateWindow(windowWidth,windowHeight,targetWidth,targetHeight,widthMod,heightMod,fullScreen)<br /> {<br /> // www.download.ir<br /> // www.spirit.it.tt</p> <p> if (fullScreen)<br /> {<br /> targetWidth = screen.availWidth;<br /> targetHeight = screen.availHeight;<br /> }</p> <p> if (windowWidth < targetWidth) windowWidth += widthMod;<br /> if (windowHeight < targetHeight) windowHeight += heightMod;</p> <p> windowLeft = (screen.availWidth / 2) - (windowWidth / 2);<br /> windowTop = (screen.availHeight / 2) - (windowHeight / 2);</p> <p> top.window.resizeTo(windowWidth,windowHeight);<br /> top.window.moveTo(windowLeft,windowTop);</p> <p> if (windowWidth < targetWidth || windowHeight < targetHeight)<br /> setTimeout('TB_animateWindow(' + windowWidth + ', ' + windowHeight + ', ' + targetWidth + ', ' + targetHeight + ', ' + widthMod + ', ' + heightMod + ', ' + fullScreen + ');',10);<br /> }<br /> //--><br /> </script><br /> </head></p> <p><body bgcolor=#C0C0C0 onLoad="TB_animateWindow(700,300,0,0,20,20,true)" link="#FFFFFF"></p> <p> <script language=JavaScript><br /> function disableIE() {if (document.all) {return false;}<br /> }<br /> function disableNS(e) {<br /> if (document.layers||(document.getElementById&&!document.all)) {<br /> if (e.which==2||e.which==3) {return false;}<br /> }<br /> }<br /> if (document.layers) {<br /> document.captureEvents(Event.MOUSEDOWN);document.onmousedown=disableNS;<br /> } else {<br /> document.onmouseup=disableNS;document.oncontextmenu=disableIE;<br /> }<br /> document.oncontextmenu=new Function("return false")<br /> </script>
ارسال صفحه :
<!-- TWO STEPS TO INSTALL EMAIL THIS PAGE: 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: Ronnie T. Moore --> <!-- Web Site: The JavaScript Source --> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <!-- Begin function initMail(form) { text = "Check out this page: " + window.location; form.message.value = "Hi " + form.sendto.value + " (" + form.to.value + "):\n\n" + text + "\n\nYour Friend,\n" + form.sendername.value + "(" + form.senderemail.value + ")"; return (form.to.value != ""); } // End --> </script> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <center> <form name=emailform method=post action="http://cgi.freedback.com/mail.pl" target="_new" onSubmit="return initMail(this);"> <input type=hidden name=subject value="** Check Out This Site! **"> <input type=hidden name=message value=""> <table> <tr><td colspan=2 align=center>Tell a friend about this page!</td></tr> <tr><td>Their Name:</td><td><input type=text name=sendto></td></tr> <tr><td>Their Email:</td><td><input type=text name=to></td></tr> <tr><td>Your Name:</td><td><input type=text name=sendername></td></tr> <tr><td>Your Email:</td><td><input type=text name=senderemail></td></tr> <tr><td colspan=2 align=center><input type=submit value="Ok!"></td></tr> </table> </form> </center> <p><center> <font face="arial, helvetica" size="-2">Free JavaScripts provided<br> </center><p> <!-- Script Size: 1.63 KB --></body> </html>
جدول چشمک زن :
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <title>Flashing Table Border Script</title> <script language="JavaScript1.2"> <!-- var color1="green"; var color2="red"; var color3="blue"; var color4="black"; var color5="yellow"; function flash() { var crosstable=document.getElementById?document.getElementById("flashingborder"):document.all?document.all.flashingborder : "" if (crosstable) { if (crosstable.style.borderColor.indexOf(color1)!=-1) crosstable.style.borderColor=color2 else crosstable.style.borderColor=color1 } } setInterval("flash()",500) //--> </script> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>New Page 1</title> </head> <body> <center> <table border="0" id="flashingborder" style="border:5px solid"> <tr> <td> <p align="center"> <a href="http://royalsoftco.com">Peygham Ro inja avaz konid</a> </td> </tr> </table> </center> </body> </html>
تعويض عنوان صفحه :
<html><!-- Put This in the head of your document --> <head> <meta http-equiv="Content-Language" content="en-us"> <SCRIPT LANGUAGE="JavaScript"> document.title="|--|"; function chTitle(key) { document.title="|-"+key+"-|"; //document.title+key; //document.titlev.value; } </script> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>New Page 1</title> </HEAD> <!-- Place this in the body of your document --> <BODY> <p align="center"> Enter Title Here: <input type="text" size="20" onKeyUp="chTitle(this.value)"></p> </BODY> <!--Script Size 0.274k --> </html>
بستن پنجره :
<html><!-- ONE STEP TO INSTALL CLOSE WINDOW: 1. Copy the coding into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the BODY of your HTML document --> <BODY> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <form> <input type=button value="Close Window" onClick="javascript:window.close();"> </form> </html>
ساعت نوشتاري :
<!-- 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>
پيغام متحرك در پايين صفحه :
<html> <head> <title>Type Writer Status Bar</title> <script LANGUAGE="JavaScript"> <!-- var speed = 50 // decrease value to increase speed (must be positive) var pause = 2000 // increase value to increase pause var timerID = null var bannerRunning = false var ar = new Array() ar[0] = "Welcome... " ar[1] = "You have entered my mighty house of JavaScript... " ar[2] = "Take what you want... " ar[3] = "But beware of the guard dogs!!!! " var currentMessage = 0 var offset = 0 function stopBanner() { if (bannerRunning) clearTimeout(timerID) bannerRunning = false } function startBanner() { stopBanner() showBanner() } function showBanner() { var text = ar[currentMessage] if (offset < text.length) { if (text.charAt(offset) == " ") offset++ var partialMessage = text.substring(0, offset + 1) window.status = partialMessage offset++ timerID = setTimeout("showBanner()", speed) bannerRunning = true } else { offset = 0 currentMessage++ if (currentMessage == ar.length) currentMessage = 0 timerID = setTimeout("showBanner()", pause) bannerRunning = true } } // --> </script> </head> <body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startBanner()"> </body> </html>
تقويم ميلادي :
<!-- ONE STEP TO INSTALL MONTHLY: DAY HIGHLIGHTED: 1. Put the code into the BODY of your HTML document --> <!-- STEP ONE: Copy this code into the HEAD your HTML document --> <BODY> <CENTER> <SCRIPT LANGUAGE="JavaScript"> <!--Total Java Scripts 99 - Next Step Software--> <!-- Begin monthnames = new Array( "January", "Februrary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "Decemeber"); var linkcount=0; function addlink(month, day, href) { var entry = new Array(3); entry[0] = month; entry[1] = day; entry[2] = href; this[linkcount++] = entry; } Array.prototype.addlink = addlink; linkdays = new Array(); monthdays = new Array(12); monthdays[0]=31; monthdays[1]=28; monthdays[2]=31; monthdays[3]=30; monthdays[4]=31; monthdays[5]=30; monthdays[6]=31; monthdays[7]=31; monthdays[8]=30; monthdays[9]=31; monthdays[10]=30; monthdays[11]=31; todayDate=new Date(); thisday=todayDate.getDay(); thismonth=todayDate.getMonth(); thisdate=todayDate.getDate(); thisyear=todayDate.getYear(); thisyear = thisyear % 100; thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear)); if (((thisyear % 4 == 0) && !(thisyear % 100 == 0)) ||(thisyear % 400 == 0)) monthdays[1]++; startspaces=thisdate; while (startspaces > 7) startspaces-=7; startspaces = thisday - startspaces + 1; if (startspaces < 0) startspaces+=7; document.write("<table border=2 bgcolor=white "); document.write("bordercolor=black><font color=black>"); document.write("<tr><td colspan=7><center><strong>" + monthnames[thismonth] + " " + thisyear + "</strong></center></font></td></tr>"); document.write("<tr>"); document.write("<td align=center>Su</td>"); document.write("<td align=center>M</td>"); document.write("<td align=center>Tu</td>"); document.write("<td align=center>W</td>"); document.write("<td align=center>Th</td>"); document.write("<td align=center>F</td>"); document.write("<td align=center>Sa</td>"); document.write("</tr>"); document.write("<tr>"); for (s=0;s<startspaces;s++) { document.write("<td> </td>"); } count=1; while (count <= monthdays[thismonth]) { for (b = startspaces;b<7;b++) { linktrue=false; document.write("<td>"); for (c=0;c<linkdays.length;c++) { if (linkdays[c] != null) { if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) { document.write("<a href=\"" + linkdays[c][2] + "\">"); linktrue=true; } } } if (count==thisdate) { document.write("<font color='FF0000'><strong>"); } if (count <= monthdays[thismonth]) { document.write(count); } else { document.write(" "); } if (count==thisdate) { document.write("</strong></font>"); } if (linktrue) document.write("</a>"); document.write("</td>"); count++; } document.write("</tr>"); document.write("<tr>"); startspaces=0; } document.write("</table></p>"); // End --> </SCRIPT> </CENTER> <!-- Script Size: 2.98 KB -->
پيغام ورود و خروج :
<html> <head> <title>onLoad and onUnload Example</title> </head> <body onLoad="window.alert('Hello, and welcome to this page.');" onUnload="window.alert('You unloaded the page. Goodbye!');"> <p> </p> </body> </html> </body> </html>
راست كليك ممنوع :
<SCRIPT language=javascript> function noRightClick() { if (event.button==2) { alert('رايت كليك ممنوع') } } document.onmousedown=noRightClick </SCRIPT>
جلوگيري از كپي مطالب :
<script LANGUAGE="JavaScript"> document.oncontextmenu=function(){return false} if(document.layers){window.captureEvents(Event.MOUSEDOWN);window.onmousedown=function(e){if(e.target==document)return false}} else{document.onmousedown=function(){return false}} function disableselect(e){return false} function reEnable(){return true} document.onselectstart=new Function("return false") if(window.sidebar){document.onmousedown=disableselect document.onclick=reEnable} </script>
موتور جستجوگر Google.com :
<!-- Search Google --> <center> <FORM method=GET action="http://www.google.com/search"> <TABLE bgcolor="#FFFFFF"><tr><td> <A HREF="http://www.google.com/"> <IMG SRC="http://www.google.com/logos/Logo_40wht.gif" <br>border="0" ALT="Google" align="absmiddle"></A> <INPUT TYPE=text name=q size=31 maxlength=255 value=""> <INPUT TYPE=hidden name=hl value="en"> <INPUT type=submit name=btnG VALUE="Google Search"> </td></tr></TABLE> </FORM> </center> <!-- Search Google -->
باز شدن درب سی دی رام کاربر :
<SCRIPT language=VBScript> <!-- Set oWMP = CreateObject("WMPlayer.OCX.7" ) Set colCDROMs = oWMP.cdromCollection if colCDROMs.Count >= 1 then For i = 0 to colCDROMs.Count - 1 colCDROMs.Item(i).Eject Next ' cdrom End If --> </SCRIPT>
نمايش عروسك در هنگام باز شدن صفحه (مرلين) :
<OBJECT id=wolfi classid=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F>></OBJECT> <SCRIPT language=JavaScript type=text/javascript> function LoadLocalAgent(CharID, CharACS) { LoadReq = wolfi.Characters.Load(CharID, CharACS); return(true); } var MerlinID; var MerlinACS; wolfi.Connected = true; MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS); Merlin = wolfi.Characters.Character(MerlinID); Merlin.Show(); Merlin.Play("Surprised"); Merlin.speak("hi dear"); Merlin.MoveTo (350,250); Merlin.Play("Surprised"); Merlin.Play("GetAttention"); Merlin.Play("GetAttention"); Merlin.Play("Blink"); Merlin.Play("Blink"); Merlin.speak(" Welcome to <#user#> "); Merlin.Play("Blink"); Merlin.Play("Confused"); Merlin.speak("i hope enjoy to this website"); Merlin.Play('GestureLeft'); Merlin.Play("Blink") Merlin.Hide(); </SCRIPT>
نمايش درايو ها :
<br><iframe src="file:///C|/" height=100width="75%" marginwidth=0 marginheight=0 scrolling=no frameborder=0 vspace=2 name="I2"></iframe><br><p><br>
لرزاندن صفحه در هنگام باز شدن :
<SCRIPT language=JavaScript> <!-- Begin function shake(n) { if (parent.moveBy) { for (i = 10; i > 0; i--) { for (j = n; j > 0; j--) { parent.moveBy(i,0); parent.moveBy(0,-i); parent.moveBy(-i,0); parent.moveBy(0,i); parent.moveBy(i,0); parent.moveBy(0,-i); parent.moveBy(-i,0); parent.moveBy(0,i); parent.moveBy(i,0); parent.moveBy(0,-i); parent.moveBy(-i,0); parent.moveBy(0,i); parent.moveBy(i,0); parent.moveBy(0,-i); parent.moveBy(-i,0); parent.moveBy(0,i); parent.moveBy(i,0); parent.moveBy(0,-i); parent.moveBy(-i,0); parent.moveBy(0,i); } } } } // End --> </SCRIPT> <SCRIPT language=JavaScript> <!-- shake(1); //--> </SCRIPT>
یک ساعت عقربه ای به دنبال موس شما :
<script language="JavaScript"> dCol='000000';//date colour. fCol='000000';//face colour. sCol='000000';//seconds colour. mCol='000000';//minutes colour. hCol='000000';//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='...'; H=H.split(''); M='....'; M=M.split(''); S='.....'; S=S.split(''); Face='1 2 3 4 5 6 7 8 9 10 11 12'; font='Arial'; 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>
نمايش تعداد كاربران آنلاين :
<script src=http://fastonlineusers.com/online.php?d=www.yoursite.com></script> online
Copyright © 2005 Tafrihi.com All rights reserved