کدهای جاوا برای ایرانیان
برای دانلود از لینک های پایین صفحه نیز میتوانید اقدام کنید.
ابتدا عنوان کد موردنظر را از طریق پنجره Ctrl+F جستجو کرده
سپس کد مربوطه را از داخل مستطیل Select All و سپس Copy کنید
و آنگاه در داخل قالب وب خود Paste کنید.
------------------------------------------------------------------
ساعت های فلش زیبا
-------------------------------------------------
اضافه کردن موتور جستجو msn به وبلاگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <Form method="get" action="http://search.live.com/results.aspx"> <table bgcolor="#FFFFFF"><tr><td> <img src="http://search.live.com/s/affillogoLive.gif" border="0" ALT="Live Search"><a href="http://search.live.com/"></a></td><td> <input type="text" name="q" size="30"><input type="submit" value="Search Web"></td></tr></table></form></a>
منوي آرشيو روزانه در يك ماه
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT type="text/javascript" LANGUAGE="JavaScript"> today = new Date(); thismonth = today.getMonth()+1; thisyear = today.getYear(); thisday = today.getDate(); montharray=new Array(31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); maxdays=montharray[thismonth-1]; if (thismonth==2) { if ((thisyear/4)!=parseInt(thisyear/4)) maxdays=28; else maxdays=29; } thismonth = "" + thismonth if (thismonth.length == 1) { thismonth = "0" + thismonth; } document.write("<form>"); document.write("<select name=dates size=1>"); for (var theday = 1; theday <= maxdays; theday++) { var theday = "" + theday; if (theday.length == 1) { theday = "0" + theday; } document.write("<option"); if (theday == thisday) document.write(" selected"); document.write(">"); document.write(thismonth + "-" + theday + "-" + thisyear); } document.write("</select></form>"); </SCRIPT></a>
ماشين حساب بزرگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <CENTER> <FORM name="Keypad" action=""> <TABLE> <B> <TABLE border=2 width=50 height=60 cellpadding=1 cellspacing=5> <TR> <TD colspan=3 align=middle> <input name="ReadOut" type="Text" size=24 value="0" width=100%> </TD> <TD> </TD> <TD> <input name="btnClear" type="Button" value=" C " onclick="Clear()"> </TD> <TD><input name="btnClearEntry" type="Button" value=" CE " onclick="ClearEntry()"> </TD> </TR> <TR> <TD> <input name="btnSeven" type="Button" value=" 7 " onclick="NumPressed(7)"> </TD> <TD> <input name="btnEight" type="Button" value=" 8 " onclick="NumPressed(8)"> </TD> <TD> <input name="btnNine" type="Button" value=" 9 " onclick="NumPressed(9)"> </TD> <TD> </TD> <TD> <input name="btnNeg" type="Button" value=" +/- " onclick="Neg()"> </TD> <TD> <input name="btnPercent" type="Button" value=" % " onclick="Percent()"> </TD> </TR> <TR> <TD> <input name="btnFour" type="Button" value=" 4 " onclick="NumPressed(4)"> </TD> <TD> <input name="btnFive" type="Button" value=" 5 " onclick="NumPressed(5)"> </TD> <TD> <input name="btnSix" type="Button" value=" 6 " onclick="NumPressed(6)"> </TD> <TD> </TD> <TD align=middle><input name="btnPlus" type="Button" value=" + " onclick="Operation('+')"> </TD> <TD align=middle><input name="btnMinus" type="Button" value=" - " onclick="Operation('-')"> </TD> </TR> <TR> <TD> <input name="btnOne" type="Button" value=" 1 " onclick="NumPressed(1)"> </TD> <TD> <input name="btnTwo" type="Button" value=" 2 " onclick="NumPressed(2)"> </TD> <TD> <input name="btnThree" type="Button" value=" 3 " onclick="NumPressed(3)"> </TD> <TD> </TD> <TD align=middle><input name="btnMultiply" type="Button" value=" * " onclick="Operation('*')"> </TD> <TD align=middle><input name="btnDivide" type="Button" value=" / " onclick="Operation('/')"> </TD> </TR> <TR> <TD> <input name="btnZero" type="Button" value=" 0 " onclick="NumPressed(0)"> </TD> <TD> <input name="btnDecimal" type="Button" value=" . " onclick="Decimal()"> </TD> <TD colspan=3> </TD> <TD> <input name="btnEquals" type="Button" value=" = " onclick="Operation('=')"> </TD> </TR> </TABLE> </B> </TABLE> </FORM> </CENTER> <font face="Verdana, Arial, Helvetica" size=2> <SCRIPT LANGUAGE="JavaScript"> var FKeyPad = document.Keypad; var Accum = 0; var FlagNewNum = false; var PendingOp = ""; function NumPressed (Num) { if (FlagNewNum) { FKeyPad.ReadOut.value = Num; FlagNewNum = false; } else { if (FKeyPad.ReadOut.value == "0") FKeyPad.ReadOut.value = Num; else FKeyPad.ReadOut.value += Num; } } function Operation (Op) { var Readout = FKeyPad.ReadOut.value; if (FlagNewNum && PendingOp != "="); else { FlagNewNum = true; if ( '+' == PendingOp ) Accum += parseFloat(Readout); else if ( '-' == PendingOp ) Accum -= parseFloat(Readout); else if ( '/' == PendingOp ) Accum /= parseFloat(Readout); else if ( '*' == PendingOp ) Accum *= parseFloat(Readout); else Accum = parseFloat(Readout); FKeyPad.ReadOut.value = Accum; PendingOp = Op; } } function Decimal () { var curReadOut = FKeyPad.ReadOut.value; if (FlagNewNum) { curReadOut = "0."; FlagNewNum = false; } else { if (curReadOut.indexOf(".") == -1) curReadOut += "."; } FKeyPad.ReadOut.value = curReadOut; } function ClearEntry () { FKeyPad.ReadOut.value = "0"; FlagNewNum = true; } function Clear () { Accum = 0; PendingOp = ""; ClearEntry(); } function Neg () { FKeyPad.ReadOut.value = parseFloat(FKeyPad.ReadOut.value) * -1; } function Percent () { FKeyPad.ReadOut.value = (parseFloat(FKeyPad.ReadOut.value) / 100) * parseFloat(Accum); } </SCRIPT></font></a>
ماشين حساب كوچك
<a href="http://sites.google.com/site/farshidfarhat2/"> <html> <head> <SCRIPT LANGUAGE="JavaScript"> function a_plus_b(form) { a=eval(form.a.value) b=eval(form.b.value) c=a+b form.ans.value = c } function a_minus_b(form) { a=eval(form.a.value) b=eval(form.b.value) c=a-b form.ans.value=c } function a_times_b(form) { a=eval(form.a.value) b=eval(form.b.value) c=a*b form.ans.value=c } function a_div_b(form) { a=eval(form.a.value) b=eval(form.b.value) c=a/b form.ans.value = c } function a_pow_b(form) { a=eval(form.a.value) b=eval(form.b.value) c=Math.pow(a, b) form.ans.value = c } </SCRIPT> </head> <CENTER> <FORM name="formx"><input type=text size=4 value=12 name="a"> <input type="button" value=" + " onClick="a_plus_b(this.form)"> <input type="button" value=" - " onClick="a_minus_b(this.form)"> <input type="button" value=" x " onClick="a_times_b(this.form)"> <input type="button" value=" / " onClick="a_div_b(this.form)"> <input type="button" value=" ^ " onClick="a_pow_b(this.form)"> <input type="number" size=4 value=3 name="b"> = <input type "number" value=0 name="ans" size=9> </FORM> </CENTER></html></a>
آمدن پيام در نوار وضعيت به تايپي
<a href="http://sites.google.com/site/farshidfarhat2/"> <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></a>
حركت رفت و برگشتي پيام در نوار وضعيت
<a href="http://sites.google.com/site/farshidfarhat2/"> <html> <head> <script language="JavaScript"> <!-- Hide the script from old browsers --> function scrollit(seed) { var m1 = " welcome to my weblog "; var msg=m1; var out = " "; var c = 0; if (seed > 100) { seed--; var cmd="scrollit(" + seed + ")"; timerTwo=window.setTimeout(cmd,7); } else if (seed <= 100 && seed > 0) { for (c=0 ; c < seed ; c++) { out+=" "; } out+=msg; seed--; var cmd="scrollit(" + seed + ")"; window.status=out; timerTwo=window.setTimeout(cmd,7); } else if (seed <= 0) { if (-seed < msg.length) { out+=msg.substring(-seed,msg.length); seed--; var cmd="scrollit(" + seed + ")"; window.status=out; timerTwo=window.setTimeout(cmd,7); } else { window.status=" "; timerTwo=window.setTimeout("scrollit(100)",75); } } } // --End Hiding Here --> </script> </head> <body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="timerONE=window.setTimeout('scrollit(100)',500)"> </body> </html></a>
بازی ox در وبلاگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <script> var _url = document.location.toString().split("?"); var _parm = _url[1]?_url[1]:""; var _P0n = ""; var _P0v = 0; var _P1n = ""; var _P1v = 0; if (_parm != "") { _P0n=_parm.split("&")[0].split("=")[0].toLowerCase(); _P0v=parseInt(_parm.split("&")[0].split("=")[1]); if(_parm.split("&")[1]) { _P1n = _parm.split("&")[1].split("=")[0].toLowerCase(); _P1v = parseInt(_parm.split("&")[1].split("=")[1]); } else { _P1n =""; } } else { _P0n=""; _P1n=""; } var MATRIX_SIZE = 3; var AMOUNT_TO_WIN = 4; var PARAM_SIZE = "size".toLowerCase(); var PARAM_WIN = "win".toLowerCase(); if (_P0n==PARAM_SIZE) {MATRIX_SIZE=_P0v;} if (_P1n==PARAM_SIZE) {MATRIX_SIZE=_P1v;} if (_P0n==PARAM_WIN) {AMOUNT_TO_WIN=_P0v;} if (_P1n==PARAM_WIN) {AMOUNT_TO_WIN=_P1v;} ////////////////////////////// if(MATRIX_SIZE<3)MATRIX_SIZE=3; if(MATRIX_SIZE>10)MATRIX_SIZE=10; if(AMOUNT_TO_WIN>MATRIX_SIZE)AMOUNT_TO_WIN=MATRIX_SIZE; if(AMOUNT_TO_WIN<3)AMOUNT_TO_WIN=3; document.write("<BR>"+AMOUNT_TO_WIN+" in a row wins!<BR>"); var tbo = ''; tbo += '<form name=table1>'; tbo += '<table>'; for (var i=0;i<MATRIX_SIZE;i++) { tbo += '<TR>'; for(var j=0;j<MATRIX_SIZE;j++) { var _c = parseInt(i)*parseInt(MATRIX_SIZE)+parseInt(j); tbo += '<td><input name=s'+_c+' type=text size=1 value=" " onfocus="clicked(table1.s'+_c+');blur()"></td>'; } tbo += '</tr>'; } tbo += '</table>'; tbo += '<table><tr><td>Restart Game with: <input type=button value="Player is X" onclick=setPlayers("X","O")></td>'; tbo += '<td><input type=button value="Computer is X" onclick=setPlayers("O","X")></td></tr>'; tbo += '<tr><td>Player is: <input name=pis type=text size=1 value="X" onfocus=blur()></td>'; tbo += '<td>Computer is: <input name=cis type=text size=1 value="O" onfocus=blur()></td></tr>'; tbo += '</table>'; tbo += '<table><tr><td>Won: <input type=text value="0" name=gameswon size=2></td>'; tbo += '<td>Ties: <input type=text value="0" name=gamestied size=2></td>'; tbo += '<td>Lost: <input type=text value="0" name=gameslost size=2></td></tr></table>'; tbo += 'Set Matrix Size: '; var XX=""; for(var i=3;i<11;i++) { if(i==MATRIX_SIZE) { tbo += ' '+i+'x'+j+' '; } else { tbo += '<input type=button value="'+i+'x'+i+'"'; XX =_url[0]+"?"+PARAM_SIZE+'='+i+"&"+PARAM_WIN+'='+AMOUNT_TO_WIN; tbo += ' onclick="document.location=\''+XX+'\'"> '; } } tbo += '<BR>Amount In a Row Wins: '; for(var i=3;i<11;i++) { if(i==AMOUNT_TO_WIN) { tbo += ' '+i+' '; } else { tbo += '<input type=button value='+i+' '; XX = _url[0]+"?"+PARAM_SIZE+'='+MATRIX_SIZE+'&'+PARAM_WIN+'='+i; tbo += ' onclick="document.location=\''+XX+'\'"> '; } } tbo += '</form>'; document.write(tbo); ///////////////////////////////////////////// var PLAYER="X"; var COMPUTER="O"; var BLANK=" "; var ROWS = new Array(); var COLS = new Array(); var DIAG = new Array(); DIAG[0]=new Array(); DIAG[1]=new Array(); for(var _i=0;_i<MATRIX_SIZE;_i++) { DIAG[0][_i]=_i*MATRIX_SIZE+_i; DIAG[1][_i]=(MATRIX_SIZE-1)*(_i+1); } for (var i=1;i<=(MATRIX_SIZE-AMOUNT_TO_WIN);i++) { var n=2+((i-1)*4); DIAG[n+0]=new Array(); DIAG[n+1]=new Array(); DIAG[n+2]=new Array(); DIAG[n+3]=new Array(); for (var j=1;j<=(MATRIX_SIZE-i);j++) { DIAG[n+0][j-1]=(MATRIX_SIZE+1)*(j-1)+i; DIAG[n+1][j-1]=(MATRIX_SIZE+1)*(j-1)+(i*MATRIX_SIZE); DIAG[n+2][j-1]=(MATRIX_SIZE-1)*(j)-i; DIAG[n+3][j-1]=DIAG[n+2][j-1]+(MATRIX_SIZE+1)*(i); } } for(var i=0;i<MATRIX_SIZE;i++) { ROWS[i]=new Array(); COLS[i]=new Array(); for (var j=0;j<MATRIX_SIZE;j++) { ROWS[i][j]=i*MATRIX_SIZE+j; COLS[i][j]=i+j*MATRIX_SIZE; } } ////////////////////////////// function setPlayers(_p,_c) { PLAYER=document.table1.pis.value=_p; COMPUTER=document.table1.cis.value=_c; resetBoard(); if(COMPUTER=="X") { computerMove(); } } var GAMEOVER = false; function clicked(_s) { if(_s.value!=BLANK || GAMEOVER) return; _s.value=PLAYER; postMoveLogic(); computerMove(); } function postMoveLogic() { var _status = gameOver(); if (_status == BLANK) { document.table1.gamestied.value++;GAMEOVER=true; } if (_status == PLAYER) { document.table1.gameswon.value++;GAMEOVER=true; } if (_status == COMPUTER) { document.table1.gameslost.value++;GAMEOVER=true; } } function resetBoard() { for (var i=0;i<MATRIX_SIZE;i++) { for (var j=0;j<MATRIX_SIZE;j++) { var _a = parseInt(i)*parseInt(MATRIX_SIZE)+parseInt(j); eval("document.table1.s"+_a+".value=BLANK"); } } GAMEOVER=false; } function gameOver() { var _ret = -1; var spotsTaken=true; for (var i=0;i<MATRIX_SIZE;i++) { for (var j=0;j<MATRIX_SIZE;j++) { var _a = parseInt(i)*parseInt(MATRIX_SIZE)+parseInt(j); var _b = eval("document.table1.s"+_a+".value"); eval("var _s"+_a+"='"+_b+"'"); if(eval("_s"+_a)==BLANK) { spotsTaken=false; } } } if(spotsTaken) return (BLANK); for(var i=0;i<MATRIX_SIZE;i++) { if (AmountInARow(ROWS[i])) return (whoHasWon); if (AmountInARow(COLS[i])) return (whoHasWon); } for(var i=0;i<DIAG.length;i++) { if(AmountInARow(DIAG[i])) return (whoHasWon); } return (_ret); } function allTheseMatch(_v) { var _ret = true; for(var i=1;i<_v.length;i++) { var _a=eval("document.table1.s"+_v[i-1]+".value"); var _b=eval("document.table1.s"+_v[i]+".value"); if (_a != _b) _ret = false; } return (_ret); } var OneAwaySpot=-1; function oneFromWin(_who,_a) { for(var i=0;i<(_a.length-AMOUNT_TO_WIN+1);i++) { var _newA = new Array(); for (var j=0;j<AMOUNT_TO_WIN;j++) { _newA[j]=_a[i+j]; } if(oneAway(_who,_newA)) {return true;} } } var whoHasWon=-1; function AmountInARow(_a) { whoHasWon=-1; for(var i=0;i<(_a.length-AMOUNT_TO_WIN+1);i++) { var _newA = new Array(); for (j=0;j<AMOUNT_TO_WIN;j++) { var _TEMP = parseInt(i)+parseInt(j); _newA[j]=eval("document.table1.s"+_a[_TEMP]+".value"); } if (_newA[0]!=BLANK && arrayIsEqual(_newA)) { whoHasWon = _newA[0]; return true; } } return false; } function oneAway(_who,_a) { OneAwaySpot=-1; var _ret = false; var _aTemp = new Array(); for (var i=0;i<_a.length;i++) { var _y = eval("document.table1.s"+_a[i]+".value"); if (_y !=BLANK) { _aTemp[_aTemp.length?_aTemp.length:0]=_a[i]; } else { OneAwaySpot = _a[i]; } } if (_aTemp.length && _aTemp.length == _a.length-1) { _ret = true; var _latchValue = eval("document.table1.s"+_aTemp[0]+".value"); for (var i=1;i<_aTemp.length;i++) { var _y = eval("document.table1.s"+_aTemp[i]+".value"); if(_latchValue != _y || _y != _who) { _ret = false; } } } return (_ret); } function determineComputerMove() { var firstMove=true; for(var i=0;i<MATRIX_SIZE;i++) { for (var j=0;j<MATRIX_SIZE;j++) { var _a=parseInt(i)*parseInt(MATRIX_SIZE)+parseInt(j); var _b=eval("document.table1.s"+_a+".value"); eval("var _s"+_a+"='"+_b+"'"); if(eval("_s"+_a) !=BLANK) firstMove = false; } } if (firstMove && (MATRIX_SIZE%2==1)) return (MATRIX_SIZE*MATRIX_SIZE-1)/2; for(var i=0;i<MATRIX_SIZE;i++) { if(oneFromWin(COMPUTER,ROWS[i])) return (OneAwaySpot); if(oneFromWin(COMPUTER,COLS[i])) return (OneAwaySpot); } for(var i=0;i<DIAG.length;i++) { if(oneFromWin(COMPUTER,DIAG[i])) return (OneAwaySpot); } for(var i=0;i<MATRIX_SIZE;i++) { if(oneFromWin(PLAYER,ROWS[i])) return (OneAwaySpot); if(oneFromWin(PLAYER,COLS[i])) return (OneAwaySpot); } for(var i=0;i<DIAG.length;i++) { if(oneFromWin(PLAYER,DIAG[i])) return (OneAwaySpot); } var _spot = Math.round(Math.random()*(MATRIX_SIZE*MATRIX_SIZE-1)); while(eval("_s"+_spot) !=BLANK) { _spot=(++_spot)%(MATRIX_SIZE*MATRIX_SIZE); } return (_spot); } function computerMove() { if(GAMEOVER) return; var _spot = determineComputerMove(); eval("document.table1.s"+_spot+".value=COMPUTER"); postMoveLogic(); } function arrayIsEqual(_a) { var _first=_a[0]; for(var i=1;i<_a.length;i++) { if(_first != _a[i]) { return false; } } return true; } function isEqual() { var _ret = true; for(var i=1;i<arguments.length;i++) { if(arguments[i-1]!=arguments[i]) _ret = false; } return (_ret); } </script></a>
حركت فنري موس
<a href="http://sites.google.com/site/farshidfarhat2/"> <div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11;"><img src="URL PIC" height=11 width=11></div> <div id="dot1" style="position: absolute; height:12; width:12;"><img src="URL PIC" height=15 width=15></div> <div id="dot2" style="position: absolute; height:12; width:12;"><img src="URL PIC" height=12 width=12></div> <div id="dot3" style="position: absolute; height:12; width:12;"><img src="URL PIC" height=15 width=15></div> <div id="dot4" style="position: absolute; height:12; width:12;"><img src="URL PIC" height=12 width=12></div> <div id="dot5" style="position: absolute; height:12; width:12;"><img src="URL PIC" height=15 width=15></div> <div id="dot6" style="position: absolute; height:12; width:12;"><img src="URL PIC" height=12 width=12></div> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var nDots = 7; var Xpos = 0; var Ypos = 0; var DELTAT = .01; var SEGLEN = 10; var SPRINGK = 10; var MASS = 1; var GRAVITY = 50; var RESISTANCE = 10; var STOPVEL = 0.1; var STOPACC = 0.1; var DOTSIZE = 11; var BOUNCE = 0.75; var isNetscape = navigator.appName=="Netscape"; 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) } for (i = 0; i < nDots; i++) { dots[i].obj.left = dots[i].X; dots[i].obj.top = dots[i].Y; } if (isNetscape) { startanimate(); } else { // let dots sit there for a few seconds // since they're hiding on the real bullets setTimeout("startanimate()", 3000); } } 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); } function setInitPositions(dots) { 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; } dots[0].X = dots[1].X; dots[0].Y = dots[1].Y - SEGLEN; } function MoveHandler(e) { Xpos = e.pageX; Ypos = e.pageY; return true; } 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() { 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); } var resist = new vec(-dots[i].dx * RESISTANCE, -dots[i].dy * RESISTANCE); var accel = new vec((spring.X + resist.X)/ MASS, (spring.Y + resist.Y)/ MASS + GRAVITY); dots[i].dx += (DELTAT * accel.X); dots[i].dy += (DELTAT * accel.Y); 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; } dots[i].X += dots[i].dx; dots[i].Y += dots[i].dy; var height, width; if (isNetscape) { height = window.innerHeight + document.scrollTop; width = window.innerWidth + document.scrollLeft; } else { height = document.body.clientHeight + document.body.scrollTop; width = document.body.clientWidth + document.body.scrollLeft; } 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; } dots[i].obj.left = dots[i].X; dots[i].obj.top = dots[i].Y; } } </script></a> </textarea></font></span></p> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif">يك منوي بازشوي جالب همراه با تغيير تصوير</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <html> <head> <style> .curhand{cursor:hand} </style> <script language="javascript"> function displayit(paragraph,title,imgmenu){ if (document.all[paragraph].style.display=='none') {document.all[paragraph].style.display="block"; document.all[imgmenu].src="URL PIC 2"} else {document.all[paragraph].style.display="none"; document.all[imgmenu].src="URL PIC 2"} } function setoverstyles(paragraph,imgmenu,title){ if (document.all[paragraph].style.display=='none') {document.all[imgmenu].src="URL PIC 2"; document.all[title].style.textDecorationUnderline='true'} else {document.all[imgmenu].src="URL PIC 2"; document.all[title].style.textDecorationUnderline='true'} } function setoutstyles(paragraph,imgmenu,title){ if (document.all[paragraph].style.display=='none') {document.all[title].style.textDecoration='none'; document.all[imgmenu].src="URL PIC 1"} else {document.all[imgmenu].src="URL PIC 2"; document.all[title].style.textDecoration='none'} } sw=0; function displayall(){ if (sw==0) {swall.innerText="Hide all";document.all['x'].style.display='block';sw=1; for (i=1;i<=5;i++) { xmenu='menu'+i ; ximg='imgmenu'+i ; if (document.all[xmenu].style.display=='none') {document.all[xmenu].style.display="block";document.all[ximg].src="URL PIC 2"}}} else {swall.innerText="Show all";document.all['x'].style.display='none';sw=0; for (i=1;i<=5;i++) {xmenu='menu'+i;ximg='imgmenu'+i; if (document.all[xmenu].style.display=='block') {document.all[xmenu].style.display="none";document.all[ximg].src="URL PIC 1"}}} } function displayinline(text){ if (document.all[text].style.display=="none"){document.all[text].style.display="inline"} else {document.all[text].style.display="none"} } </script> </head> <body> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1"> <tr> <td> <p align="center"> <span id="swall" onmouseover="this.style.textDecorationUnderline='true'" onmouseout="this.style.textDecoration='none'" class="curhand" onclick="displayall()"> Show All</span></td><br> </tr> </table><br> <p id='x' style="display:none"></p> <div onmouseover="setoverstyles('menu1','imgmenu1','title1')" onmouseout="setoutstyles('menu1','imgmenu1','title1')" class="curhand" onclick="displayit('menu1','title1','imgmenu1')" id="title1" style="position:static; width:150; height:15"> <img id="imgmenu1" border="0" src="URL PIC 1" width="12" height="12"> Persian Musics</div> <blockquote> <span id="menu1" style="display:none;">Item 1<br> Item 2<br> Item 3<br> Itrm 4<br> Item 5<br> Item 6<br> Item 7</span> </blockquote> <p></p> <div onmouseover="setoverstyles('menu2','imgmenu2','title2')" onmouseout="setoutstyles('menu2','imgmenu2','title2')" class="curhand" onclick="displayit('menu2','title2','imgmenu2')" id="title2" style="position:static; width:150; height:15"> <img id="imgmenu2" border="0" src="URL PIC 1" width="12" height="12"> Kharegi Musics</div> <p></p> <blockquote> <span id="menu2" style="display:none;">Item 1<br> Item 2<br> Item 3<br> Item 4<br> Item 5<br> Item 6<br> Item 7</span> </blockquote> <p></p> <div onmouseover="setoverstyles('menu3','imgmenu3','title3')" onmouseout="setoutstyles('menu3','imgmenu3','title3')" class="curhand" onclick="displayit('menu3','title3','imgmenu3')" id="title3" style="position:static; width:150; height:15"> <img id="imgmenu3" border="0" src="URL PIC 1" width="12" height="12"> Persian Videos</div> <p></p> <blockquote> <span id="menu3" style="display:none;">Item 1<br> Item 2<br> Item 3<br> Item 4<br> Item 5<br> Item 5<br> Item 6</span> </blockquote> <p></p> <div onmouseover="setoverstyles('menu4','imgmenu4','title4')" onmouseout="setoutstyles('menu4','imgmenu4','title4')" class="curhand" onclick="displayit('menu4','title4','imgmenu4');" id="title4" style="position:static; width:150; height:15"> <img id="imgmenu4" border="0" src="URL PIC 1" width="12" height="12"> Kharegi Videos</div> <p></p> <blockquote> <span id="menu4" style="display:none;"> Item 1<br> Item 2<br> Item 3<br> Item 4<br> Item 5<br> Item 6</span> </blockquote> <p></p> <div onmouseover="setoverstyles('menu5','imgmenu5','title5')" onmouseout="setoutstyles('menu5','imgmenu5','title5')" class="curhand" onclick="displayit('menu5','title5','imgmenu5')" id="title5" style="position:static; width:150; height:15"> <img id="imgmenu5" border="0" src="URL PIC 1" width="12" height="12"> Funyy Videos</div> <p></p> <blockquote> <span id="menu5" style="display:none;"> Item 1<br> Item 1<br> Item 2<br> Item 3<br> Item 4<br> Item 5</span> </blockquote> </body> </html></a> </textarea></font></span></p> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif">نمايش چهار متن با حالت زوم</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var speed = 50; var cycledelay = 2000; var maxsize = 28; var x = 0; var y = 0; var themessage, size; var esize = "</font>"; function initArray() { this.length = initArray.arguments.length; for (var i = 0; i < this.length; i++) { this[i] = initArray.arguments[i]; } } var themessage2 = new initArray( "HI", "WELCOME", "TO MY", "WEBLOG" ); if(navigator.appName == "Netscape") document.write('<layer id="wds"></layer><br>'); if (navigator.appVersion.indexOf("MSIE") != -1) document.write('<span id="wds"></span><br>'); function upwords(){ themessage = themessage2[y]; if (x < maxsize) { x++; setTimeout("upwords()",speed); } else setTimeout("downwords()",cycledelay); if(navigator.appName == "Netscape") { size = "<font point-size='"+x+"pt'>"; document.wds.document.write(size+"<center>"+themessage+"</center>"+esize); document.wds.document.close(); } if (navigator.appVersion.indexOf("MSIE") != -1){ wds.innerHTML = "<center>"+themessage+"</center>"; wds.style.fontSize=x+'px' } } function downwords(){ if (x > 1) { x--; setTimeout("downwords()",speed); } else { setTimeout("upwords()",cycledelay); y++; if (y > themessage2.length - 1) y = 0; } if(navigator.appName == "Netscape") { size = "<font point-size='"+x+"pt'>"; document.wds.document.write(size+"<center>"+themessage+"</center>"+esize); document.wds.document.close(); } if (navigator.appVersion.indexOf("MSIE") != -1){ wds.innerHTML = "<center>"+themessage+"</center>"; wds.style.fontSize=x+'px' } } setTimeout("upwords()",speed); </script></a>
به پرواز در آمدن يك پيام در فضاي وبلاگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <STYLE type=text/css>#supertext { LEFT: 0px; POSITION: absolute; TOP: 0px; VISIBILITY: hidden } </STYLE> <script language="JavaScript1.2"> var thecontent='<h2><font color="#0000FF">Welcome to my weblog!</font></h2>' var hidetimer=''; var BallSpeed = 5; var contentWidth; var contentHeight; var maxBallSpeed = 50; var xMax; var yMax; var xPos = 0; var yPos = 0; var xDir = 'right'; var yDir = 'down'; var superballRunning = true; var tempBallSpeed; var currentBallSrc; var newXDir; var newYDir; function initializeBall() { if (document.all) { xMax = document.body.clientWidth yMax = document.body.clientHeight document.all("supertext").style.visibility = "visible"; contentWidth=supertext.offsetWidth contentHeight=supertext.offsetHeight } else if (document.layers) { xMax = window.innerWidth; yMax = window.innerHeight; contentWidth=document.supertext.document.width contentHeight=document.supertext.document.height document.layers["supertext"].visibility = "show"; } setTimeout('moveBall()',400); if (hidetimer!='') setTimeout("hidetext()",hidetimer) } function moveBall() { if (superballRunning == true) { calculatePosition(); if (document.all) { document.all("supertext").style.left = xPos + document.body.scrollLeft; document.all("supertext").style.top = yPos + document.body.scrollTop; } else if (document.layers) { document.layers["supertext"].left = xPos + pageXOffset; document.layers["supertext"].top = yPos + pageYOffset; } animatetext=setTimeout('moveBall()',20); } } function calculatePosition() { if (xDir == "right") { if (xPos > (xMax - contentWidth - BallSpeed)) { xDir = "left"; } } else if (xDir == "left") { if (xPos < (0 + BallSpeed)) { xDir = "right"; } } if (yDir == "down") { if (yPos > (yMax - contentHeight - BallSpeed)) { yDir = "up"; } } else if (yDir == "up") { if (yPos < (0 + BallSpeed)) { yDir = "down"; } } if (xDir == "right") { xPos = xPos + BallSpeed; } else if (xDir == "left") { xPos = xPos - BallSpeed; } else { xPos = xPos; } if (yDir == "down") { yPos = yPos + BallSpeed; } else if (yDir == "up") { yPos = yPos - BallSpeed; } else { yPos = yPos; } } function hidetext(){ if (document.all) supertext.style.visibility="hidden" else if (document.layers) document.supertext.visibility="hide" clearTimeout(animatetext) } if (document.all||document.layers){ document.write('<span id="supertext"><nobr>'+thecontent+'</nobr></span>') window.onload = initializeBall; window.onresize = new Function("window.location.reload()"); } </script></a>
باز شدن جالب صفحه از كوچك به بزرگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <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.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/> <body bgcolor=#C0C0C0 onLoad="TB_animateWindow(700,300,0,0,20,20,true)" link="#FFFFFF"> <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> </body></a>
جستجو در وبلاگ 1 (در صورت وجود نداشتن كلمه پيغام مي دهد)
<a href="http://sites.google.com/site/farshidfarhat2/"> <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(" ببخشيد... كلمه اي كه نوشتي تو وبلاگ نيست "); } } return false; } </SCRIPT> <form name=search onsubmit="return findInPage(this.string.value);"> <P align=center><FONT size=3><INPUT style="BORDER-RIGHT:#666666 1px solid; BORDER-TOP: #666666 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid" onchange="n = 0;" size=11 name=string></FONT><BR><INPUT style="BORDER-RIGHT:#ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; FONT-SIZE: 8pt;BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #aaaaaa" type=submit value=جستجودروبلاگ> </form></a>
جستجو در وبلاگ 2 (در صورت وجود نداشتن كلمه پيغام نمي دهد)
<a href="http://sites.google.com/site/farshidfarhat2/"> <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> <form name="search" onSubmit="return findInPage(this.string.value);"> <font size=3><input name="string" type="text" size=15 onChange="n = 0;"></font> <input type="submit" value="جستجو در وبلاگ"> </form></a>
لرزش صفحه به هنگام ورود به آن
<a href="http://sites.google.com/site/farshidfarhat2/"> <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); } } } } // End --> </SCRIPT> <SCRIPT language=JavaScript> <!-- shake(1); //--> </SCRIPT> </a>
كد متحرك سازي متن انگليسي
<a href="http://sites.google.com/site/farshidfarhat2/"> <marquee>welcome</marquee></a>
كد متحرك سازي متن فارسي
<a href="http://sites.google.com/site/farshidfarhat2/"> <marquee direction="right">خوش آمديد</marquee></a>
كد متحرك سازي كه با كنار صفحه برخورد مي كند و برمي گردد
<a href="http://sites.google.com/site/farshidfarhat2/"> <marquee direction="right" behavior="alternate">welcome</marquee></a>
كد متحرك سازي كه با كنار صفحه برخورد مي كند و مي ايستد
<a href="http://sites.google.com/site/farshidfarhat2/"> <marquee direction="right" behavior="slide">welcome</marquee></a>
حركت نوشته از پايين به بالا درون يك كادر
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT language=JavaScript> document.write('<marquee id="iescroller" direction="up" width="100%" height="110" scrollamount="4" scrolldelay="100" style="border:3 solid #33cccc;background-color:black">'); iescroller.onmouseover=new Function("iescroller.scrollAmount=0"); iescroller.onmouseout=new Function("iescroller.scrollAmount=2"); document.write('<font size="5" face="Monotype corsiva" color="white">') document.write('<Div align="center">frash</div><br><br>'); document.write('<Div align="center"><b><font size="2">farshid.farhat.googlepages.com</font></b></div><br><br>'); document.write('<Div align="center">دانلود نرم آفزار ، جاوا اسكريپت ، عبور از فيلتر</div><br><br>'); document.write('<Div align="center"><b><font size="3">amir_k2006@yahoo.com</font></b></div><br><br>'); document.write('</font>'); document.write('</marquee>'); </SCRIPT> ></a>
با اين كد مي توانيد متني را روشن و خاموش كنيد
<a href="http://sites.google.com/site/farshidfarhat2/"> <HEAD> <SCRIPT LANGUAGE="JavaScript"> window.onerror = null; var bName = navigator.appName; var bVer = parseInt(navigator.appVersion); var NS4 = (bName == "Netscape" && bVer >= 4); var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4); var NS3 = (bName == "Netscape" && bVer < 4); var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4); var blink_speed=100; var i=0; if (NS4 || IE4) { if (navigator.appName == "Netscape") { layerStyleRef="layer."; layerRef="document.layers"; styleSwitch=""; }else{ layerStyleRef="layer.style."; layerRef="document.all"; styleSwitch=".style"; } } //BLINKING function Blink(layerName){ if (NS4 || IE4) { if(i%2==0) { eval(layerRef+'["'+layerName+'"]'+ styleSwitch+'.visibility="visible"'); } else { eval(layerRef+'["'+layerName+'"]'+ styleSwitch+'.visibility="hidden"'); } } if(i<1) { i++; } else { i-- } setTimeout("Blink('"+layerName+"')",blink_speed); } </script> </HEAD> <BODY> <div id="prem_hint" style="position:relative; left:0; visibility:hidden" class="prem_hint"> <font color="#008000"><b>Welcome Welcome Welcome!</b> </font> </div> <script language="javascript">Blink('prem_hint');</script> </body></a>
متن نوراني
<a href="http://sites.google.com/site/farshidfarhat2/"> <h2> <script language="JavaScript1.2"> var message="Welcome to my weblog!" var neonbasecolor="gray" var neontextcolor="yellow" var flashspeed=100 //in milliseconds var n=0 if (document.all){ document.write('<font color="'+neonbasecolor+'">') for (m=0;m<message.length;m++) document.write('<span id="neonlight">'+message.charAt(m)+'</span>') document.write('</font>') var tempref=document.all.neonlight } else document.write(message) function neon(){ //Change all letters to base color if (n==0){ for (m=0;m<message.length;m++) tempref[m].style.color=neonbasecolor } //cycle through and change individual letters to neon color tempref[n].style.color=neontextcolor if (n<tempref.length-1) n++ else{ n=0 clearInterval(flashing) setTimeout("beginneon()",1500) return } } function beginneon(){ if (document.all) flashing=setInterval("neon()",flashspeed) } beginneon() </script> </h2> </a>
متن سايه دار
<a href="http://sites.google.com/site/farshidfarhat2/"> <html> <head> <script type = "TEXT/JAVASCRIPT" LANGUAGE = "JAVASCRIPT"> function doShadow(newDiretction){ if (document.all && newDiretction < 360) { newDiretction += 10 document.all.dropText.style.filter="shadow(direction=" + newDiretction + ")" setTimeout("doShadow(" + newDiretction + ")" , 100) } } </script> <STYLE TYPE="TEXT/CSS"> #dropText {width: 500px; height: 100px; font-size: 36px; filter: shadow(direction=90)} </STYLE> </head> <body> <DIV ID="dropText"> farshid.farhat.googlepages.com </DIV> </body> </html> </a>
متن به صورت عمودي
<a href="http://sites.google.com/site/farshidfarhat2/"> <html> <head> <style> .myStyle { writing-mode: tb-rl; filter: flipH() flipV(); } </style> </head> <body> <span class="myStyle"> <font size="6" color="#000000">farshid.farhat.googlepages.com</font> </span> </body> </html> </a>
يك افكت بسيار زيبا و جالب براي متن هاي شما
<a href="http://sites.google.com/site/farshidfarhat2/"> <DIV ID="oTransContainer" STYLE="text-align:Center;font-size:30px;font-family:arial;position:absolute; top: 0px; left: 0px; width: 300px; height:300px; filter:progid:DXImageTransform.Microsoft.Wipe( GradientSize=1.0, wipeStyle=0, motion='forward') "> <!-- This is the first content that is displayed. --> <DIV ID="oDIV1" STYLE="color:pink;position:absolute; top:50px; left:10px; width:240px; height:140px; background:blue">frash</DIV> <!-- This content displays after the first content. --> <DIV ID="oDIV2" STYLE="color:#e1e1e1;visibility:hidden; position:absolute; top:50px; left:10px; width:240px; height:140px; background: green"> <BR><BR> is the best site </DIV> </DIV> <BUTTON onclick="fnToggle()">change</BUTTON> <SCRIPT> var bTranState = 0; function fnToggle() { oTransContainer.filters[0].Apply(); if (bTranState=='0') { bTranState = 1; oDIV2.style.visibility="visible"; oDIV1.style.visibility="hidden";} else { bTranState = 0; oDIV2.style.visibility="hidden"; oDIV1.style.visibility="visible";} oTransContainer.filters[0].Play(duration=2);} </SCRIPT></a>
اعلام مدت زمان بازديد به بازديد كننده
<a href="http://sites.google.com/site/farshidfarhat2/"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <SCRIPT lang=JavaScript> day = new Date(); miVisit = day.getTime(); function clock() { dayTwo = new Date(); hrNow = dayTwo.getHours(); mnNow = dayTwo.getMinutes(); scNow = dayTwo.getSeconds(); miNow = dayTwo.getTime(); if (hrNow == 0) { hour = 12; ap = " AM"; } else if(hrNow <= 11) { ap = " AM"; hour = hrNow; } else if(hrNow == 12) { ap = " PM"; hour = 12; } else if (hrNow >= 13) { hour = (hrNow - 12); ap = " PM"; } if (hrNow >= 13) { hour = hrNow - 12; } if (mnNow <= 9) { min = "0" + mnNow; } else (min = mnNow) if (scNow <= 9) { secs = "0" + scNow; } else { secs = scNow; } time = hour + ":" + min + ":" + secs + ap; document.form.button.value = time; setTimeout('clock()', 1000); } function timeInfo() { milliSince = miNow; milliNow = miNow - miVisit; secsVisit = Math.round(milliNow / 1000); minsVisit = Math.round((milliNow / 1000) / 60); alert(" الان عزيزم " + minsVisit + " دقيقه هست كه اينجايي خسته كه نشدي؟ " + secsVisit + ""); } document.write("<form name=\"form\">" + "<input type=button style='cursor=help' style='border=blue' style='height=20' style='background=#000099' style='color=white' value=\"Click for info!\"" + " name=button onClick=\"timeInfo()\"></form>"); onError = null; clock(); </SCRIPT></a>
دريافت نام كاربر و خوش آمد گويي
<a href="http://sites.google.com/site/farshidfarhat2/"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <SCRIPT LANGUAGE="Javascript"> var namePrompt = prompt("ببخشيد اسم شريفتون؟",""); function dispname (namePrompt) { document.write(""+namePrompt+""); } </SCRIPT> </head> <BODY> <CENTER> <SCRIPT LANGUAGE="Javascript"> document.write("<font size=3 color=red> خوش آمدي عزيزم, "); dispname(namePrompt); document.write("!</font>"); </SCRIPT> </CENTER></body></a>
حركت عكس در پس زمينه
<a href="http://sites.google.com/site/farshidfarhat2/"> <body background="آدرس وب عكس در اينجا"> </body> <script language="JavaScript"> 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); </script> </a>
يك جعبه چشمك زن زيبا
<a href="http://sites.google.com/site/farshidfarhat2/"> <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 6.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"></td> </tr> </table> </center> </body> </a>
پرسيدن رنگ پس زمينه و نوشته ها از بازديدكننده
<a href="http://sites.google.com/site/farshidfarhat2/"> <FORM METHOD="post" ACTION="/cgi-bin/joe.cgi" AUTOCOMPLETE="off"> <SCRIPT LANGUAGE="javascript"> var color = prompt ("What color would you like the page background to be?","") var txtcolor = prompt ("What color would you like the text to be?","") document.write ("<BODY BGCOLOR=" +color+ " TEXT=" +txtcolor+ ">") defaultStatus="Here's your " +color+ " background and " +txtcolor+ " text" </SCRIPT> </form> <head> <STYLE TYPE="text/css"> BODY { scrollbar-base-color: orange; scrollbar-arrow-color: green; scrollbar-DarkShadow-Color: blue; } </STYLE> </head> </a>
بارش برف از زير موس
<a href="http://sites.google.com/site/farshidfarhat2/"> <html> <script language="Javascript"> var ITEM_COUNT = 6; //number of flakes visible per time var ITEM_W = 20; //width of a single flake var ITEM_H = 20; //height of a single flake var ITEM_SRC = "star.gif"; var ITEM_STAGES = 4; //number of life stages for a single flake. (i.e., number of states on the "star.gif") var ITEM_TRAVEL = 20; //number of times to move a flake before disappearing (Note: PIXEL MOVED = ITEM_TRAVEL * ITEM_INCREMENT) var ITEM_INCREMENT = 4; //distance to move a flake on each loop var ITEM_SPEED = 50; //time delay in milliseconds before looping (def: 40) var IE_ENGINE = (document.all) ? true : false; var NS_ENGINE = (document.layers) ? true : false; var animatorThread = null; // To prevent a new flake from being created // on each loop time, we give it a sleep counter // that increments. var sprawnSleeping = 0; // Stores the position of mouse. var mousePos = new Array(2); mousePos[0] = 0; mousePos[1] = 0; // Stores previous positions of mouse. // So that we don't create a flake when // the mouse hasn't moved. var oldMousePos = new Array(2); oldMousePos[0] = 0; oldMousePos[1] = 0; // A table of flake positions and information. var trailMatrix = new Array(ITEM_COUNT); for(var i=0; i<trailMatrix.length; i++) { trailMatrix[i] = new Array(5); trailMatrix[i][0] = 0; trailMatrix[i][1] = 0; trailMatrix[i][2] = 0; trailMatrix[i][3] = ITEM_STAGES; trailMatrix[i][4] = "mouseTrailer_" + i; document.writeln((IE_ENGINE) ? '<DIV ID="' + trailMatrix[i][4] + '" STYLE="position:absolute; width:'+ITEM_W+'px; height:'+ITEM_H+'px; visibility:hidden;"><img src="'+ITEM_SRC+'" border=0></DIV>' : (NS_ENGINE) ? '<LAYER ID="' + trailMatrix[i][4] + '" position="absolute" width='+ITEM_W+' height='+ITEM_H+' visible="hide"><img src="'+ITEM_SRC+'" border=0></LAYER>' : ""); } function storeMousePos(e) { mousePos[0] = (IE_ENGINE) ? event.clientX+document.body.scrollLeft : (NS_ENGINE) ? e.pageX : 0; mousePos[1] = (IE_ENGINE) ? event.clientY+document.body.scrollTop : (NS_ENGINE) ? e.pageY : 0; } function sprawnNewTrail() { if(oldMousePos[0] != mousePos[0] || oldMousePos[1] != mousePos[1]) { var temp = trailMatrix[trailMatrix.length-1][4]; for(var i=trailMatrix.length-1; i>0; i--) { trailMatrix[i][0] = trailMatrix[i-1][0]; trailMatrix[i][1] = trailMatrix[i-1][1]; trailMatrix[i][2] = trailMatrix[i-1][2]; trailMatrix[i][3] = trailMatrix[i-1][3]; trailMatrix[i][4] = trailMatrix[i-1][4]; } trailMatrix[0][0] = mousePos[0]; trailMatrix[0][1] = mousePos[1]; trailMatrix[0][2] = ITEM_TRAVEL; trailMatrix[0][3] = ITEM_STAGES; trailMatrix[0][4] = temp; //id for trailer layer } oldMousePos[0] = mousePos[0]; oldMousePos[1] = mousePos[1]; } function animateTrail() { for(var i=0; i<trailMatrix.length; i++) { if(trailMatrix[i][2] > 0) { trailMatrix[i][1] += ITEM_INCREMENT; trailMatrix[i][2]--; trailMatrix[i][3] = Math.ceil((trailMatrix[i][2] * ITEM_STAGES) / ITEM_TRAVEL); updateTrail(trailMatrix[i][4], trailMatrix[i][0], trailMatrix[i][1], trailMatrix[i][3]); } else { hideTrail(trailMatrix[i][4]); } } sprawnSleeping++; if(sprawnSleeping >= 2) { //We create a new flake every 2 loops sprawnSleeping = 0; sprawnNewTrail(); } } function updateTrail(obj, x, y, stage) { var imgTop = (ITEM_STAGES - stage) * ITEM_H; if(IE_ENGINE) { document.all[obj].style.clip = "rect("+imgTop +" "+ ITEM_W +" "+ (imgTop+ITEM_H)+" 0)"; document.all[obj].style.left = x; document.all[obj].style.top = y - imgTop; document.all[obj].style.visibility = "visible"; } else if(NS_ENGINE) { document.layers[obj].clip.top = imgTop; document.layers[obj].clip.bottom = imgTop + ITEM_H; document.layers[obj].left = x; document.layers[obj].top = y - imgTop; document.layers[obj].visibility = "show"; } } function hideTrail(obj) { if(IE_ENGINE) { document.all[obj].style.visibility = "hidden"; } else if(NS_ENGINE) { document.layers[obj].visibility = "hide"; } } function init() { if(NS_ENGINE)document.captureEvents(Event.MOUSEMOVE); if(IE_ENGINE || NS_ENGINE) { document.onmousemove = storeMousePos; animatorThread = setInterval("animateTrail()", ITEM_SPEED); } } function end() { if(animatorThread != null) { clearInterval(animatorThread); animatorThread = null; } } //--> </script> <body bgcolor="blue" onload="init()" onunload="end()"> </body> </html></a>
با اين كد بازديدكننده مي تواند به هركسي ايميل بزند
<a href="http://sites.google.com/site/farshidfarhat2/"> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function mailsome1(){ who=prompt("Enter recipient's email address: ","YOUR EMAIL"); what=prompt("SUBJECT: ","none"); if (confirm("Are you sure you want to mail "+who+" with the subject of "+what+"?")==true){ parent.location.href='mailto:'+who+'?subject='+what+''; } } </SCRIPT> </head> <BODY> <CENTER> <a href='javascript:mailsome1()'>E-Mail Someone!</a> <FORM> <input type=button value="E-Mail Someone!" onClick="mailsome1()"> </FORM> </CENTER> </BODY> </a> </textarea></font></span></p> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif">حذف تبليغات بلاگ اسكاي از وبلاگ</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <body onload="javascript: document.getElementById('r74j').style.visibility = 'hidden';" href="javascript:void(0);"></a> </textarea></font></span></p> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif">حذف تبليغات پرشين بلاگ از وبلاگ</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JScript"> function removeAdv() { try { var divtags=document.all.tags('div') for(i=0;i<divtags.length;i++) if((divtags[i].style.zIndex==2000)|(divtags[i].style.zIndex==2001)) divtags[i].innerHTML='<table width="100%" align="right"><tr><td><font face="Tahoma" size="2" color="gray">Nazanin Studio</font></td></tr></table>' if((divtags[i].style.zIndex==1000)|(divtags[i].style.zIndex==1001)) divtags[i].innerHTML='<table width="100%" align="right"><tr><td><font face="Tahoma" size="2" color="gray">Nazanin Studio</font></td></tr></table>' } catch (e) {} } setInterval('removeAdv()',1000); </script></a> </textarea></font></span></p> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif">غير فعال كردن كامل نوار وضعيت</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <script language="javascript"> function hidestatus(){ window.status='' return true } if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) document.onmouseover=hidestatus document.onmouseout=hidestatus var where = ""; // which link function checkwhere(e) { if (document.layers){ xCoord = e.x; yCoord = e.y; } else if (document.all){ xCoord = event.clientX; yCoord = event.clientY; } else if (document.getElementById){ xCoord = e.clientX; yCoord = e.clientY; } self.status = "X= "+ xCoord + " Y= " + yCoord; } document.onmousemove = checkwhere; if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);} </script></a> </textarea></font></span></p> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif">مخفي كردن جاوا اسكريپت از مرورگر هاي قديمي</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <h1> <script language="javascript" type="text/javascript"> document.write("farshid.farhat.googlepages.com") </script> </h1></a> </textarea></font></span></p> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif">نشان دهنده نفرات حاضر در وبلاگ</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <img alt="Farshid Farhat" longdesc="فرشید فرحت" src="images/frash_small.jpg" width="100" height="138" xthumbnail-orig-image="images/frash.jpg" class="style2" style="float: right"></a></a> </textarea></font></span></p> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif">ثبت تارخ بروز رساني وبلاگ</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <script language="JavaScript"> <!-- function getLongDateString() { //method defined on class Date. //Returns a date string of the form: Day DD Month,YYYY //(e.g. Sunday 27 September, 1998) monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December"); dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); dayOfWeek = this.getDay(); day = dayNames[dayOfWeek]; dateOfMonth = this.getDate(); monthNo = this.getMonth(); month = monthNames[monthNo]; year = this.getYear(); if (year < 2000) year = year + 1900; dateStr = day+" "+dateOfMonth+" "+month+", "+year; return dateStr; } //register the method in the class Date Date.prototype.getLongDateString=getLongDateString; function DocDate() { //return the document modification date (excl.time) //as a string DateTimeStr = document.lastModified; secOffset = Date.parse(DateTimeStr); if (secOffset == 0 || secOffset == null) //Opera3.2 dateStr = "Unknown"; else { aDate = new Date(); aDate.setTime(secOffset); //use method defined above datestr = aDate.getLongDateString(); } return dateStr; } document.write("<center> Last Update: "); document.writeln(DocDate(),"</center>"); // --> </script></a>
نمايش ساعت و تاريخ در عنوان صفحه
<a href="http://sites.google.com/site/farshidfarhat2/"> <p><SCRIPT LANGUAGE="JavaScript"><br /> function clock() {<br /> var date = new Date()<br /> var year = date.getYear()<br /> var month = date.getMonth()<br /> var day = date.getDate()<br /> var hour = date.getHours()<br /> var minute = date.getMinutes()<br /> var second = date.getSeconds()<br /> var months = new Array("", "JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC")</p> <p>var monthname = months[month]</p> <p>if (hour > 12) {<br /> hour = hour - 12<br /> }</p> <p>if (minute < 10) {<br /> minute = "0" + minute<br /> }</p> <p>if (second < 10) {<br /> second = "0" + second<br /> }</p> <p><br /> document.title = "JSS - " + monthname + " " + day + ", " + year + " - " + hour + ":" + minute + ":" + second</p> <p>setTimeout("clock()", 1000)</p> <p>}<br /> // End --><br /> </script></p> <p><BODY onLoad="clock()"></p> <p>The script is running in the title bar!!</p> <p><p><center><br /> </center><p></p></a>
يك ساعت نوشتاري براي وبلاگ شما
<a href="http://sites.google.com/site/farshidfarhat2/"> <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> </a>
تاريخ ميلادي نوشتاري به زبان فارسي
<a href="http://sites.google.com/site/farshidfarhat2/"> <!¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ Tarikh ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤> <SCRIPT LANGUAGE="JavaScript"> var day=""; var month=""; var myweekday=""; var year=""; mydate = new Date(); myday = mydate.getDay(); mymonth = mydate.getMonth(); myweekday= mydate.getDate(); weekday= myweekday; myyear= mydate.getYear(); year = myyear if(myday == 0) day = " يکشنبه, " else if(myday == 1) day = " دوشنبه, " else if(myday == 2) day = "سه شنبه, " else if(myday == 3) day = " چهارشنبه, " else if(myday == 4) day = " پنجشنبه, " else if(myday == 5) day = " جمعه, " else if(myday == 6) day = " شنبه, " if(mymonth == 0) { month = "ژانويه "} else if(mymonth ==1) month = "فوريه " else if(mymonth ==2) month = "مارس " else if(mymonth ==3) month = "آوريل " else if(mymonth ==4) month = "مي" else if(mymonth ==5) month = "جون " else if(mymonth ==6) month = "جولای " else if(mymonth ==7) month = "آگوست " else if(mymonth ==8) month = "سپتامبر " else if(mymonth ==9) month = "اکتبر</font> " else if(mymonth ==10) month = "نوامبر " else if(mymonth ==11) month = "دسامبر " if ((navigator.appName == "Microsoft Internet Explorer") && (year < 2000)) year="19" + year; if (navigator.appName == "Netscape") year=1900 + year; document.write("<font face=Nesf size:12px color=#333333>" + day + myweekday ); document.write(month + ", " +year + "</font>"); </SCRIPT> <!¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤ Tarikh end ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤> </a>
يك تقويم ميلادي زيبا
<a href="http://sites.google.com/site/farshidfarhat2/"> <html> <head> <meta name="GENERATOR" content="Microsoft FrontPage 6.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> </head> <body> <center> <script LANGUAGE="JavaScript"> 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 --> </body> </html> </a>
پيام صبح بخير و ظهر بخير وعصر بخير و شب بخير و وقت بخير و ...
(آمدن پيام در ساعات مختلف شبانه روز)
<a href="http://sites.google.com/site/farshidfarhat2/"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"> </head> <center> <script LANGUAGE="JavaScript"> document.write("<center><font size=+1>") day = new Date() hr = day.getHours() if (hr ==1) document.write("بامداد بخير ") if (hr ==2) document.write("نيمه شب شما بخير") if (hr ==3) document.write("نيمه شب شما بخير .... نميروی بخوابی") if (hr ==4) document.write("دوست عزیز وقت استراحت است") if (hr ==5) document.write("سحر بخير") if ((hr == 6) || (hr ==7) || (hr ==8) || (hr == 9) || (hr ==10)) document.write("صبح بخير") if (hr ==11) document.write("نيمروز بخير") if (hr ==12) document.write("ظهر بخير") if (hr ==13) document.write("بعد از ظهر شما بخير") if ((hr==15) || (hr==16) || (hr==14)) document.write("عصر شما بخير") if ((hr==17) || (hr==18) || (hr==19) || (hr==20) || (hr==21) || (hr==22)) document.write("شب بخير") if (hr==23) document.write("شب شما بخير") if (hr==0) document.write("نيمه شب بخير") document.write("</font></center>") // End --> </script> </center> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p align="center"></p> </a>
غير فعال كردن راست كليك همراه با آمدن پيغام
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT language=javascript> function noRightClick() { if (event.button==2) { alert('!!!هنوز نيومده مي خواي چكار كني شيطون بلا') } } document.onmousedown=noRightClick </SCRIPT></a>
پرواز يك پروانه در وبلاگ شما
<a href="http://sites.google.com/site/farshidfarhat2/"> <script> <!-- Begin var no = 1; // snow number var speed = 6; // smaller number moves the snow faster var snowflake = "http://www.forever-memories.net/Animated%20gifs/bfa.gif"; var ns4up = (document.layers) ? 1 : 0; // browser sniffer var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // coordinate and position variables var am, stx, sty; // amplitude and step variables var i, doc_width = 800, doc_height = 600; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; // set coordinate variables xp[i] = Math.random()*(doc_width-50); // set position variables yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; // set amplitude variables stx[i] = 0.02 + Math.random()/10; // set step variables sty[i] = 0.7 + Math.random(); // set step variables if (ns4up) { // set layers if (i == 0) { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"></layer>"); } else { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } else { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } } } function snowNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } dx[i] += stx[i]; document.layers["dot"+i].top = yp[i]; document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowNS()", speed); } function snowIE() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx[i] += stx[i]; document.all["dot"+i].style.pixelTop = yp[i]; document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowIE()", speed); } if (ns4up) { snowNS(); } else if (ie4up) { snowIE(); } // End --> </script> </a>
پرواز دو پروانه در وبلاگ شما
<a href="http://sites.google.com/site/farshidfarhat2/"> <script> <!-- Begin var no = 2; // snow number var speed = 6; // smaller number moves the snow faster var snowflake = "http://www.forever-memories.net/Animated%20gifs/bfa.gif"; var ns4up = (document.layers) ? 1 : 0; // browser sniffer var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // coordinate and position variables var am, stx, sty; // amplitude and step variables var i, doc_width = 800, doc_height = 600; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; // set coordinate variables xp[i] = Math.random()*(doc_width-50); // set position variables yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; // set amplitude variables stx[i] = 0.02 + Math.random()/10; // set step variables sty[i] = 0.7 + Math.random(); // set step variables if (ns4up) { // set layers if (i == 0) { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"></layer>"); } else { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } else { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } } } function snowNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } dx[i] += stx[i]; document.layers["dot"+i].top = yp[i]; document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowNS()", speed); } function snowIE() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx[i] += stx[i]; document.all["dot"+i].style.pixelTop = yp[i]; document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowIE()", speed); } if (ns4up) { snowNS(); } else if (ie4up) { snowIE(); } // End --> </script> </a>
اين كد راست كليك را بدون هيچ پيغامي برمي دارد
<a href="http://sites.google.com/site/farshidfarhat2/"> <script language=JavaScript> function clickIE() { if (document.all) { return false; } } function clickNS(e) { if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) { return false; } } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS; } else{ document.onmouseup=clickNS; document.oncontextmenu=clickIE; } document.oncontextmenu=new Function("return false") </script> </a>
با اين كد مي توانيد تووبلاگتون موزيك پخش كنيد
<a href="http://sites.google.com/site/farshidfarhat2/"> <p align="center" style="margin-top: 0; margin-bottom: 0"> <EMBED SRC='ادرس اهنگ ' WIDTH=120 HEIGHT=26 LOOP=true type=audio/x-pn-realaudio-plugin> <TD vAlign=top align=left width=4></TD></embed></a>
با اين كد مي توانيد يك عكس تو وبلاگتون بگذاريد و به اون لينك بزنيد
<a href="http://sites.google.com/site/farshidfarhat2/"> <p align="center"><a href=" لينک در اينجا " target="_blank"><img border="0" src=" عكس "></body> </a></p></a>
با اين كد مي توانيد قسمتي را ايجاد كنيد كه بازديدكننده بتواند رنگ پس زمينه را تغيير دهد
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JavaScript"> function test(form) { if (form.text.value == "") alert("What\'s your favorite color?") else { document.bgColor=(""+form.text.value+""); } } </SCRIPT> <CENTER> <FORM> <B>Please enter your favorite<BR> color and then click the button.<BR> <input type="text" name="text"> <input type="button" name="button" value="click for color!" onClick="test(this.form)"> </B> </FORM> </CENTER> </a>
با اين كد مي توانيد براي پس زمينه وبلاگتون عكس بگذاريد
<a href="http://sites.google.com/site/farshidfarhat2/"> <body style="background-image: url('آدرس عكس')"></a>
دكمه اي براي پرينت از صفحه
<a href="http://sites.google.com/site/farshidfarhat2/"> <!-- Print Page Script Use this script to have your users print your HTML page --> <SCRIPT LANGUAGE="JavaScript"> if (window.print) { document.write('<H3>This form is inoperational!</H3> <Provisional users can't create forms> ' + '<input type=button name=print value="Click" ' + 'onClick="javascript:window.print()"> To Print this page!</form>'); } // End --> </script></a>
مدت زمان حضور شما در صفحه
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JAVASCRIPT"> function time_arrived() { enter=new Date(); } function time_here() { exit=new Date(); time=(exit.getTime()-enter.getTime())/1000; time=Math.round(time); alert ("You have been here for " + time + " seconds. Getting tired?") } </SCRIPT> <BODY onLoad='time_arrived()'> <CENTER> <H3>This form is inoperational!</H3> <INPUT type="button" name="timehere" value="You have been here for..." onClick='time_here()'> </CENTER> </a>
نمايش ساعتي كه بازديدكننده به صفحه آمده
<a href="http://sites.google.com/site/farshidfarhat2/"> <script language="JavaScript"> var Temp; setClock(); function setClock() { CC_Time = ""; now = new Date(); var CurHour = now.getHours(); var CurMinute = now.getMinutes(); now = null; if( CurHour > 12 ) { CurHour = CurHour - 12; ampm = 1; } else ampm = 0; if( CurHour == 0 ) CurHour = 12; if( CurMinute < 10 ) CurMinute = "0" + CurMinute; CurHour = "<FONT SIZE=2><B>" + CurHour + ":" + CurMinute + "</B>"; if( ampm == 1 ) CurHour = CurHour + " P.M."; else CurHour = CurHour + " A.M."; Temp = CurHour; } function pathOnly (InString) { LastSlash=InString.lastIndexOf ('/', InString.length-1) OutString=InString.substring (0, LastSlash+1) return (OutString); } </script> <script> document.write( Temp ); </script> </a>
مشخص كننده تعداد رجوع به صفحه
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JavaScript"> <!-- var caution = false function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "") if (!caution || (name + "=" + escape(value)).length <= 4000) document.cookie = curCookie else if (confirm("Cookie exceeds 4KB and will be cut!")) document.cookie = curCookie } function getCookie(name) { var prefix = name + "=" var cookieStartIndex = document.cookie.indexOf(prefix) if (cookieStartIndex == -1) return null var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length) if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)) } function deleteCookie(name, path, domain) { if (getCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT" } } function fixDate(date) { var base = new Date(0) var skew = base.getTime() if (skew > 0) date.setTime(date.getTime() - skew) } var now = new Date() fixDate(now) now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000) var visits = getCookie("counter") if (!visits) visits = 1 else visits = parseInt(visits) + 1 setCookie("counter", visits, now) // YOU CAN EDIT THE SENTENCE THAT APPEARS ON YOUR WEBPAGE ON THE NEXT LINE document.write("<CENTER><FONT FACE=VERDANA SIZE=2>You are visitor <B>#" + visits + "</B>.</FONT></CENTER>") // --> </SCRIPT> <!-- End of Text Counter --></a>
ريزش قلب از بالاي وبلاگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <body><script> var no = 3; // snow number var speed = 10; // smaller number moves the snow faster var snowflake = "http://www.b3hrad.com/heart.gif"; var ns4up = (document.layers) ? 1 : 0; // browser sniffer var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // coordinate and position variables var am, stx, sty; // amplitude and step variables var i, doc_width = 400, doc_height = 500; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = 500; doc_height = 500; } dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; // set coordinate variables xp[i] = Math.random()*(doc_width-50); // set position variables yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; // set amplitude variables stx[i] = 0.02 + Math.random()/10; // set step variables sty[i] = 0.7 + Math.random(); // set step variables if (ns4up) { // set layers if (i == 0) { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"></layer>"); } else { document.write("<layer name=\"dot"+ i +"\" left=\"15\" "); document.write("top=\"15\" visibility=\"show\"><img src=\""); document.write(snowflake + "\" border=\"0\"></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } else { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;\"><img src=\""); document.write(snowflake + "\" border=\"0\"></div>"); } } } function snowNS() { // Netscape main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } dx[i] += stx[i]; document.layers["dot"+i].top = yp[i]; document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowNS()", speed); } function snowIE() { // IE main animation function for (i = 0; i < no; ++ i) { // iterate for every dot yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx[i] += stx[i]; document.all["dot"+i].style.pixelTop = yp[i]; document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowIE()", speed); } if (ns4up) { snowNS(); } else if (ie4up) { snowIE(); } </script> </body></a>
با اين كد مي توانيد نوشتتون رادر درون يك جعبه حركت بديد
<a href="http://sites.google.com/site/farshidfarhat2/"> <HTML> <HEAD> <script language="JavaScript"> <!-- Begin ScrollSpeed = 200; ScrollChars = 1; function ScrollMarquee() { window.setTimeout('ScrollMarquee()', ScrollSpeed); var msg = document.scrollform.box.value; document.scrollform.box.value = msg.substring(ScrollChars) + msg.substring(0, ScrollChars); } // End --> </script> </HEAD> <BODY onLoad="javascript:ScrollMarquee()"> <div align="center"> <form method="get" name="scrollform"> <input name="box" type="text" size="15" value="farshid.farhat.googlepages.com" onFocus="javascript:this.value='';ScrollSpeed=99999;"> </form> </div> <script language='JavaScript' type='text/javascript'> <!-- if (!document.phpAds_used) document.phpAds_used = ','; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language='JavaScript' type='text/javascript' src='"); document.write ("http://www.sphosting-adserver.com/phpadsnew/adjs.php?n=" + phpAds_random); document.write ("&amp;what=zone:16"); document.write ("&amp;exclude=" + document.phpAds_used); if (document.referer) document.write ("&amp;referer=" + escape(document.referer)); document.write ("'><" + "/script>"); //--> </script> </BODY> </HTML></a>
با اين كد مي توانيد به متن خود رنگ زمينه اي بديد كه چشمك بزند
<a href="http://sites.google.com/site/farshidfarhat2/"> <BODY> <script> var message='<b><font color=000000 size=5>frash</font></b>'; var backgroundcolor="yellow"; mode var displaymode=0; below (1000=1 sec) var displayduration=10000; var flashmode=1; var flashtocolor="lightgreen"; line//////////////////////////////////////// function regenerate(){ window.location.reload(); } var which=0; function regenerate2(){ if (document.layers) setTimeout("window.onresize=regenerate",400); } function display2(){ if (document.layers){ if (topmsg.visibility=="show") topmsg.visibility="hide"; else topmsg.visibility="show"; } else if (document.all){ if (topmsg.style.visibility=="visible") topmsg.style.visibility="hidden"; else topmsg.style.visibility="visible"; setTimeout("display2()",Math.round(Math.random()*10000)+10000); } } function flash(){ if (which==0){ if (document.layers) topmsg.bgColor=flashtocolor; else topmsg.style.backgroundColor=flashtocolor; which=1; } else{ if (document.layers) topmsg.bgColor=backgroundcolor; else topmsg.style.backgroundColor=backgroundcolor; which=0; } } if (document.all){ document.write('<span id="topmsg" style="position:absolute;visibility:hidden">'+message+'</span>'); } function logoit(){ document.all.topmsg.style.left=document.body.scrollLeft+document.body.clientWidth/2-document.all.topmsg.offsetWidth/2; document.all.topmsg.style.top=document.body.scrollTop+document.body.clientHeight-document.all.topmsg.offsetHeight-4; } function logoit2(){ topmsg.left=pageXOffset+window.innerWidth/2-topmsg.document.width/2; topmsg.top=pageYOffset+window.innerHeight-topmsg.document.height-5; setTimeout("logoit2()",90); } function setmessage(){ document.all.topmsg.style.left=document.body.scrollLeft+document.body.clientWidth/2-document.all.topmsg.offsetWidth/2; document.all.topmsg.style.top=document.body.scrollTop+document.body.clientHeight-document.all.topmsg.offsetHeight-4; document.all.topmsg.style.backgroundColor=backgroundcolor; document.all.topmsg.style.visibility="visible"; if (displaymode==1) setTimeout("topmsg.style.visibility='hidden'",displayduration); else if (displaymode==2) display2(); if (flashmode==1) setInterval("flash()",1000); window.onscroll=logoit; window.onresize=new Function("window.location.reload()"); } function setmessage2(){ topmsg=new Layer(window.innerWidth); topmsg.bgColor=backgroundcolor; regenerate2(); topmsg.document.write(message); topmsg.document.close(); logoit2(); topmsg.visibility="show"; if (displaymode==1) setTimeout("topmsg.visibility='hide'",displayduration); else if (displaymode==2); display2(); if (flashmode==1) setInterval("flash()",1000); } if (document.layers) window.onload=setmessage2; else if (document.all) window.onload=setmessage; </script> <script language='JavaScript' type='text/javascript'> <!-- if (!document.phpAds_used) document.phpAds_used = ','; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language='JavaScript' type='text/javascript' src='"); document.write ("http://www.sphosting-adserver.com/phpadsnew/adjs.php?n=" + phpAds_random); document.write ("&amp;what=zone:16"); document.write ("&amp;exclude=" + document.phpAds_used); if (document.referer) document.write ("&amp;referer=" + escape(document.referer)); document.write ("'><" + "/script>"); </script> </body></a> </textarea></font></span></p> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif">ستاره هاي زيبا به دنبال موس</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <HTML> <HEAD> <style type="text/css"> <!-- #a { position: absolute; top: 10px; left: 10px; visibility: visible } #b { position: absolute; top: 10px; left: 10px; visibility: visible } #c { position: absolute; top: 10px; left: 10px; visibility: visible } #d { position: absolute; top: 10px; left: 10px; visibility: visible } #e { position: absolute; top: 10px; left: 10px; visibility: visible } #f { position: absolute; top: 10px; left: 10px; visibility: visible } #g { position: absolute; top: 10px; left: 10px; visibility: visible } --> </style> </HEAD> <BODY> <layer name="a0" left="10" top="10" visibility="show" bgcolor="#ff0000" clip="0,0,2,2"></layer> <layer name="a1" left="10" top="10" visibility="show" bgcolor="#ff8000" clip="0,0,2,2"></layer> <layer name="a2" left="10" top="10" visibility="show" bgcolor="#ffff00" clip="0,0,2,2"></layer> <layer name="a3" left="10" top="10" visibility="show" bgcolor="#00ff00" clip="0,0,2,2"></layer> <layer name="a4" left="10" top="10" visibility="show" bgcolor="#0000ff" clip="0,0,2,2"></layer> <layer name="a5" left="10" top="10" visibility="show" bgcolor="#ff00ff" clip="0,0,2,2"></layer> <layer name="a6" left="10" top="10" visibility="show" bgcolor="#ffffff" clip="0,0,2,2"></layer> <div id="starsDiv" style="position:absolute;top:0px;left:0px"> <div style="position:relative;width:2px;height:2px;background:#ffffff;font-size:1px;visibility:visible"></div> <div style="position:relative;width:2px;height:2px;background:#ffff00;font-size:1px;visibility:visible"></div> <div style="position:relative;width:2px;height:2px;background:#ffa000;font-size:1px;visibility:visible"></div> <div style="position:relative;width:2px;height:2px;background:#ff0000;font-size:1px;visibility:visible"></div> <div style="position:relative;width:2px;height:2px;background:#00ff00;font-size:1px;visibility:visible"></div> <div style="position:relative;width:2px;height:2px;background:#0000ff;font-size:1px;visibility:visible"></div> <div style="position:relative;width:2px;height:2px;background:#FF00FF;font-size:1px;visibility:visible"></div> </div> <script language="JavaScript"> Xpos = document.body.scrollLeft + event.x; Ypos = document.body.scrollTop + event.y; } function xMoveHandler(evnt) { Xpos = evnt.pageX; Ypos = evnt.pageY; } if (document.layers) { window.captureEvents(Event.MOUSEMOVE); } var yBase = 200; var xBase = 200; var yAmpl = 10; var yMax = 40; var step = .2; var ystep = .5; var currStep = 0; var tAmpl=1; var Xpos = 1; var Ypos = 1; var i = 0; var j = 0; if (document.all) { document.onmousemove = MoveHandler; } else if (document.layers) { window.onMouseMove = xMoveHandler; } function animateLogo() { if (document.all) { yBase = window.document.body.offsetHeight / 4; xBase = window.document.body.offsetWidth / 4; } else if (document.layers) { yBase = window.innerHeight / 4; xBase = window.innerWidth / 4; } if (document.all) { for (i = 0 ; i < starsDiv.all.length; i++) { starsDiv.all[i].style.top = Ypos + Math.cos((20*Math.sin(currStep/20))+i*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10); starsDiv.all[i].style.left = Xpos + Math.sin((20*Math.sin(currStep/20))+i*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10); } } else if (document.layers) { for (j = 0; j < 7; j++) { //7 is number of NS layers! var templayer="a" + j; document.layers[templayer].top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10); document.layers[templayer].left =Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10); } } currStep += step; setTimeout("animateLogo()", 10); } animateLogo(); // End --> </script> <script language='JavaScript' type='text/javascript'> <!-- if (!document.phpAds_used) document.phpAds_used = ','; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language='JavaScript' type='text/javascript' src='"); document.write ("http://www.sphosting-adserver.com/phpadsnew/adjs.php?n=" + phpAds_random); document.write ("&amp;what=zone:16"); document.write ("&amp;exclude=" + document.phpAds_used); if (document.referer) document.write ("&amp;referer=" + escape(document.referer)); document.write ("'><" + "/script>"); //--> </script> </BODY> </HTML></a>
مربع هاي رنگي که دور موس می چرخند
<a href="http://sites.google.com/site/farshidfarhat2/"> <HTML> <HEAD> <script language="JavaScript"> <!-- Begin function nMouse(evnt){ Ypos = evnt.pageY; Xpos = evnt.pageX; } function iMouse() { Ypos = event.y+document.body.scrollTop; Xpos = event.x+document.body.scrollLeft; } function Comet() { var yBase = (document.layers)?window.innerHeight/4:window.document.body.clientHeight/4; var xBase = (document.layers)?window.innerWidth/4:window.document.body.clientWidth/4; for (i = 0; i < 14; i++){ var randCol = Math.round(Math.random()*8); var layer = (document.layers)?document.layers['n'+i]:me[i].style; layer.top =Ypos + yBase*Math.cos((currStep+i*4)/12)*Math.cos(0.7+currStep/200); layer.left = Xpos + xBase*Math.sin((currStep+i*3)/10)*Math.sin(8.2+currStep/400); if (ns) layer.bgColor = Clrs[randCol]; else layer.background = Clrs[randCol]; } currStep += step; setTimeout("Comet()",10); } ns = (document.layers)?1:0; Clrs = new Array('ff0000','00ff00','ffffff','ff00ff','ffa500','ffff00','00ff00','ffffff','ff00ff'); yBase = 0; xBase = 0; step = 3; currStep = 0; Ypos = 0; Xpos = 0; if (ns){ for (i = 0; i < 14; i++) document.write('<LAYER NAME="n'+i+'" LEFT=0 TOP=0 CLIP="0,0,'+i/4+','+i/4+'"></LAYER>'); window.captureEvents(Event.MOUSEMOVE); window.onMouseMove = nMouse; } else{ document.write('<div style="position:absolute;top:0;left:0"><div style="position:relative">'); for (i=0; i < 14; i++) {document.write('<div id="me" style="position:absolute;top:0;left:0;width:'+i/4+';height:'+i/4+';font-size:'+i/4+'"></div>');} document.write('</div></div>'); document.onmousemove = iMouse; } window.onload = Comet; </script> </HEAD> <BODY> <script language='JavaScript' type='text/javascript'> <!-- if (!document.phpAds_used) document.phpAds_used = ','; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language='JavaScript' type='text/javascript' src='"); document.write ("http://www.sphosting-adserver.com/phpadsnew/adjs.php?n=" + phpAds_random); document.write ("&amp;what=zone:16"); document.write ("&amp;exclude=" + document.phpAds_used); if (document.referer) document.write ("&amp;referer=" + escape(document.referer)); document.write ("'><" + "/script>"); //--> </script> </BODY> </HTML></a>
با اين كد بهنگام كليك كردن مربع هاي رنگي در صفحه پخش مي شوند
<a href="http://sites.google.com/site/farshidfarhat2/"> <HTML> <HEAD> <script language="JavaScript1.2"> <!-- Begin var ver = navigator.appVersion; var dom = document.getElementById ? 1 : 0; var ie5 = (ver.indexOf("MSIE 5") > -1 && dom) ? 1 : 0; var n = (document.layers); var ie = (document.all); var sparksAflyin = 0; var totalSparks = 0; var sparksOn = 1; function initMouseEvents() { document.onmousedown = mouseDown; if (n) document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE); } function mouseDown(e) { if (sparksOn) { var mousex = (n) ? e.pageX : event.x+document.body.scrollLeft; var mousey = (n) ? e.pageY : event.y+document.body.scrollTop; if (!sparksAflyin) { for (var k = 0; k <= 9; k++) eval('SHOW("sDiv'+k+'")'); sparksAflyin = 1; totalSparks = 0; for(i = 0;i <= 9; i++) eval('moveTo('+i+',0,'+mousex+','+mousey+')'); } } } function moveTo(i,j, mousex, mousey){ if (j < eval('anim_'+i+'_x.length') ){ var tempx = eval('anim_'+i+'_x[j]+mousex'); var tempy = eval('anim_'+i+'_y[j]+mousey'); if (ie) { if(tempy+30 > (document.body.offsetHeight+document.body.scrollTop)) tempy = document.body.offsetHeight+document.body.scrollTop-30; if(tempx+30 > (document.body.offsetWidth+document.body.scrollLeft)) tempx = document.body.offsetWidth+document.body.scrollLeft-30; eval('document.all.sDiv'+i+'.style.left = tempx;'); eval('document.all.sDiv'+i+'.style.top = tempy;'); } if (n) { eval('document.layers.sDiv'+i+'.left = tempx;'); eval('document.layers.sDiv'+i+'.top = tempy;'); } j++; // timeout: 50 = fireworks speed, larger number = slower speed setTimeout("moveTo("+i+","+j+","+mousex+","+mousey+")",50); } else { eval('HIDE("sDiv'+i+'")'); totalSparks++; } if (totalSparks == 10) { sparksAflyin = 0; totalSparks = 0; } } function SHOW(divName){ if (document.all) eval('document.all.'+divName+'.style.visibility = "visible";'); else if (document.layers) eval('document.layers["'+divName+'"].visibility = "visible";'); } function HIDE(divName){ if (document.all) eval('document.all.'+divName+'.style.visibility = "hidden";'); else if (document.layers) eval('document.layers["'+divName+'"].visibility = "hide";'); } anim_0_x=new Array(20,20,10,0,0,0,0,0,0,0,0,0); anim_0_y=new Array(-20,-40,-60,-80,-60,-40,-20,0,20,40,60,80); anim_1_x=new Array(20,20,17,36,60,78,90,92,93,98,108,120,133,152,181); anim_1_y=new Array(-20,-20,-33,-38,-38,-27,-2,25,51,84,113,141,162,212,253); anim_2_x=new Array(20,20,2,3,4,5,6,7,8,9,10,12,13,15,18); anim_2_y=new Array(-20,-20,-33,-38,-38,-27,-2,25,51,84,113,141,162,212,253); anim_3_x=new Array(-20,-20,-2,-1,7,10,18,35,60,102,94,94,93,97,108,111,117,127); anim_3_y=new Array(-20,-25,-64,-89,-104,-150,-173,-197,-213,-199,-151,-101,-66,-17,27,87,140,189); anim_4_x=new Array(-20,-20,-10,-39,-30,-69,-64,-138,-154,-200,-181,-209,-191,-207,-203,-213,-202,-221,-211); anim_4_y=new Array(-20,-20,-28,-51,-79,-100,-135,-154,-193,-183,-149,-134,-89,-60,8,51,107,157,201); anim_5_x=new Array(-20,-29,-51,-72,-105,-133,-164,-189,-209,-229,-247,-270,-279,-282,-283,-283,-285,-286,-288); anim_5_y=new Array(-20,-55,-86,-116,-154,-183,-205,-217,-217,-198,-169,-120,-44,-8,40,87,144,190,248); anim_6_x=new Array(-20,-20,-7,14,44,79,143,186,217,226,234,244,250,259,265,274); anim_6_y=new Array(-20,-21,-72,-113,-139,-166,-188,-181,-126,-68,-3,54,134,187,215,257); anim_7_x=new Array(20,20,-3,-9,-13,-27,-33,-44,-54,-66,-77,-95,-107,-136,-150,-160,-164,-168,-171,-172,-172,-176,-175); anim_7_y=new Array(-20,-26,-43,-63,-89,-116,-145,-169,-201,-222,-240,-253,-254,-245,-220,-195,-160,-124,-81,-53,-26,19,68); anim_8_x=new Array(-20,20,-35,39,0,45,-1,24,-15,14,-20,35,-18,38,-11,16,49,64,81,93,100,103,109); anim_8_y=new Array(-20,-20,-32,-42,-62,-76,-89,-107,-132,-147,-173,-180,-192,-209,-236,-193,-119,-73,-24,51,95,130,188); anim_9_x=new Array(-20,-51,-89,-110,-165,-191,-228,-240,-259,-271,-277,-281,-287); anim_9_y=new Array(-20,-20,-35,-37,-34,-16,10,47,105,150,189,227,273); // End --> </script> </HEAD> <BODY onLoad="initMouseEvents()"> <div id="sparks"> <div id="sDiv0" style="position:absolute; visibility: hidden;"><font face="arial black" color="red">.</font></div> <div id="sDiv1" style="position:absolute; visibility: hidden;"><font face="arial black" color="yellow">.</font></div> <div id="sDiv2" style="position:absolute; visibility: hidden;"><font face="arial black" color="blue">.</font></div> <div id="sDiv3" style="position:absolute; visibility: hidden;"><font face="arial black" color="red">.</font></div> <div id="sDiv4" style="position:absolute; visibility: hidden;"><font face="arial black" color="orange">.</font></div> <div id="sDiv5" style="position:absolute; visibility: hidden;"><font face="arial black" color="white">.</font></div> <div id="sDiv6" style="position:absolute; visibility: hidden;"><font face="arial black" color="green">.</font></div> <div id="sDiv7" style="position:absolute; visibility: hidden;"><font face="arial black" color="skyblue">.</font></div> <div id="sDiv8" style="position:absolute; visibility: hidden;"><font face="arial black" color="yellow">.</font></div> <div id="sDiv9" style="position:absolute; visibility: hidden;"><font face="arial black" color="white">.</font></div> </div> <script language='JavaScript' type='text/javascript'> <!-- if (!document.phpAds_used) document.phpAds_used = ','; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language='JavaScript' type='text/javascript' src='"); document.write ("http://www.sphosting-adserver.com/phpadsnew/adjs.php?n=" + phpAds_random); document.write ("&amp;what=zone:16"); document.write ("&amp;exclude=" + document.phpAds_used); if (document.referer) document.write ("&amp;referer=" + escape(document.referer)); document.write ("'><" + "/script>"); //--> </script> </BODY> </HTML></a>
كد قفل كردن راست كليك كه هنگام راست كليك صفحه را مي لرزاند و يك پيغام مي دهد
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT language="javascript"> document.onmousedown=click var times=0 var times2=4 function click() { if ((event.button==2) || (event.button==3)) { if (times>=0) { earthquake() } alert("farshid.farhat.googlepages.com"); times++ } } function earthquake () { alert("No save frash") window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) tremmors() } function tremmors() { window.moveTo(0, 0) window.moveTo(1, 1) window.moveTo(2, 2) window.moveTo(3, 3) window.moveTo(4, 4) window.moveTo(5, 5) window.moveTo(6, 6) window.moveTo(7, 7) window.moveTo(8, 8) window.moveTo(9, 9) window.moveTo(10, 10) window.moveTo(9, 9) window.moveTo(8, 8) window.moveTo(7, 7) window.moveTo(6, 6) window.moveTo(5, 5) window.moveTo(4, 4) window.moveTo(3, 3) window.moveTo(2, 2) window.moveTo(1, 1) } </SCRIPT></a>
ساعت كامپيوتري براي وبلاگ ( 1 )
<a href="http://sites.google.com/site/farshidfarhat2/"> <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=""></form></CENTER></a>
ساعت عقربه اي به دنبال موس ( 1 )
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JavaScript"> <!-- 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 = 'frash..'; H = H.split(''); H = H.reverse(); M = 'frash..'; M = M.split(''); M = M.reverse(); S = 'frash..'; 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></a>
ساعت عقربه اي به دنبال موس ( 2 )
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JavaScript"> <!-- 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> </a>
ساعت كامپيوتري براي وبلاگ ( 2 )
<a href="http://sites.google.com/site/farshidfarhat2/"> <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></head> <BODY onLoad="showTheTime()"><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> </body></a>
كد نشان دهنده مشخصات سيستم بازديدكننده
<a href="http://sites.google.com/site/farshidfarhat2/"> <P align=center><FONT color=#ff0000 face=tahoma><I><MARQUEE direction=right behavior=alternate width="149">اطلاعات کامپيوترشم</MARQUEE></I> </FONT></P> <HR width=100 color=#FF0000> <P align=center> <BR><FONT style="FONT-SIZE: 10pt" face=Tahoma color=#FF0000> <SCRIPT language=JavaScript> var xy = navigator.appVersion; xz = xy.substring(22,25); document.write("مرورگر شما : ", navigator.appName,"<br>"); document.write("نگارش : ",xz,"<br>"); document.write("وضوح نمايشگر شما : ",screen.width," در ",screen.height,"پيکسل<br>"); if (navigator.javaEnabled()) document.write("جاوا فعال است<br>"); else document.write("جاوا فعال نیست<br>") </SCRIPT></font></a>
كد نشان دهنده پارتيشن هاي رايانه بازديدكننده
<a href="http://sites.google.com/site/farshidfarhat2/"> <p align="center"><iframe name="I1" src="file:///c:" width="550" height="298"> Your browser does not support inline frames or is currently configured not to display inline frames. </iframe></p></a>
كد حذف تبليغات براي همه وبلاگ ها
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JScript"> function removeAdv() { try { var divtags=document.all.tags('div') for(i=0;i<divtags.length;i++) if((divtags[i].style.zIndex==2000)|(divtags[i].style.zIndex==2001)) divtags[i].innerHTML='<table width="100%" align="right"><tr><td><font face="Tahoma" size="1" color="gray">macromediax</font></td></tr></table>' if((divtags[i].style.zIndex==1000)|(divtags[i].style.zIndex==1001)) divtags[i].innerHTML='<table width="100%" align="right"><tr><td><font face="Tahoma" size="1" color="gray">macromediax</font></td></tr></table>' } catch (e) {} } setInterval('removeAdv()',1000); </script></a>
اين كد امكان چت بازديدكننده ها با شما را مي دهد
<a href="http://sites.google.com/site/farshidfarhat2/"> <a href="ymsgr:sendim?dihsraf"> <img border="0" src="http://opi.yahoo.com/online?u=dihsraf&m=g&t=2"></a>
اين كد قويترين سيستم دوستيابي جهان را به وبلاگ شما اضافه مي كند
<a href="http://sites.google.com/site/farshidfarhat2/"> <html dir="rtl"> <head> <meta http-equiv="Content-Language" content="en-us"> <STYLE>.textforyp { FONT-WEIGHT: normal; FONT-SIZE: 10px; COLOR: #000; FONT-FAMILY: Verdana,Arial,helvetica } .boxforyp { FONT: 10px Verdana,Arial,helvetica; COLOR: #000; BACKGROUND-COLOR: #a3c5ed } .buttonforyp { FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #000; BACKGROUND-COLOR: #7ba6db } </STYLE> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <style> <!-- .textforyp { FONT-WEIGHT: normal; FONT-SIZE: 10px; COLOR: #000; FONT-FAMILY: Verdana,Arial,helvetica } .boxforyp { FONT: 10px Verdana,Arial,helvetica; COLOR: #000; BACKGROUND-COLOR: #a3c5ed } INPUT { BORDER-RIGHT: #000 1px solid; BORDER-TOP: #000 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #000 1px solid; COLOR: #000000; BORDER-BOTTOM: #000 1px solid; FONT-FAMILY: tahoma, times new roman; BACKGROUND-COLOR: #c4d4f8 } .buttonforyp { FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #000; BACKGROUND-COLOR: #7ba6db } .blogtitle { FONT-WEIGHT: bold; FONT-SIZE: 40px; FILTER: glow(Color=#000000,Strength=10); MARGIN: 2px; WIDTH: 450px; COLOR: #00ff00; FONT-FAMILY: Arial, times new roman, sans-serif; HEIGHT: 60px } .adver { PADDING-RIGHT: 3px; PADDING-LEFT: 5px; FONT-WEIGHT: normal; FONT-SIZE: 10px; BACKGROUND: none transparent scroll repeat 0% 0%; PADDING-BOTTOM: 2px; COLOR: #000; PADDING-TOP: 2px; FONT-FAMILY: tahoma, times new roman, verdana, arial, sans-serif; TEXT-ALIGN: justify } A { FONT-SIZE: 11px; COLOR: #000; TEXT-DECORATION: none } A:link { FONT-WEIGHT: bold; COLOR: #2871ca; TEXT-DECORATION: none } a:link.post1 { FONT-SIZE: 8pt; COLOR: #1b4a85; TEXT-DECORATION: none } --> </style> </head> <body> <p> <NOSCRIPT> <A target=_blank href="http://v1.nedstatbasic.net/stats?ACCkNQQuuLhe7bR0R/EwxQgVCGLw"><IMG height=18 src="C:\My Documents\New Folder (5)\New Folder\Tootfarangi4Kid Mohamad's Persi???anBlog_files\n(1).gif" width=18 border=0 nosave=""></A></NOSCRIPT> <!-- End Nedstat Basic code --> </p> <DIV id=side14 style="border:3px solid #03366d; WIDTH: 472; HEIGHT: 95; font-weight:normal; left:57; position:absolute; top:35; text-align:center; background-color:#2669bd"> <CENTER> <STYLE>.textforyp { FONT-WEIGHT: normal; FONT-SIZE: 10px; COLOR: #000; FONT-FAMILY: Verdana,Arial,helvetica } .boxforyp { FONT: 10px Verdana,Arial,helvetica; COLOR: #000; BACKGROUND-COLOR: #a3c5ed } .buttonforyp { FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #000; BACKGROUND-COLOR: #7ba6db } </STYLE> <TABLE height=60 cellSpacing=0 cellPadding=0 width=468 bgColor=#2669bd border=0><FORM action=http://rd.yahoo.com/SIG=11ocok4fv/M=214040.4307236.5568782.42/S=55377088:N/EXP=1075208816/A=1927468/R=0/*http://personals.yahoo.com/us/common/quicksearch method=get target=_blank> <INPUT type=hidden value=1 name=submit1 style="font-size: 11px; color: #000000; font-family: tahoma, 'times new roman'; border: 1px solid #000; background-color: #c4d4f8"> <INPUT type=hidden value=2 name=r_has_photo style="font-size: 11px; color: #000000; font-family: tahoma, 'times new roman'; border: 1px solid #000; background-color: #c4d4f8"> <INPUT type=hidden value=search name=dest style="font-size: 11px; color: #000000; font-family: tahoma, 'times new roman'; border: 1px solid #000; background-color: #c4d4f8"> <TBODY> <TR> <TD rowSpan=2 dir="ltr"> </TD> <TD dir="ltr"> </TD></TR> <TR> <TD dir="ltr"> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 dir="ltr"> <TBODY> <TR align=middle dir="ltr"> <TD class=textforyp vAlign=bottom dir="ltr"><font face="Tahoma"> <span lang="fa">من يك </span></font></TD> <TD class=textforyp vAlign=bottom dir="ltr"><font face="Tahoma"> <span lang="fa">به دنبال</span></font></TD> <TD class=textforyp vAlign=bottom dir="ltr"><font face="Tahoma"> <span lang="fa">با سن</span></font></TD> <TD class=textforyp vAlign=bottom dir="ltr"><font face="Tahoma"> <span lang="fa">با كد شهر</span></font></TD> <TD class=textforyp vAlign=bottom dir="ltr"> </TD></TR> <TR align=middle dir="ltr"> <TD class=textforyp vAlign=top dir="ltr"><SELECT class=boxforyp id=r_gender_pref name=r_gender_pref> <OPTION value=2 selected dir="ltr">Man</OPTION><OPTION value=1 dir="ltr">Woman</OPTION></SELECT></TD> <TD class=textforyp vAlign=top dir="ltr"><SELECT class=boxforyp id=r_gender name=r_gender><OPTION value=1 selected dir="ltr">Woman</OPTION> <OPTION value=2 dir="ltr">Man</OPTION></SELECT></TD> <TD class=textforyp vAlign=top dir="ltr"> <INPUT class=boxforyp id=r_min_age maxLength=80 size=3 name=r_min_age> <font face="Tahoma"> <span lang="fa">تا</span></font> <INPUT class=boxforyp id=r_max_age maxLength=80 size=3 name=r_max_age> </TD> <TD class=textforyp vAlign=top dir="ltr"> <INPUT class=boxforyp maxLength=80 size=10 name=csz></TD> <TD class=textforyp vAlign=top noWrap dir="ltr"><INPUT class=buttonforyp type=submit value=Go! name=submit></TD></TR></TBODY></TABLE></TD></TR></FORM></TABLE> <P class=blogtitle> <font face="Arial Black" color="#1B4A85" style="font-size: 32pt"> <a target="_blank" href="http://farshid.farhat.googlepages.com"> <font color="#7BA6DB" size="6">frash</font></a></font></P></CENTER></DIV> </body> </html></a>
يك نوشته زيبا به دنبال موس
<a href="http://sites.google.com/site/farshidfarhat2/"> <meta http-equiv="Content-Language" content="en-us"> <style type="text/css"> .spanstyle { position:absolute; visibility:visible; top:-50px; font-size:10pt; font-family:Verdana; font-weight:italic; color:808066; } BODY { width:100%;overflow-x:hidden;overflow-y:scroll; } </style> <script language="JavaScript"> var x,y var kern=20 var flag=0 var message="welcome to farshid.farhat.googlepages.com" message=message.split("") var xpos=new Array() for (i=0;i<message.length;i++) { xpos[i]=-50 } var ypos=new Array() for (i=0;i<message.length;i++) { ypos[i]=-50 } function handlerMM(e){ x = (e) ? e.pageX : document.body.scrollLeft+event.clientX y = (e) ? e.pageY : document.body.scrollTop+event.clientY flag=1 } function makebanner() { if (flag==1) { for (i=message.length-1; i>=1; i--) { xpos[i]=xpos[i-1]+kern ypos[i]=ypos[i-1] } xpos[0]=x+kern ypos[0]=y for (i=0; i<message.length; i++) { if (document.getElementById) { var thisspan = document.getElementById("span"+i).style } else { var thisspan = eval((document.layers)?"document.span"+i:"span"+(i)+".style") } if (thisspan.posLeft) { thisspan.posLeft=xpos[i] thisspan.posTop=ypos[i] } if (!thisspan.posLeft) { thisspan.left=xpos[i] thisspan.top=ypos[i] } } } var timer=setTimeout("makebanner()",30) } window.onload=makebanner; </script> <script language="JavaScript1.2"> for (i=0;i<message.length;i++) { document.write("<span id='span"+i+"' class='spanstyle'>") document.write(message[i]) document.write("</span>") } if (document.layers){ document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = handlerMM; </script> </a>
نوشته چشمك زن در وبلاگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <HEAD> <SCRIPT LANGUAGE="JavaScript"> window.onerror = null; var bName = navigator.appName; var bVer = parseInt(navigator.appVersion); var NS4 = (bName == "Netscape" && bVer >= 4); var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4); var NS3 = (bName == "Netscape" && bVer < 4); var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4); var blink_speed=100; var i=0; if (NS4 || IE4) { if (navigator.appName == "Netscape") { layerStyleRef="layer."; layerRef="document.layers"; styleSwitch=""; }else{ layerStyleRef="layer.style."; layerRef="document.all"; styleSwitch=".style"; } } //BLINKING function Blink(layerName){ if (NS4 || IE4) { if(i%2==0) { eval(layerRef+'["'+layerName+'"]'+ styleSwitch+'.visibility="visible"'); } else { eval(layerRef+'["'+layerName+'"]'+ styleSwitch+'.visibility="hidden"'); } } if(i<1) { i++; } else { i-- } setTimeout("Blink('"+layerName+"')",blink_speed); } </script> </HEAD> <BODY> <div id="prem_hint" style="position:relative; left:0; visibility:hidden" class="prem_hint"> <font size="4" face="Tahoma"> <a target="_blank" href="http://www.iransohrab.net" style="text-decoration: none">welcome to my weblog</a></font></div> <script language="javascript">Blink('prem_hint');</script> </a>
لينك هاي رنگارنگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <meta http-equiv="Content-Language" content="en-us"> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function initArray() { for (var i = 0; i < initArray.arguments.length; i++) { this[i] = initArray.arguments[i]; } this.length = initArray.arguments.length; } var colors = new initArray( "red", "blue", "green", "purple", "black", "tan", "red"); delay = .5; // seconds link = 0; vlink = 2; function linkDance() { link = (link+1)%colors.length; vlink = (vlink+1)%colors.length; document.linkColor = colors[link]; document.vlinkColor = colors[vlink]; setTimeout("linkDance()",delay*1000); } linkDance(); </script> <p></a> </textarea></font></span></p> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> بسته شدن وبلاگ پس از 5 ثانيه</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JavaScript"> <!--//hiding it setTimeout("window.close();", 5); </SCRIPT> </a>
نمايش ساعت و تارخ در نوار وضعيت
<a href="http://sites.google.com/site/farshidfarhat2/"> <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Hide JavaScript From Java-Impaired Browsers var timerID = null var timerRunning = false function MakeArray(size) { this.length = size; for(var i = 1; i <= size; i++) { this[i] = ""; } return this; } function stopclock (){ if(timerRunning) clearTimeout(timerID); timerRunning = false } function showtime () { var now = new Date(); var year = now.getYear(); var month = now.getMonth() + 1; var date = now.getDate(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds(); var day = now.getDay(); Day = new MakeArray(7); Day[0]="SUN"; Day[1]="MON"; Day[2]="TUE"; Day[3]="WED"; Day[4]="THU"; Day[5]="FRI"; Day[6]="SAT"; var timeValue = ""; timeValue += (Day[day]) + " "; timeValue += ((month < 10) ? " 0" : " ") + month + "-"; timeValue += date + "-" + year + " "; timeValue += ((hours <= 12) ? hours : hours - 12); timeValue += ((minutes < 10) ? ":0" : ":") + minutes; timeValue += ((seconds < 10) ? ":0" : ":") + seconds; timeValue += (hours < 12) ? " AM" : " PM"; window.status = timeValue; timerID = setTimeout("showtime()",1000); timerRunning = true } function startclock () { stopclock(); showtime() } // End Hiding --> </SCRIPT> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startclock();"></a>
تاريخ ميلادي به زبان فارسي براي وبلاگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JavaScript"> var day=""; var month=""; var myweekday=""; var year=""; mydate = new Date(); myday = mydate.getDay(); mymonth = mydate.getMonth(); myweekday= mydate.getDate(); weekday= myweekday; myyear= mydate.getYear(); year = myyear if(myday == 0) day = " يکشنبه, " else if(myday == 1) day = " دوشنبه, " else if(myday == 2) day = "سه شنبه, " else if(myday == 3) day = " چهارشنبه, " else if(myday == 4) day = " پنجشنبه, " else if(myday == 5) day = " جمعه, " else if(myday == 6) day = " شنبه, " if(mymonth == 0) { month = "ژانويه "} else if(mymonth ==1) month = "فوريه " else if(mymonth ==2) month = "مارس " else if(mymonth ==3) month = "آوريل " else if(mymonth ==4) month = "مي" else if(mymonth ==5) month = "جون " else if(mymonth ==6) month = "جولای " else if(mymonth ==7) month = "آگوست " else if(mymonth ==8) month = "سپتامبر " else if(mymonth ==9) month = "اکتبر</font> " else if(mymonth ==10) month = "نوامبر " else if(mymonth ==11) month = "دسامبر " if ((navigator.appName == "Microsoft Internet Explorer") && (year < 2000)) year="19" + year; if (navigator.appName == "Netscape") year=1900 + year; document.write("<font face=Nesf size:12px color=#333333>" + day + myweekday ); document.write(month + ", " +year + "</font>"); </SCRIPT></a>
نمايش آي پي سيستم بازديدكننده
<a href="http://sites.google.com/site/farshidfarhat2/"> <font face="Tahoma"> <a target="_blank" href="http://farshid.farhat.googlepages.com"> <BR> <SCRIPT language=JavaScript> var ip = '62.219.90.152'; document.write("آدرس آي پي شما :"+ip+""); </SCRIPT> <BR></a><BR> </font></a>
تغيير رنگ درون باكس هاي شما
<a href="http://sites.google.com/site/farshidfarhat2/"> <html> <head> <style> .t0 { color: brown; background-color: pink; } .t1 { color: darkblue; background-color: gold; } </style> </head> <body> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; color: black; font-family: Arial;" lang="AR-SA"> <font face="tahoma,arial,helvetica,sans-serif">سخنگو براي وبلاگها با امكان صحبت و خوش آمدگويي معرفي بخش هاي مختلف وبلاگ به كاربران</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; color: black; font-family: Arial;" lang="AR-SA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <OBJECT classid=CLSID:D45FD31B-5C6E-11D1-9EC1-00C04FD7081F id=ricci width="32" height="32"></OBJECT> <SCRIPT> var MerlinID; var MerlinACS; ricci.Connected = true; MerlinLoaded = LoadLocalAgent(MerlinID, MerlinACS); Merlin = ricci.Characters.Character(MerlinID); Merlin.Show(); Merlin.Play("congratulate"); Merlin.Speak("welcome to frash script"); Merlin.Play("announce"); Merlin.Think("http://sites.google.com/site/farshidfarhat2/"); Merlin.Play("domagic2"); Merlin.Think("mailto:frash83@gmail.com"); Merlin.Play("domagic1"); Merlin.Hide(); function LoadLocalAgent(CharID, CharACS) { LoadReq = ricci.Characters.Load(CharID, CharACS); return(true); } </SCRIPT></a>
پيغام به هنگام ورود به وبلاگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <script language="javascript">alert("! به وبلاگ من خوش آمديد");</script></a>
ارائه يك پيغام در زماني از روز
<a href="http://sites.google.com/site/farshidfarhat2/"> <html> <head> </head> <body> <h2> <script language="javascript" type="text/javascript"> now = new Date if (now.getHours() < 5) { document.write("What are you doing up so later?") } else if (now.getHours() < 9) { document.write("Good Morning!") } else if (now.getHours() < 17) { document.write("No surfing during working hours!") } else { document.write("Good Evening!") } </script> </h2> </body> </html></a>
باز شدن سي دي رام به هنگام ورود به وبلاگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <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></a>
لرزش صفحه به مدت 2 ثانيه
<a href="http://sites.google.com/site/farshidfarhat2/"> <p align="center"> <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></a>
نمايش ساعات مختلف جهان
<a href="http://sites.google.com/site/farshidfarhat2/"> <body> <table border="0" width="200" cellspacing="0" cellpadding="3"> <form name="where"> <tr> <td width="100%"> <span style="font-size: 8pt"><select name="city" size="1" onchange="updateclock(this);"> <option value="" selected>Local time</option> <option value="0">London GMT</option> <option value="1">Rome</option> <option value="7">Bangkok</option> <option value="8">Hong Kong</option> <option value="9">Tokyo</option> <option value="10">Sydney</option> <option value="12">Fiji</option> <option value="-10">Hawaii</option> <option value="-8">San Francisco</option> <option value="-5">New York</option> <option value="-3">Buenos Aires</option> </select> </span> </td> </tr> <tr> <td width="100%"> <script language="JavaScript"> if (document.all||document.getElementById) document.write('<span id="worldclock" style="font:bold 16px Arial;"></span><br>') zone=0; isitlocal=true; ampm=''; function updateclock(z){ zone=z.options[z.selectedIndex].value; isitlocal=(z.options[0].selected)?true:false; } function WorldClock(){ now=new Date(); ofst=now.getTimezoneOffset()/60; secs=now.getSeconds(); sec=-1.57+Math.PI*secs/30; mins=now.getMinutes(); min=-1.57+Math.PI*mins/30; hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zone); hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360; if (hr < 0) hr+=24; if (hr > 23) hr-=24; ampm = (hr > 11)?"PM":"AM"; statusampm = ampm.toLowerCase(); hr2 = hr; if (hr2 == 0) hr2=12; (hr2 < 13)?hr2:hr2 %= 12; if (hr2<10) hr2="0"+hr2 var finaltime=hr2+':'+((mins < 10)?"0"+mins:mins)+':'+((secs < 10)?"0"+secs:secs)+' '+statusampm; if (document.all) worldclock.innerHTML=finaltime else if (document.getElementById) document.getElementById("worldclock").innerHTML=finaltime else if (document.layers){ document.worldclockns.document.worldclockns2.document.write(finaltime) document.worldclockns.document.worldclockns2.document.close() } setTimeout('WorldClock()',1000); } window.onload=WorldClock //--> </script> <!--Place holder for NS4 only--> <ilayer id="worldclockns" width=100% height=35><layer id="worldclockns2" width=100% height=35 left=0 top=0 style="font:bold 16px Arial;"></layer></ilayer> </td> </form> </table> </body> </a>
درست كردن يك تكس باكس در وبلاگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <p><textarea rows="3" name="S1" cols="30" style="font-family: Tahoma;font-size: 8pt; border-style: dotted; border-width: 1; padding-left: 4;padding-right: 4; padding-top: 1; padding-bottom: 1">
انتخاب رنگ پس زمينه ب صورت تصادفي
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function backcolor(form) { temp = "" for (var I = 0; I < 16; I++) { temp = form.color[I].value if (form.color[I].checked){ document.bgColor = temp } } } function randombackground() { document.bgColor = getColor() } function getColor(){ currentdate = new Date() backgroundcolor = currentdate.getSeconds() if (backgroundcolor > 44) backgroundcolor = backgroundcolor - 45 else if (backgroundcolor > 29) backgroundcolor = backgroundcolor - 30 else if (backgroundcolor > 15) backgroundcolor = backgroundcolor - 16 if (backgroundcolor == 0 ) return "olive"; else if (backgroundcolor == 1 ) return "teal"; else if (backgroundcolor == 2 ) return "red"; else if (backgroundcolor == 3 ) return "blue"; else if (backgroundcolor == 4 ) return "maroon"; else if (backgroundcolor == 5 ) return "navy"; else if (backgroundcolor == 6 ) return "lime"; else if (backgroundcolor == 7 ) return "fuschia"; else if (backgroundcolor == 8 ) return "green"; else if (backgroundcolor == 9 ) return "purple"; else if (backgroundcolor == 10 ) return "gray"; else if (backgroundcolor == 11 ) return "yellow"; else if (backgroundcolor == 12 ) return "aqua"; else if (backgroundcolor == 13 ) return "black"; else if (backgroundcolor == 14 ) return "white"; else if (backgroundcolor == 15 ) return "silver"; } // End --> </SCRIPT> <CENTER> <FORM> <input type="button" value="انتخاب يك رنگ به صورت شانسی" onClick="randombackground()" style="font-family: Tahoma; font-size: 8pt"> </FORM> </CENTER> </a>
انتقال جالب بازديدكننده به يك صفحه جديد
<a href="http://sites.google.com/site/farshidfarhat2/"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META name="GENERATOR" content="Microsoft FrontPage 6.0"> <TITLE>Coocool Script Wizard</TITLE> </HEAD> <body> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin var hexChars="0123456789ABCDEF"; function Dec2Hex (Dec) { var a=Dec % 16; var b=(Dec - a)/16; hex="" + hexChars.charAt(b) + hexChars.charAt(a); return hex; } function bgChanger (begin, end, steps) { steps=steps-1 ; redA=begin.charAt(0) + begin.charAt(1); red_valA=parseInt(redA,'16'); redB=end.charAt(0) + end.charAt(1); red_valB=parseInt(redB,'16'); red_int=((red_valB - red_valA) / steps) * -1; grnA=begin.charAt(2) + begin.charAt(3); grn_valA=parseInt(grnA,'16'); grnB=end.charAt(2) + end.charAt(3); grn_valB=parseInt(grnB,'16'); grn_int=((grn_valB - grn_valA) / steps) * -1; bluA=begin.charAt(4) + begin.charAt(5); blu_valA=parseInt(bluA,'16'); bluB=end.charAt(4) + end.charAt(5); blu_valB=parseInt(bluB,'16'); blu_int=((blu_valB - blu_valA) / steps) * -1; step=2; red=red_valA; grn=grn_valA; blu=blu_valA; while ( steps >= step ) { red-=red_int; red_round=Math.round(red); red_hex=Dec2Hex(red); grn-=grn_int; grn_round=Math.round(grn); grn_hex=Dec2Hex(grn); blu-=blu_int; blu_round=Math.round(blu); blu_hex=Dec2Hex(blu); document.bgColor=red_hex + grn_hex + blu_hex; step++; } } bgChanger("000000","000000",60); bgChanger("000000","FF0000",60); bgChanger("FF0000","000000",60); bgChanger("000000","AA00EE",60); bgChanger("AA00EE","000000",60); bgChanger("000000","0000FF",60); bgChanger("0000FF","000000",60); bgChanger("000000","000000",60); window.location="http://sites.google.com/site/farshidfarhat2/"; // End --> </script> </BODY></HTML></a>
پخش موزيك همراه با دكمه هاي كنترل
<a href="http://sites.google.com/site/farshidfarhat2/"> <object style="border: 3px solid " height="46" width="147" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"> <param name="volume" value="100"> <param name="Url" value="آدرس وب آهنگ"> <param name="enableContextMenu" value="-1"> <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="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="fullScreen" value="0"> <param name="SAMIStyle" value> <param name="SAMILang" value> <param name="SAMIFilename" value> <param name="captioningID" value> <param name="enableErrorDialogs" value="0"> <embed src="آدرس وب آهنگ" stretchtofit="true" loop="true" enablecontextmenu="false" showcontrols="true" height="165" width="135" name="WMP1"></embed></object></a>
جعبه لينك همراه با دكمه هاي انتخاب
<a href="http://sites.google.com/site/farshidfarhat2/"> <CENTER> <FORM> <SELECT NAME="list"> <OPTION SELECTED VALUE="URL1">NAME URL1</OPTION> <OPTION VALUE="URL2">NAME URL2</OPTION> <OPTION VALUE="URL3">NAME URL3</OPTION> <OPTION VALUE="URL4">NAME URL4</OPTION> </SELECT><P> <INPUT TYPE=BUTTON VALUE="Go Get It!" onClick="top.location.href=this.form.list.options[this.form.list.selectedIndex].v alue"> </FORM> </CENTER> <p align="center"><a href="http://farshid.farhat.googlepages.com"><font face="Tahoma" size="2">frash</font></a></p></a>
جعبه لينك همراه بدون دكمه هاي انتخاب
<a href="http://sites.google.com/site/farshidfarhat2/"> <SELECT dir=rtl style="FONT-SIZE: 11px; FONT-FAMILY: Tahoma" onchange="var a=this.options[this.selectedIndex].value; window.open(a,'')" size=1 name=nam> <OPTION selected>YOUR TEXT</OPTION> <OPTION value="URL 1">YOUR NAME URL1</OPTION> <OPTION value="URL 2">YOUR NAME URL2</OPTION> <OPTION value="URL 3">YOUR NAME URL3</OPTION> <OPTION value="URL 4">YOUR NAME URL4</OPTION> </SELECT> <p align="center"><font face="Tahoma" size="2">frash</font></p></a>
رقص نور دادن به لينك ها
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function initArray() { for (var i = 0; i < initArray.arguments.length; i++) { this[i] = initArray.arguments[i]; } this.length = initArray.arguments.length; } var colors = new initArray( "red", "blue", "green", "purple", "black", "tan", "red"); delay = .5; // seconds link = 0; vlink = 2; function linkDance() { link = (link+1)%colors.length; vlink = (vlink+1)%colors.length; document.linkColor = colors[link]; document.vlinkColor = colors[vlink]; setTimeout("linkDance()",delay*1000); } linkDance(); </script> <p align="center"><font face="Tahoma" size="2">frash</font></p></a> </textarea></font></span></p> <p align="center" dir="rtl"> </p> <p align="center" dir="rtl"> <span style="font-size: 10pt; color: black; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> منوي لينك بازشوي متحرك ( 1 )</font></span></p> <p align="center" dir="rtl"> <span style="font-size: 10pt; color: black; font-family: Arial;" lang="FA"> <font face="tahoma,arial,helvetica,sans-serif"> <textarea dir="ltr" name="S1" rows="4" cols="20"><a href="http://sites.google.com/site/farshidfarhat2/"> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- Original: Randy Bennett (rbennett@thezone.net) --> <!-- Web Site: http://home.thezone.net/~rbennett/sitemap.htm --> <!-- Begin function setVariables() { if (navigator.appName == "Netscape") { v = ".top="; h = ".left="; dS = "document."; sD = ""; y = "window.pageYOffset"; x = "window.pageXOffset"; iW = "window.innerWidth"; iH = "window.innerHeight"; } else { h = ".pixelLeft="; v = ".pixelTop="; dS = ""; sD = ".style"; y = "document.body.scrollTop"; x = "document.body.scrollLeft"; iW = "document.body.clientWidth"; iH = "document.body.clientHeight"; } xyz = 500; innerX = eval(iW) - 115; innerY = eval(iH) - 110; object = "logo"; checkLocationA(); } movex = 0; movey = 0; xdiff = 0; ydiff = 0; ystart = 0; xstart = 0; function checkLocation() { yy = eval(y); xx = eval(x); ydiff = ystart - yy; xdiff = xstart - xx; if ((ydiff < (-1)) || (ydiff > (1))) movey = Math.round(ydiff / 10), ystart -= movey; if ((xdiff < (-1)) || (xdiff > (1))) movex = Math.round(xdiff / 10), xstart -= movex; eval(dS + object + sD + v + (ystart + innerY)); eval(dS + object + sD + h + (xstart + innerX)); setTimeout("checkLocation()", 10); } function checkLocationA() { ystart = eval(y); xstart=eval(x); } function switchLogo(abc) { if (abc == "menu") { eval(dS + object + sD + v + 0); eval(dS + object + sD + h + (-200)); object = abc; } else xyz = setTimeout("delayLogo()", 2000) } function delayLogo() { eval(dS + object + sD + v + 0); eval(dS + object + sD + h + (-200)); object = 'logo'; } // End --> </script> </HEAD> <!-- CONTINUE --> <BODY OnLoad="setVariables();checkLocation()"> <!-- STEP THREE: Copy this code into the BODY of your HTML document --> <div id="logo" style="position:absolute; visibility:show; left:0px; top:-200px; z-index:2"> <table border=0 cellspacing=10 cellpadding=0 width=100><tr><td><center><br><br><br> <A href="javascript:void(0)"; onmouseover="switchLogo('menu')"> Logo </A></center></td></tr></table></div> <div id="menu" style="position:absolute; visibility:show; left:0px; top:-200px; z-index:2"> <table border=0 cellspacing=10 cellpadding=0 width=100><tr><td><center> <a href="http://farshid.farhat.googlepages.com"; onmouseover="clearTimeout(xyz)"; onmouseout="switchLogo('logo')">Page One</a> </center></td></tr><tr><td><center> <a href="http://farshid.farhat.googlepages.com"; onmouseover="clearTimeout(xyz)"; onmouseout="switchLogo('logo')">Page Two</a> </center></td></tr><tr><td><center> <a href="http://farshid.farhat.googlepages.com"; onmouseover="clearTimeout(xyz)"; onmouseout="switchLogo('logo')">Page Three</a> </center></td></tr></table></div></a>
لينك هاي متحرك از پايين به بالا
<a href="http://sites.google.com/site/farshidfarhat2/"> <table style="BORDER-RIGHT: silver 4px outset; BORDER-TOP: silver 4px outset; BORDER-LEFT: silver 4px outset; BORDER-BOTTOM: silver 4px outset" width="140" height="180"> <tr><td> <MARQUEE behavior="scroll" align="center" direction="up" height="200" scrollamount="2" scrolldelay="20" onmouseover='this.stop()' onmouseout='this.start()'> <p align="center" dir="rtl"><center> <a href="YOUR ADDRESS"><font size="3"><b>YOUR NAME LINK</b></font></a><br> <a href="YOUR ADDRESS"><font size="3"><b>YOUR NAME LINK</b></font></a><br> <a href="YOUR ADDRESS"><font size="3"><b>YOUR NAME LINK</b></font></a><br> <a href="YOUR ADDRESS"><font size="3"><b>YOUR NAME LINK</b></font></a><br> <a href="YOUR ADDRESS"><font size="3"><b>YOUR NAME LINK</b></font></a><br> <a href="YOUR ADDRESS"><font size="3"><b>YOUR NAME LINK</b></font></a><br> <a href="YOUR ADDRESS"><font size="3"><b>YOUR NAME LINK</b></font></a><br> <a href="YOUR ADDRESS"><font size="3"><b>YOUR NAME LINK</b></font></a><br> <a href="YOUR ADDRESS"><font size="3"><b>YOUR NAME LINK</b></font></a><br> <a href="YOUR ADDRESS"><font size="3"><b>YOUR NAME LINK</b></font></a><br> </center></marquee></td></tr></table></a>
حذف خط زير لينك ها
<a href="http://sites.google.com/site/farshidfarhat2/"> <Style TYPE="text/css"> <!-- A { text-decoration: none; } --> </Style></a>
نمايش اطلاعات لينك بر روي نوار وضعيت
<a href="http://sites.google.com/site/farshidfarhat2/"> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <! > <! > <!-- Begin function linkInfo(link){ fname = link.pathname; lastSlash = fname.lastIndexOf("/", fname.length); fname = fname.substring(lastSlash+1, fname.length); return("Visit " + link.hostname + "'s " + fname + " page"); } // End --> </script> </HEAD> <!-- CONTINUE --> <BODY> <a href="http://farshid.farhat.googlepages.com" onMouseOver="window.status=linkInfo(this); return true;" onMouseOut="window.status=''; return true;">JavaScript Source Link Us Page</A></a>
درج وبلاگ در قسمت علاقه مندي ها
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT language=JavaScript1.2> var bookmarkurl="htt://farshid.farhat.googlepages.com" var bookmarktitle="frash" function addbookmark(){ if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle) } </SCRIPT> <TABLE border=0 width=800> <TR> <TD width=108><a href="javascript:addbookmark()">ADD FAVORIT</a> </TD> <TD width=676> </TD></TR></TABLE> </a>
كد فونت هاي مختلف با رنگ هاي زيبا براي وبلاگ
<a href="http://sites.google.com/site/farshidfarhat2/"> <script> var divs = new Array(); var da = document.all; var start; //CONFIGUER THESE VARS!!!!!! //speed of pulsing var speed = 50; function initVars(){ if (!document.all) return //Extend of shrink the below list all you want //put an "addDiv(1,"2",3,4); for each div you made, //1)'id' of div //2)color or glow(name or hex)(in quotes!!!) //3)minimum strength //4)maximum strength addDiv(hi,"lime",2,11); addDiv(welcome,"red",4,9); addDiv(message,"purple",2,4); addDiv(msg2,"orange",15,17); addDiv(msg3,"blue",1,3); addDiv(msg4,"pink",1,3); //NO MORE EDITING!!!!!! startGlow(); } function addDiv(id,color,min,max) { var j = divs.length; divs[j] = new Array(5); divs[j][0] = id; divs[j][1] = color; divs[j][2] = min; divs[j][3] = max; divs[j][4] = true; } function startGlow() { if (!document.all) return 0; for(var i=0;i<divs.length;i++) { divs[i][0].style.filter = "Glow(Color=" + divs[i][1] + ", Strength=" + divs[i][2] + ")"; divs[i][0].style.width = "100%"; } start = setInterval('update()',speed); } function update() { for (var i=0;i<divs.length;i++) { if (divs[i][4]) { divs[i][0].filters.Glow.Strength++; if (divs[i][0].filters.Glow.Strength == divs[i][3]) divs[i][4] = false; } if (!divs[i][4]) { divs[i][0].filters.Glow.Strength--; if (divs[i][0].filters.Glow.Strength == divs[i][2]) divs[i][4] = true; } } } --> </script> <div id="hi" style="color: lime"> Hello! </div> <br> <div id="welcome" style="color: lime"> Welcome! </div> <br> <div id="message" style="color: lime"> This is a pulsating message! </div> <br> <div id="msg2" style="color: lime"> This is another pulsating message! </div> <br> <div id="msg3" style="color: lime"> This is farshid.farhat.googlepages.com </div> <br> <div id="msg4" style="color: pink"> </div> <body onLoad="initVars()"></a>
خانه وبلاگ خود را بازدیدکننده کنید
<a href="http://sites.google.com/site/farshidfarhat2/"> <font face="Tahoma" size="2"><A href="javascript:history.go(0)" onClick="javascript:this.style.behavior='url(#default#homepage)';this.setHomePage ('http://farshid.farhat.googlepages.com');" TARGET="_self">اين وبلاگ را صفحه خانگي خود كنيد</A></font></a>
ریفرش کردن وبلاگ بعد از زمان تعیین شده
<a href="http://sites.google.com/site/farshidfarhat2/"> <html> <head> </head> <body> <script language="Javascript"> var URL = "http://sites.google.com/site/farshidfarhat2/" var speed = 5000 function reload() { location = URL } setTimeout("reload()", speed); //--> </script> <font face="Tahoma" size="2">پنج ثانيه صبر كنيد</font></body></html></a>
کشف مدت زمان مورد نياز براي دانلود
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JavaScript"> function MakeArray(n) { this.length = n; for (var i = 1; i <= n; i++) { this[i] = 0 } return this } speedVar = new MakeArray(11); speedVar[1] = "1.1719" speedVar[2] = "1.7578" speedVar[3] = "3.5156" speedVar[4] = "6.8359" speedVar[5] = "7.8125" speedVar[6] = "16.6250" speedVar[7] = "187.9883" speedVar[8] = "1220.7031" speedVar[9] = "3295.8984" speedVar[10] = "5493.1641" speedVar[11] = "18920.8984" function compute(form, mult){ for (i=1; i < 12; i++){ if (form.size.value==null||form.size.value.length==0){ form.size.value=0;} if (form[i+"hour"].value==null||form[i+"hour"].value.length==0){ form[i+"hour"].value=0;} if (form[i+"minute"].value==null||form[i+"minute"].value.length==0){ form[i+"minute"].value=0;} if (form[i+"second"].value==null||form[i+"second"].value.length==0){ form[i+"second"].value=0;} if (mult != 0 && form.size.value != 0){ with (Math){ var speed = speedVar[i]; var TotalTime = ((form.size.value*mult)/speed); var TotalHours = floor((TotalTime/3600)); var TotalHoursMod = (TotalTime%3600); var TotalMin = floor(TotalHoursMod/60); var TotalMinMod = (TotalHoursMod%60); var TotalSec = floor(TotalMinMod); form[i+"hour"].value=TotalHours; form[i+"minute"].value=TotalMin; form[i+"second"].value=TotalSec; } } } return; } </SCRIPT> <body> <FORM METHOD="POST"> <INPUT TYPE="HIDDEN" NAME="7second" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="7minute" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="7hour" SIZE="6"> <CENTER> <TABLE BORDER="1" bordercolor="#000080" style="border-width:0; border-collapse: collapse" cellpadding="0" cellspacing="0" width="323" height="164"> <TR> <TD width="162" height="19" style="border-left: medium none #000080; border-right-style: none; border-right-width: medium; border-top: medium none #000080; border-bottom-style: none; border-bottom-width: medium"> <p align="center" style="margin-top: 0; margin-bottom: 0"><font face="Tahoma"> <span style="font-size: 8pt">حجم فايل<b> <INPUT NAME="size" SIZE="10" style="color: #000080; border: 1px solid #0000FF; background-color: #F4F4FF"></b></span></font></p> <p align="center" style="margin-top: 0; margin-bottom: 0"><font face="Tahoma"> <span style="font-size: 8pt"><b> <INPUT TYPE="button" OnClick="compute(this.form, 1)" VALUE="KB" style="font-family: tahoma; font-size: 10; color: #800000; border: 1px solid #FF0000; background-color: #FFECEC"> <INPUT TYPE="button" OnClick="compute(this.form, 1024)" VALUE="MB" style="color: #800000; font-family: Tahoma; font-size: 10; border: 1px solid #FF0000; background-color: #FFECEC"><span lang="en-us"> </span> </b></span></font></TD> <TD colspan=3 width="158" height="19" style="border-left-style: none; border-left-width: medium; border-right: medium none #000080; border-top: medium none #000080; border-bottom-style: none; border-bottom-width: medium"><center> <p><font face="Tahoma" style="font-size: 8pt"> <a target="_blank" href="http://www.iransohrab.net" style="text-decoration: none"><span lang="en-us"> <font color="#000000">Download </font> </span> <font color="#000000">مدت زمان مورد نياز براي </font></a> </font></p> </CENTER> </TD> </TR> <TR> <TH width="162" height="14" style="border-left: medium none #000080; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: none; border-bottom-width: medium"> <font face="Tahoma" style="font-size: 8pt; font-weight: 400">بر اساس سرعت </font></TH> <TH width="53" height="14" style="border-style: none; border-width: medium"> <font face="Tahoma" style="font-size: 8pt; font-weight: 400">ساعت </font> </TH> <TH width="52" height="14" style="border-style: none; border-width: medium"> <font face="Tahoma" style="font-size: 8pt; font-weight: 400">دقيقه </font> </TH> <TH width="51" height="14" style="border-style: none; border-width: medium"> <font face="Tahoma" style="font-size: 8pt; font-weight: 400">ثانيه</font></TH> </TR> <TR> <TD BGCOLOR="#ffffff" width="162" height="20" style="border-style: none; border-width: medium"> <font face="Tahoma" style="font-size: 8pt">9.6 Kb</font></TD> <TD width="53" height="20" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="1hour" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="52" height="20" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="1minute" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="51" height="20" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma" style="font-size: 8pt; font-weight: 700"> <INPUT NAME="1second" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"></font></TD> </TR> <TR> <TD BGCOLOR="#ffffff" width="162" height="21" style="border-style: none; border-width: medium"> <font face="Tahoma" style="font-size: 8pt">14.4 Kb</font></TD> <TD width="53" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="2hour" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="52" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="2minute" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="51" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma" style="font-size: 8pt; font-weight: 700"> <INPUT NAME="2second" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"></font></TD> </TR> <TR> <TD BGCOLOR="#ffffff" width="162" height="21" style="border-style: none; border-width: medium"> <font face="Tahoma" style="font-size: 8pt">28.8 Kb</font></TD> <TD width="53" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="3hour" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="52" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="3minute" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="51" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma" style="font-size: 8pt; font-weight: 700"> <INPUT NAME="3second" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"></font></TD> </TR> <TR> <TD BGCOLOR="#ffffff" width="162" height="21" style="border-style: none; border-width: medium"> <font face="Tahoma" style="font-size: 8pt">56 Kb</font></TD> <TD width="53" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="4hour" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="52" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="4minute" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="51" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma" style="font-size: 8pt; font-weight: 700"> <INPUT NAME="4second" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"></font></TD> </TR> <TR> <TD BGCOLOR="#ffffff" width="162" height="21" style="border-style: none; border-width: medium"> <font face="Tahoma" style="font-size: 8pt">ISDN (64 Kb)</font></TD> <TD width="53" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="5hour" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="52" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="5minute" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="51" height="21" style="border-style: none; border-width: medium"> <p align="center"><font face="Tahoma" style="font-size: 8pt; font-weight: 700"> <INPUT NAME="5second" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"></font></TD> </TR> <TR> <TD BGCOLOR="#ffffff" width="162" height="19" style="border-style: none; border-width: medium"> <font face="Tahoma" style="font-size: 8pt">ISDN (128 Kb)</font></TD> <TD width="53" height="19" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: 1px none #000080"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="6hour" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="52" height="19" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: 1px none #000080"> <p align="center"><font face="Tahoma"><span style="font-size: 8pt"><b> <INPUT NAME="6minute" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"> </b></span></font> </TD> <TD width="51" height="19" style="border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom: 1px none #000080"> <p align="center"><font face="Tahoma" style="font-size: 8pt; font-weight: 700"> <INPUT NAME="6second" SIZE="6" style="color: #008000; border: 1px solid #00AE00; background-color: #F2FFF2"></font></TD> </TR> <b> <INPUT TYPE="HIDDEN" NAME="8hour" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="8minute" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="8second" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="9hour" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="9minute" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="9second" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="10hour" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="10minute" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="10second" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="11hour" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="11minute" SIZE="6"> <INPUT TYPE="HIDDEN" NAME="11second" SIZE="6"> </b> </TABLE> </CENTER> </FORM> </body> </a>
نمایش ساعت محلی و ساعت جهانی
<a href="http://sites.google.com/site/farshidfarhat2/"> <SCRIPT LANGUAGE="JavaScript"> 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> <body> <span id=clockLocal style="position:relative;"></span><br> <span id=clockUTC style="position:relative;"></span> </BODY></a>
به حركت در آوردن متن نوار عنوان
<a href="http://sites.google.com/site/farshidfarhat2/"> <head> <script language="JavaScript1.2"> var message="Welcome Too My Webloge " //specifys the title var message=message+" " //gives a pause at the end,1 space=1 speed unit, here I used 10 spaces@150 each = 1.5seconds. i="0" //declares the variable and sets it to start at 0 var temptitle="" //declares the variable and sets it to have no value yet. var speed="150" //the delay in milliseconds between letters function titler(){ if (!document.all&&!document.getElementById) return document.title=temptitle+message.charAt(i) //sets the initial title temptitle=temptitle+message.charAt(i) //increases the title by one letter i++ //increments the counter if(i==message.length) //determines the end of the message { i="0" //resets the counter at the end of the message temptitle="" //resets the title to a blank value } setTimeout("titler()",speed) //Restarts. Remove line for no-repeat. } window.onload=titler </script> </head></a>