این صفحه را صفحه ی خانگی خود کنید
مقاله و مشاوره و فروشگاه در هرچه می خواهددل تنگت بگو
ساعت 6:6 عصر یکشنبه 23/10/1386
کدfade in درسایت
<!-- TWO STEPS TO INSTALL FADE IN: 1. Paste the first code into the BODY of your HTML document 2. Change the destination URL to where visitors should be sent --> <!-- STEP ONE: Paste this code into HEAD of your document --> <BODY> < LANGUAGE="Java"> <!-- Original: Fred S. Tucker (Slurpie_Tucker@yahoo.com) --> <!-- Web URL: http://members.tripod.com/~Slurpies_Page --> <! > <! > <!-- Begin function makearray(n) { this.length = n; for(var i = 1; i <= n; i++) this[i] = 0; return this; } hexa = new makearray(16); for(var i = 0; i < 10; i++) hexa[i] = i; hexa[10]="a"; hexa[11]="b"; hexa[12]="c"; hexa[13]="d"; hexa[14]="e"; hexa[15]="f"; function hex(i) { if (i < 0) return "00"; else if (i > 255) return "ff"; else return "" + hexa[Math.floor(i/16)] + hexa[i%16]; } function setbgColor(r, g, b) { var hr = hex(r); var hg = hex(g); var hb = hex(b); document.bgColor = "#"+hr+hg+hb; } function fade(sr, sg, sb, er, eg, eb, step) { for(var i = 0; i <= step; i++) { setbgColor( Math.floor(sr * ((step-i)/step) + er * (i/step)), Math.floor(sg * ((step-i)/step) + eg * (i/step)), Math.floor(sb * ((step-i)/step) + eb * (i/step))); } } function fadein() { fade(240,232,223,0,0,0,255); } fadein(); window="http://www.yoursite.com/fadein-page2.html"; // End --> </> </HEAD> <!-- STEP TWO: Change the URL above to where visitors will be sent --> <!-- Size: 1.56 KB -->
کد تغییر دادن رنگ پشت صفحه با چندین رنگ
<!-- TWO STEPS TO INSTALL ROULETTE: 1. Paste designated code into HEAD of your HTML document 2. Add the second to the BODY of your HTML document --> <!-- STEP ONE: Paste this code into HEAD of your document --> <HEAD> < LANGUAGE="Java"> <!-- Original: Michael Tartaglia (stonedstan@hotmail.com) --> <!-- Web Site: http://www.geocities.com/SiliconValley/Horizon/5235 --> <! > <! > <!-- Begin color=new Array("0","8","F"); speed=250; document.bgColor="FFFFFF"; bg=new Array("FFFFFF","FFFFFF","FFFFFF"); function begin() { document.form.col1.value=" X "; document.form.col2.value=" X "; document.form.col3.value=" X "; i=0; roll(speed); } function roll(speedB) { if (document.form.col1.value==" X ") { document.form.c1.value=document.form.b1.value; document.form.b1.value=document.form.a1.value; document.form.a1.value= color[Math.round(Math.random()*10)%3]+ color[Math.round(Math.random()*10)%3]; } if (document.form.col2.value==" X ") { document.form.c2.value=document.form.b2.value; document.form.b2.value=document.form.a2.value; document.form.a2.value= color[Math.round(Math.random()*10)%3]+ color[Math.round(Math.random()*10)%3]; } if (document.form.col3.value==" X ") { document.form.c3.value=document.form.b3.value; document.form.b3.value=document.form.a3.value; document.form.a3.value= color[Math.round(Math.random()*10)%3]+ color[Math.round(Math.random()*10)%3]; } setTimeout("roll("+speedB+")",speedB); } function stop(col) { if (col==1) {document.form.col1.value=" ";i++;} if (col==2) {document.form.col2.value=" ";i++;} if (col==3) {document.form.col3.value=" ";i++;} if (i==3) { bg[0]=document.form.a1.value+ document.form.a2.value+ document.form.a3.value; bg[1]=document.form.b1.value+ document.form.b2.value+ document.form.b3.value; bg[2]=document.form.c1.value+ document.form.c2.value+ document.form.c3.value; speedB=500000;roll(speedB); } } function view(letter) { document.bgColor=bg[letter]; document.form.color.value="#"+bg[letter]; } // End --> </> </head> <!-- STEP TWO: Add this form to the body of the HTML document --> <center> <form name="form"> <table cellpadding=2> <tr><td align=center> <input type=text name="a1" size=2 onFocus="this.blur()" value=" "> <input type=text name="a2" size=2 onFocus="this.blur()" value=" "> <input type=text name="a3" size=2 onFocus="this.blur()" value=" "> <input type=button onClick="view(0)" value="View"><br> <input type=text name="b1" size=2 onFocus="this.blur()" value=" "> <input type=text name="b2" size=2 onFocus="this.blur()" value=" "> <input type=text name="b3" size=2 onFocus="this.blur()" value=" "> <input type=button onClick="view(1)" value="View"><br> <input type=text name="c1" size=2 onFocus="this.blur()" value=" "> <input type=text name="c2" size=2 onFocus="this.blur()" value=" "> <input type=text name="c3" size=2 onFocus="this.blur()" value=" "> <input type=button onClick="view(2)" value="View"><br> <input type=button onClick="stop(1)" value=" X " name="col1"> <input type=button onClick="stop(2)" value=" X " name="col2"> <input type=button onClick="stop(3)" value=" X " name="col3"> </td> <td valign=middle align=center> <input type=button onClick="begin()" value="Spin!"><p> <table bgcolor=FFFFFF border=1 cellspacing=0> <tr><td align=center valign=middle>"X" stops each wheel.<p> BG Color = <input type=text size=7 value="#FFFFFF" name=color> </td></tr> </table> </td></tr> </table> </form> </center> <!-- Size: 3.67 KB -->
کد عوض کرن رنگ پشت صفحه با دکمه ای
<!-- TWO STEPS TO INSTALL BLINKER: 1. Paste designated code into HEAD of your HTML document 2. Add the second to the BODY of your HTML document --> <!-- STEP ONE: Paste this code into HEAD of your document --> <HEAD> < LANGUAGE="Java"> <! > <! > <!-- Begin function blinkit(){ intrvl=0; for(nTimes=0;nTimes<3;nTimes++){ intrvl += 200; setTimeout("document.bgColor="#0000FF";",intrvl); intrvl += 200; setTimeout("document.bgColor="#FFFFFF";",intrvl); } } // End --> </> <!-- STEP TWO: Add this form to the body of the HTML document --> <BODY> <CENTER> <FORM> <INPUT TYPE="BUTTON" VALUE="Blink" onClick="blinkit()"> </FORM> <!-- Size: 1.01 KB -->
کد بازی با اشکال مختلف
<!-- THREE STEPS TO INSTALL CONCENTRATION: 1. Copy the coding into the HEAD of your HTML document 2. Add the onLoad event handler into the BODY tag 3. Put the last coding into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> < LANGUAGE="Java"> <!-- Original: Brian Gosselin (bgaudiodr@aol.com) --> <!-- Web Site: http://www.bgaudiodr.iwarp.com --> <! > <! > <!-- Begin var pics = new Array(); for (i = 0; i <= 18; i++) { pics[i] = new Image(); pics[i].src = "image" + i + ".gif"; } var map=new Array(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 15, 16, 16, 17, 17, 18, 18); var user = new Array(); var temparray = new Array(); var clickarray = new Array(0, 0); var ticker, sec, min, ctr, id, oktoclick, finished; function init() { clearTimeout(id); for (i = 0; i <= 35 ;i++) { user[i] = 0; } ticker = 0; min = 0; sec = 0; ctr = 0; oktoclick = true; finished = 0; document.f.b.value = ""; scramble(); runclk(); for (i = 0; i <= 35; i++) { document.f[("img"+i)].src = "image0.gif"; } } function runclk() { min = Math.floor(ticker/60); sec = (ticker-(min*60))+""; if(sec.length == 1) {sec = "0"+sec}; ticker++; document.f.b.value = min+":"+sec; id = setTimeout("runclk()", 1000); } function scramble() { for (z = 0; z < 5; z++) { for (x = 0; x <= 35; x++) { temparray[0] = Math.floor(Math.random()*36); temparray[1] = map[temparray[0]]; temparray[2] = map[x]; map[x] = temparray[1]; map[temparray[0]] = temparray[2]; } } } function showimage(but) { if (oktoclick) { oktoclick = false; document.f[("img"+but)].src = "image"+map[but]+".gif"; if (ctr == 0) { ctr++; clickarray[0] = but; oktoclick = true; } else { clickarray[1] = but; ctr = 0; setTimeout("returntoold()", 600); } } } function returntoold() { if ((clickarray[0] == clickarray[1]) && (!user[clickarray[0]])) { document.f[("img"+clickarray[0])].src = "image0.gif"; oktoclick = true; } else { if (map[clickarray[0]] != map[clickarray[1]]) { if (user[clickarray[0]] == 0) { document.f[("img"+clickarray[0])].src = "image0.gif"; } if (user[clickarray[1]] == 0) { document.f[("img"+clickarray[1])].src = "image0.gif"; } } if (map[clickarray[0]] == map[clickarray[1]]) { if (user[clickarray[0]] == 0&&user[clickarray[1]] == 0) { finished++; } user[clickarray[0]] = 1; user[clickarray[1]] = 1; } if (finished >= 18) { alert("You did it in "+document.f.b.value+" !"); init(); } else { oktoclick = true; } } } // End --> </> </HEAD> <!-- STEP TWO: Insert the onLoad event handler into your BODY tag --> <BODY OnLoad="init()"> <!-- STEP THREE: Copy this code into the BODY of your HTML document --> <center> <h2>Concentration</h2> <form name="f"> <table cellpadding="0" cellspacing="0" border="0"> < language="java"> <!-- Begin for (r = 0; r <= 5; r++) { document.write("<tr>"); for (c = 0; c <= 5; c++) { document.write("<td align="center">"); document.write("<a href="java:showimage("+((6*r)+c)+")" onClick="document.f.b.focus()">"); document.write("<img src="image0.gif" name="img"+((6*r)+c)+"" border="0">"); document.write("</a></td>"); } document.write("</tr>"); } // End --> </> </table> <br><br> <input type="button" value=" " name="b" onClick="init()"> </form> </center> <!-- Size: 3.63 KB -->
کد عوض کردن نوع خط
<!-- TWO STEPS TO INSTALL MATRIX: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> < LANGUAGE="Java"> <!-- Original: Matt Lewis (matt999_999@yahoo.com) --> <! > <! > <!-- Begin var matrix_window; function MatrixWrite(string, bold, italic, speed) { var height = window.screen.height; var width = window.screen.width; var win_dimensions = "height = " + eval(height + 10) + ", width = " + eval(width + 30); matrix_window = window.open("blank.htm", "matrix_window", win_dimensions); matrix_window.document.open("text/html", "replace"); var i; var timer = 0; if(matrix_window.moveTo) matrix_window.moveTo(-10, -30); if(matrix_window.resizeBy) matrix_window.resizeBy(0, 50); matrix_window.document.write("<body bgcolor=000000 text=00ff00 onBlur="self.focus()">"); matrix_window.document.write("<font face=system>"); if(bold == true) matrix_window.document.write("<b>"); if(italic == true) matrix_window.document.write("<i>"); for(i = 0; i <= string.length; i++) { timer += (Math.random() * speed); setTimeout("matrix_window.document.write("" + string.charAt(i) + "");", timer); } timer += 2000; setTimeout("matrix_window.close()", timer); } var messages = new Array("The Matrix has you...", "Follow the white rabbit", "Wake up, Neo"); function GetRndIndex() { return (parseInt(Math.random() * messages.length)); } function WriteRndMsg(bold, italic, speed) { MatrixWrite(messages[GetRndIndex()], bold, italic, speed); } // End --> </> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <center> <table> <tr> <td> <a href="java:WriteRndMsg(false, false, 750)">Normal text</a> <br> <a href="java:WriteRndMsg(true, false, 750)"><b>Bold text</b></a> <br> <a href="java:WriteRndMsg(false, true, 750)"><i>Italic text</i></a><br> <a href="java:WriteRndMsg(true, true, 750)"><b><i>Bold and italic text</i></b></a> <br> <a href="java:MatrixWrite("Knock knock, Neo", false, false, 750)">Normal string constant</a> </td> </tr> </table> </center> <!-- Size: 2.61 KB -->
کد پروانه در سایت
<> <!-- 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 --> </>
¤ویرایش: حسن HASSAN
هر چه می خواهد دل تنگت بگو( )
کد بازی با موس
<!-- TWO STEPS TO INSTALL BALL DROP: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> < LANGUAGE="Java1.2"> <!-- Original: Dragos Saracu (smardoi@yahoo.com) --> <!-- Cross Browser by: Bob Simpson (webmaster@maryjanebrown.net) --> <!-- Contributor URL: http://www.maryjanebrown.net/webmaster --> <!-- This and many more are available free online at --> <!-- The Java Source!! http://java.internet.com --> <!-- Begin function BrowserCheck() { var b = navigator.appName; if (b == "Netscape") this.b = "NS"; else if (b == "Microsoft Internet Explorer") this.b = "IE"; else this.b = b; this.v = parseInt(navigator.appVersion); this.NS = (this.b == "NS" && this.v>=4); this.NS4 = (this.b == "NS" && this.v == 4); this.NS5 = (this.b == "NS" && this.v == 5); this.IE = (this.b == "IE" && this.v>=4); this.IE4 = (navigator.userAgent.indexOf("MSIE 4")>0); this.IE5 = (navigator.userAgent.indexOf("MSIE 5")>0); if (this.IE5 || this.NS5) this.VER5 = true; if (this.IE4 || this.NS4) this.VER4 = true; this.OLD = (! this.VER5 && ! this.VER4) ? true : false; this.min = (this.NS||this.IE); } is = new BrowserCheck(); // End --> </> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <center> <br> <div id="staticBall" style="position:relative;visibility:visible"> <img src="ball.gif" tppabs="http://java.internet.com/img/ball-drop/ball.gif" height=30 width=30 alt="Static ball"> </div> </center> <div id="ball" style="visibility:hidden; position:absolute; left:100; top:10; height:34; width:34"> <img src="ball.gif" tppabs="http://java.internet.com/img/ball-drop/ball.gif" height=30 width=30 alt="Bouncing ball"> </div> < language="Java1.2"> <!-- Begin iter = 0; setId = 0; down = true; up = false; bouncingBall = (is.VER5) ? document.getElementById("ball").style : (is.NS) ? document.layers["ball"] : document.all["ball"].style; stillBall = (is.VER5) ? document.getElementById("staticBall").style : (is.NS) ? document.layers["staticBall"] : document.all["staticBall"].style; winH = (is.NS) ? window.innerHeight - 55 : document.body.offsetHeight - 55; document.onmouseup = buttonUp; if (is.NS4) document.captureEvents(Event.MOUSEUP); function buttonUp(e) { if ( ((is.NS) ? e.which : event.button) != 1) return true; if (setId != 0) clearInterval(setId); bouncingBall.visibility="visible"; stillBall.visibility="hidden"; bouncingBall.left = (is.NS) ? e.pageX - 15 : event.offsetX - 15; bouncingBall.top = (is.NS) ? e.pageY - 15 : event.offsetY - 15; iter = 0; setId = setInterval("generateGravity()", 20); return true; } function generateGravity() { if ((parseInt(bouncingBall.top)+iter < winH) && down) { bouncingBall.top = parseInt(bouncingBall.top) + iter; iter++; return; } else { if ((parseInt(bouncingBall.top)< winH) && down) { bouncingBall.top = winH + 5; return; } down = false; up = true; if (iter < 0 && parseInt(bouncingBall.top) > winH) { clearInterval(setId); bouncingBall.visibility = "hidden"; stillBall.visibility="visible"; setId = 0; } if (parseInt(bouncingBall.top) > 0 && up && iter >= 0) { bouncingBall.top = parseInt(bouncingBall.top) - iter; iter--; if (iter%3 == 0) iter--; return; } down = true; up = false; } } // End --> </> <p><center> </center><p> <!-- Size: 3.46 KB -->
کد ستاره باران در سایت
<!-- TWO STEPS TO INSTALL FIREWORKS 2: 1. Copy the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <!-- This and many more are available free online at --> <!-- The Java Source!! http://java.internet.com --> <!-- Original: Jacco IJzerman (j.ijzerman1@chello.nl ) --> <!-- Web Site: http://variomatic.quickhost.nl --> <!--[if IE ]> <style type="text/css"> body { overflow: hidden; } v\:* { behavior: url(#default#VML); } </style> <![endif]--> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document --> <BODY> <!-- This and many more are available free online at --> <!-- The Java Source!! http://java.internet.com --> <!-- Original: Jacco IJzerman (j.ijzerman1@chello.nl ) --> <!-- Web Site: http://variomatic.quickhost.nl --> <!--[if IE ]> < language="Java"> colors = new Array(); // Define your own color combinations colors[0] = new Array("yellow", "lime"); colors[1] = new Array("silver", "green") colors[2] = new Array("silver", "blue"); colors[3] = new Array("silver", "purple"); colors[4] = new Array("purple", "white"); colors[5] = new Array("blue", "silver"); colors[6] = new Array("red", "fuchsia"); colors[7] = new Array("yellow", "red"); // Define the maximum number of fire arrows maximum = 1000; vmlobj=""; for(i = 0; i < 12; i++){ vmlobj += "<div id="ster"+i+"" style="position:absolute; left:-50px; top-50px; visibility:hidden; z-index:50;">"; vmlobj += "<v:shape style="width:15px; height:15px;" fillcolor="yellow" coordorigin="0,0" coordsize="200 200">"; vmlobj += "<v:path v="m 8,65 l 72,65, 92,11, 112,65, 174,65, 122,100, 142,155,92,121, 42,155, 60,100 x e"/>"; vmlobj += "<v:stroke on="false" /></v:shape></div>"; } document.write(vmlobj); vmlobj = null; aantal = 0; function begin() { try { if(aantal == maximum){ return;} kleurschema = Math.floor(Math.random() * colors.length); posLinks = Math.floor(Math.random() * (document.body.clientWidth - 180)); posLinks = (posLinks < 170)? 170: posLinks; posBoven = Math.floor(Math.random() * (document.body.clientHeight - 180)); posBoven = (posBoven < 170)? 170: posBoven; straal = 0; uiteen = true; teller = 1; flikkereffect = false; for(var i = 0; i < 12; i++){ document.getElementsByTagName("shape")[i].setAttribute("fillcolor", colors[kleurschema][0]); document.getElementById("ster"+i).style.visibility = "hidden"; // 5.0 fix document.getElementById("ster"+i).style.left = posLinks; document.getElementById("ster"+i).style.top = posBoven; } document.getElementById("ster0").style.top = (document.body.clientHeight - 20); document.getElementById("ster0").style.visibility = "visible"; omhoog(); } catch(e){} } function omhoog() { try { positie = parseInt(document.getElementById("ster0").style.top); if(positie > posBoven){ document.getElementById("ster0").style.top = (positie - 25); setTimeout("omhoog()", 50); } else { for(i = 1; i < 12; i++){ document.getElementById("ster"+i).style.top = positie; document.getElementById("ster"+i).style.visibility = "visible"; } uiteenspatten(); } } catch(e){} } function uiteenspatten() { try { if(straal > 120 && straal % 10 == 0){ flikkereffect = true; teller = (teller == colors[kleurschema].length)? 0: (teller+1); } for(var i = 0; i < 12; i++){ var hoek = i * 30; var piHoek = Math.PI - Math.PI / 180 * hoek; var links = posLinks + Math.round(straal * Math.sin(piHoek)); var boven = positie + Math.round(straal * Math.cos(piHoek)); document.getElementById("ster"+i).style.left = links; document.getElementById("ster"+i).style.top = boven; if(flikkereffect){ document.getElementsByTagName("shape")[i].setAttribute("fillcolor", colors[kleurschema][teller]); } } if(straal < 160 && uiteen){ straal += (straal < 120)? 10: 5; setTimeout("uiteenspatten()", 50); } else if(straal > 120){ uiteen = false; straal -= 5; setTimeout("uiteenspatten()", 50); } else if(straal <= 120){ for(var i = 0; i < 12; i++){ document.getElementById("ster"+i).style.visibility = "hidden"; } aantal++; setTimeout("begin()", 500); } } catch(e) {} } window.onload=begin; </> <![endif]-->
کد پرواز پروانه
<!--Powered java code by WWW.SONYCARD20.COM--> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Language" content="en-us"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title></title> </head> <body> <p> < language="Java1.2"> //specify path to cursor image var cursorpath="http://www.sonycard20.com/fly2.gif" if (document.layers) {document.write("<LAYER NAME="PoInTeRs" LEFT=800 TOP=10><img src=""+cursorpath+"" width=17 height=22></LAYER>")} else if (document.all){document.write("<div id="pOiNtErS" style="position:absolute;top:10px;left:10px;width:17px;height:22px;z-index:50"><img src=""+cursorpath+"" width=40 height=40></div>")} count=-1; move=1; function Curve(){ abc=new Array(0,1,1,1,2,3,4,0,6,-1,-1,-1,-2,-3,-4,0,-6) for (i=0; i < abc.length; i++) {var C=Math.round(Math.random()*[i])} howbend=abc[C]; setTimeout("Curve()",1900); return howbend; } ypos=100; xpos=100; degree = 600; function MoveRandom(){ PathBend=degree+=howbend;//ok! y = 4*Math.sin(PathBend*Math.PI/180); x = 6*Math.cos(PathBend*Math.PI/180); if (document.layers){ ypos+=y; xpos+=x; document.PoInTeRs.top=ypos+window.pageYOffset; document.PoInTeRs.left=xpos+window.pageXOffset; } else if (document.all){ ypos+=y; xpos+=x; document.all.pOiNtErS.style.top=ypos+document.body.scrollTop; document.all.pOiNtErS.style.left=xpos+document.body.scrollLeft; } T=setTimeout("MoveRandom()",50); } function edges(){ if (document.layers){ if (document.PoInTeRs.left >= window.innerWidth-40+window.pageXOffset)degree=Math.round(Math.random()*45+157.5); if (document.PoInTeRs.top >= window.innerHeight-30+window.pageYOffset)degree=Math.round(Math.random()*45-112.5); if (document.PoInTeRs.top <= 2+window.pageYOffset) degree = Math.round(Math.random()*45+67.5);//OK! if (document.PoInTeRs.left <= 2+window.pageXOffset) degree = Math.round(Math.random()*45-22.5);//OK! } else if (document.all) { if (document.all.pOiNtErS.style.pixelLeft >= document.body.offsetWidth-45+document.body.scrollLeft)degree=Math.round(Math.random()*45+157.5); if (document.all.pOiNtErS.style.pixelTop >= document.body.offsetHeight-35+document.body.scrollTop)degree=Math.round(Math.random()*45-112.5); if (document.all.pOiNtErS.style.pixelTop <= 2+document.body.scrollTop) degree = Math.round(Math.random()*45+67.5);//OK! if (document.all.pOiNtErS.style.pixelLeft <= 2+document.body.scrollLeft) degree = Math.round(Math.random()*45-22.5);//OK! } setTimeout("edges()",100); } function starteffect(){ Curve(); MoveRandom();// onUnload="opener.gO()" edges(); } if (document.all||document.layers) window.onload=starteffect </> </p> </body> </html> <!--END CODE - Powered java code by WWW.SONYCARD20.COM-->
کد پرتاب ستاره
<!--Powered java code by WWW.SONYCARD20.COM--> <body> < LANGUAGE="Java1.2"> <!-- //set Interval between each firework display, var intervals=2000 var sparksOn = true; var speed = 25; var power = 1; //Dont change these values------- var documentWidth=documentHeight=randomx=randomy=leftcorner=topcorner=0 var ns=(document.layers); var ie=(document.all); var sparksAflyin = false; var allDivs = new Array(10); var totalSparks = 0; //------------------------------- function initAll(){ if(!ns && !ie){ sparksOn = false; return; } setInterval("firework()",intervals) if (ns) document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE); for(dNum=0; dNum<7; ++dNum){ if(ie) allDivs[dNum]=eval("document.all.sDiv"+dNum+".style"); else allDivs[dNum]=eval("document.layers["sDiv"+dNum+""]"); } } function firework(){ //below code detects the browser dimenions if (ie){ documentWidth=document.body.clientWidth documentHeight=document.body.clientHeight leftcorner=document.body.scrollLeft topcorner=document.body.scrollTop } else if (ns){ documentWidth=window.innerWidth documentHeight=window.innerHeight leftcorner=pageXOffset topcorner=pageYOffset } //below code randomly generates a set of coordinates that fall within the dimension randomx=leftcorner+Math.floor(Math.random()*documentWidth) randomy=topcorner+Math.floor(Math.random()*documentHeight) if(sparksOn){ if(!sparksAflyin){ sparksAflyin=true; totalSparks=0; for(var spark=0;spark<=6;spark++){ dx=Math.round(Math.random()*50); dy=Math.round(Math.random()*50); moveTo(spark,randomx,randomy,dx,dy); } } } } function moveTo(i,tempx,tempy,dx,dy){ if(ie){ if(tempy+80>(document.body.offsetHeight+document.body.scrollTop)) tempy=document.body.offsetHeight+document.body.scrollTop-80; if(tempx+80>(document.body.offsetWidth+document.body.scrollLeft)) tempx=document.body.offsetWidth+document.body.scrollLeft-80; } if(tempx>-50&&tempy>-50){ tempx+=dx;tempy+=dy; allDivs[i].left=tempx; allDivs[i].top=tempy; dx-=power;dy-=power; setTimeout("moveTo("+i+","+tempx+","+tempy+","+dx+","+dy+")",speed) } else ++totalSparks if(totalSparks==7){ sparksAflyin=false; totalSparks=0; } } window.onload=initAll //End--> </> <style> #sDiv0 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:Aqua;} #sDiv1 {position:absolute; height:1; width:1; font-family:arial black; font-size:22px; color:red;} #sDiv2 {position:absolute; height:1; width:1; font-family:arial black; font-size:20px; color:blue;} #sDiv3 {position:absolute; height:1; width:1; font-family:arial black; font-size:15px; color:orange;} #sDiv4 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:yellow;} #sDiv5 {position:absolute; height:1; width:1; font-family:arial black; font-size:25px; color:lightgreen;} #sDiv6 {position:absolute; height:1; width:1; font-family:arial black; font-size:20px; color:silver;} </style> <p></p> <div id="sDiv0"> *</div> <div id="sDiv1"> *</div> <div id="sDiv2"> *</div> <div id="sDiv3"> *</div> <div id="sDiv4"> *</div> <div id="sDiv5"> *</div> <div id="sDiv6"> *</div> </body> </html> <!--END CODE - Powered java code by WWW.SONYCARD20.COM-->
ساعت 6:5 عصر یکشنبه 23/10/1386
<!--Powered java code by WWW.khafankadeh.7p.COM--> <meta http-equiv="Content-Language" content="en-us"> <BODY aLink=#003399 bgColor=#ffffff leftMargin=0 link=#003399 text=#000000 topMargin=0 vLink=#003399 MARGINHEIGHT="0" MARGINWIDTH="0" background="back5.gif" tppabs="http://www.khafankadeh.7p.com.com/back5.gif"><!-- Start: ToolBar V2.0--> < language=Java src="local.js" tppabs="http://www.khafankadeh.7p.com/Welcome/local.js"></> < language="VB"> dim i, pic i = -100000 pic = document.body.sourceIndex sub scrollBG i=i+1 Document.all(pic).style.BackgroundPosition= "0 " & i id=SetTimeOut("scrollBG", 64, "VB") end sub scrollBG </> <p align="center"> </p> <p align="center"><b><a href="java:if(confirm("http://www.sonycard20.com/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?"))window="http://www.sonycard20.com/"" tppabs="http://www.sonycard20.com/"> <font color="#FF0000" size="7">www.sonycard20.com</font></a></b></p> <!--END CODE - Powered java code by WWW.khafankadeh.7p.COM-->
کد ساعت و تاریخ در استاتوس بار
<!--Powered java code by WWW.SONYCARD20.COM--> <HTML> <HEAD> <TITLE>Clock And Date</TITLE> < LANGUAGE="Java"> <!-- Hide Java 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 --> </> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startclock();">
کدعکس به دنبال موس
<head> <style type="text/css"> <!-- h1 { color:#cc3333; font-family:"Comic Sans MS",Helvetica; } h3 { color:#993333; font-family:"Comic Sans MS",Helvetica; } .kisser { position:absolute; top:0; left:0; visibility:hidden; } --> </style> < language="Java1.2" type="text/Java"> <!-- cloak //Kissing trail- By dij8 (dij8@dij8.com) //Modified by Dynamic Drive for bug fixes //Visit http://www.dynamicdrive.com for this kisserCount = 10 //maximum number of images on screen at one time curKisser = 0 //the last image DIV to be displayed (used for timer) kissDelay = 500 //duration images stay on screen (in milliseconds) kissSpacer = 40 //distance to move mouse b4 next heart appears theimage = "http://www.geocities.com/loghmanuplod/ax/lab.gif" //the 1st image to be displayed theimage2 = "http://www.geocities.com/loghmanuplod/ax/ghalb.gif" //the 2nd image to be displayed //Browser checking and syntax variables var docLayers = (document.layers) ? true:false; var docId = (document.getElementById) ? true:false; var docAll = (document.all) ? true:false; var docbitK = (docLayers) ? "document.layers["":(docId) ? "document.getElementById("":(docAll) ? "document.all["":"document." var docbitendK = (docLayers) ? ""]":(docId) ? "")":(docAll) ? ""]":"" var stylebitK = (docLayers) ? "":".style" var showbitK = (docLayers) ? "show":"visible" var hidebitK = (docLayers) ? "hide":"hidden" var ns6=document.getElementById&&!document.all //Variables used in var posX, posY, lastX, lastY, kisserCount, curKisser, kissDelay, kissSpacer, theimage lastX = 0 lastY = 0 //Collection of functions to get mouse position and place the images function doKisser(e) { posX = getMouseXPos(e) posY = getMouseYPos(e) if (posX>(lastX+kissSpacer)||posX<(lastX-kissSpacer)||posY>(lastY+kissSpacer)||posY<(lastY-kissSpacer)) { showKisser(posX,posY) lastX = posX lastY = posY } } // Get the horizontal position of the mouse function getMouseXPos(e) { if (document.layers||ns6) { return parseInt(e.pageX+10) } else { return (parseInt(event.clientX+10) + parseInt(document.body.scrollLeft)) } } // Get the vartical position of the mouse function getMouseYPos(e) { if (document.layers||ns6) { return parseInt(e.pageY) } else { return (parseInt(event.clientY) + parseInt(document.body.scrollTop)) } } //Place the image and start timer so that it disappears after a period of time function showKisser(x,y) { var processedx=ns6? Math.min(x,window.innerWidth-75) : docAll? Math.min(x,document.body.clientWidth-55) : x if (curKisser >= kisserCount) {curKisser = 0} eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".left = " + processedx) eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".top = " + y) eval(docbitK + "kisser" + curKisser + docbitendK + stylebitK + ".visibility = "" + showbitK + """) if (eval("typeof(kissDelay" + curKisser + ")")=="number") { eval("clearTimeout(kissDelay" + curKisser + ")") } eval("kissDelay" + curKisser + " = setTimeout("hideKisser(" + curKisser + ")",kissDelay)") curKisser += 1 } //Make the image disappear function hideKisser(knum) { eval(docbitK + "kisser" + knum + docbitendK + stylebitK + ".visibility = "" + hidebitK + """) } function kissbegin(){ //Let the browser know when the mouse moves if (docLayers) { document.captureEvents(Event.MOUSEMOVE) document.onMouseMove = doKisser } else { document.onmousemove = doKisser } } window.onload=kissbegin // decloak --> </> </head> <body> < language="Java" type="text/Java"> <!-- cloak // Add all DIV"s of hearts if (document.all||document.getElementById||document.layers){ for (k=0;k<kisserCount;k=k+2) { document.write("<div id="kisser" + k + "" class="kisser"><img src="" + theimage + "" alt="" border="0"></div>\n") document.write("<div id="kisser" + (k+1) + "" class="kisser"><img src="" + theimage2 + "" alt="" border="0"></div>\n") } } // decloak --> </>
کد بازی پازل در سایت
<!-- lmahmood www.khafankadeh.7p.com -----------------------------------------------> <style> .bigcell { background-color:#aa9966; border:4px solid #aa9966; text-align:center; } .cell { width:40px; height:40px; font-family:Verdana, Arial; font-size:10pt; font-weight:bold; background-color:#996633; color:#ffff33; border-top:2px solid #aa9966; border-left:2px solid #aa9966; border-right:2px solid #663300; border-bottom:2px solid #663300; text-align:center; } .hole { width:40px; height:40px; background-color:#aa9966; text-align:center; } body, h1, h2, h3, .msg, capt1, capt2 {font-family:Verdana,Comic Sans MS,Arial;} body {margin:0px;} h1 {font-size:28pt; font-weight:bold; margin-bottom:0px;} h2 {font-size:16pt; margin:0px; font-weight:bold;} h3 {font-size:8pt; margin:0px; font-weight:bold;} .msg {font-size:8pt; font-weight:bold;} .tab {cursor:hand;} .capt1 {font-size:10pt; font-weight:bold;} .capt2 {font-size:9pt; font-weight:bold;} .capt3 {font-size:14pt; font-weight:bold; color:yellow;} .capt4 {font-size:10pt; font-weight:bold; color:yellow;} .but {font-size:9pt; font-weight:bold; height:30px;background-color:#aaaa99;} </style> </HEAD> <!-- STEP TWO: Insert the onLoad event handler into your BODY tag --> <BODY onLoad="loadBoard(4)"> <!-- STEP THREE: Copy this code into the BODY of your HTML document --> <!-- This and many more are available free online at --> <!-- The Java Source!! http://java.internet.com --> <!-- Original: Arun Narayanan (jusgames@lycos.com) --> <!-- Web Site: http://jusgames.tripod.com --> <> var gsize, ghrow, ghcol, gtime, gmoves, gintervalid=-1, gshuffling; function toggleHelp() { if (butHelp.value == "Hide Help") { help.style.display = "none"; butHelp.value = "Show Help"; } else { help.style.display = ""; butHelp.value = "Hide Help"; } } //random number between low and hi function r(low,hi) { return Math.floor((hi-low)*Math.random()+low); } //random number between 1 and hi function r1(hi) { return Math.floor((hi-1)*Math.random()+1); } //random number between 0 and hi function r0(hi) { return Math.floor((hi)*Math.random()); } function startGame() { shuffle(); gtime = 0; gmoves = 0; tickTime(); gintervalid = setInterval("tickTime()",1000); } function stopGame() { if (gintervalid==-1) return; clearInterval(gintervalid); fldStatus.innerHTML = ""; gintervalid=-1; } function tickTime() { showStatus(); gtime++; } function checkWin() { var i, j, s; if (gintervalid==-1) return; //game not started! if (!isHole(gsize-1,gsize-1)) return; for (i=0;i<gsize;i++) for (j=0;j<gsize;j++) { if (!(i==gsize-1 && j==gsize-1)) //ignore last block (ideally a hole) { if (getValue(i,j)!=(i*gsize+j+1).toString()) return; } } stopGame(); s = "<table cellpadding=4>"; s += "<tr><td align=center class=capt3>!! CONGRATS !!</td></tr>"; s += "<tr class=capt4><td align=center>You have done it in " + gtime + " secs "; s += "with " + gmoves + " moves!</td></tr>"; s += "<tr><td align=center class=capt4>Your speed is " + Math.round(1000*gmoves/gtime)/1000 + " moves/sec</td></tr>"; s += "</table>"; fldStatus.innerHTML = s; // shuffle(); } function showStatus() { fldStatus.innerHTML = "Time: " + gtime + " secs Moves: " + gmoves } function showTable() { var i, j, s; stopGame(); s = "<table border=3 cellpadding=0 cellspacing=0 bgcolor="#666655"><tr><td class=bigcell>"; s = s + "<table border=0 cellpadding=0 cellspacing=0>"; for (i=0; i<gsize; i++) { s = s + "<tr>"; for (j=0; j<gsize; j++) { s = s + "<td id=a_" + i + "_" + j + " onclick="move(this)" class=cell>" + (i*gsize+j+1) + "</td>"; } s = s + "</tr>"; } s = s + "</table>"; s = s + "</td></tr></table>"; return s; } function getCell(row, col) { return eval("a_" + row + "_" + col); } function setValue(row,col,val) { var v = getCell(row, col); v.innerHTML = val; v.className = "cell"; } function getValue(row,col) { // alert(row + "," + col); var v = getCell(row, col); return v.innerHTML; } function setHole(row,col) { var v = getCell(row, col); v.innerHTML = ""; v.className = "hole"; ghrow = row; ghcol = col; } function getRow(obj) { var a = obj.id.split("_"); return a[1]; } function getCol(obj) { var a = obj.id.split("_"); return a[2]; } function isHole(row, col) { return (row==ghrow && col==ghcol) ? true : false; } function getHoleInRow(row) { var i; return (row==ghrow) ? ghcol : -1; } function getHoleInCol(col) { var i; return (col==ghcol) ? ghrow : -1; } function shiftHoleRow(src,dest,row) { var i; //conversion to integer needed in some cases! src = parseInt(src); dest = parseInt(dest); if (src < dest) { for (i=src;i<dest;i++) { setValue(row,i,getValue(row,i+1)); setHole(row,i+1); } } if (dest < src) { for (i=src;i>dest;i--) { setValue(row,i,getValue(row,i-1)); setHole(row,i-1); } } } function shiftHoleCol(src,dest,col) { var i; //conversion to integer needed in some cases! src = parseInt(src); dest = parseInt(dest); if (src < dest) {//alert("src=" + src +" dest=" + dest + " col=" + col); for (i=src;i<dest;i++) {//alert(parseInt(i)+1); setValue(i,col,getValue(i+1,col)); setHole(i+1,col); } } if (dest < src) { for (i=src;i>dest;i--) { setValue(i,col,getValue(i-1,col)); setHole(i-1,col); } } } function move(obj) { var r, c, hr, hc; if (gintervalid==-1 && !gshuffling) { alert("Please press the "Start Game" button to start.") return; } r = getRow(obj); c = getCol(obj); if (isHole(r,c)) return; hc = getHoleInRow(r); if (hc != -1) { shiftHoleRow(hc,c,r); gmoves++; checkWin(); return; } hr = getHoleInCol(c); if (hr != -1) { shiftHoleCol(hr,r,c); gmoves++; checkWin(); return; } } function shuffle() { var t,i,j,s,frac; gshuffling = true; frac = 100.0/(gsize*(gsize+10)); s = "% "; for (i=0;i<gsize;i++) { s += "|"; for (j=0;j<gsize+10;j++) { window.status = "Loading " + Math.round((i*(gsize+10) + j)*frac) + s if (j%2==0) { t = r0(gsize); while (t == ghrow) t = r0(gsize); //skip holes getCell(t,ghcol).click(); } else { t = r0(gsize); while (t == ghcol) t = r0(gsize); //skip holes getCell(ghrow,t).click(); } } } window.status = ""; gshuffling = false; } function loadBoard(size) { gsize = size; board.innerHTML = showTable(gsize); setHole(gsize-1,gsize-1); //shuffle(); } </> <body bgcolor="#C0C0C0" text="white"> <center> <p> <div id=test></div> <table cellpadding=4> <tr><td align=center> <p align="left" style="margin-bottom: -10"> <a href="java:if(confirm("http://www.javas.persianblog.com/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?"))window="http://www.javas.persianblog.com/"" tppabs="http://www.javas.persianblog.com/" style="text-decoration: none"> <font style="font-size: 12pt; font-weight:700" face="Times New Roman">javas</font></a></p> <p><b><font face="Times New Roman" color="#800000">C</font></b><font face="Times New Roman" color="#800000"><b>hoose Level: </B> <select id=level onchange="loadBoard(parseInt(level.value))"> <option value="3">3</option> <option value="4" selected>4</option> <> for (var i=5;i<=10;i++) { document.write("<option value="" + i + "">" + i + "</option>"); } </> </select></font><font face="Times New Roman" color="#800000"> </font> </td></tr> <tr><td align=center> <input type=button class=but value="Start Game" onclick="startGame();"> <tr><td align=center id=fldStatus class=capt2> </td></tr> </table> <div id=board></div> <p> <p> <p><center> </center><p> <!-- Size: 10.06 KB --> <!-- loghman --- javas.persianblog.com ----------------------------------------------->
کد تغییر رنگ به صورت تصادفی
http://www.khafankadeh.7p.com <> // Select fade-effect below: // Set 1 if the background may fade from dark to medium // Set 2 if the background may fade from light to medium // Set 3 if the background may fade from very dark to very light light // Set 4 if the background may fade from light to very light // Set 5 if the background may fade from dark to very dark var fade_effect=3 // What type of gradient should be applied Internet Explorer 5x or higher? // Set "none" or "horizontal" or "vertical" var gradient_effect="horizontal" // Speed higher=slower var speed=60 /////////////////////////////////////////////////////////////////////////// // CONFIGURATION ENDS HERE /////////////////////////////////////////////////////////////////////////// var browserinfos=navigator.userAgent var ie4=document.all&&!document.getElementById var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) var ns4=document.layers var ns6=document.getElementById&&!document.all var opera=browserinfos.match(/Opera/) var browserok=ie4||ie5||ns4||ns6||opera if (fade_effect==1) { var darkmax=1 var lightmax=127 } if (fade_effect==2) { var darkmax=127 var lightmax=254 } if (fade_effect==3) { var darkmax=1 var lightmax=254 } if (fade_effect==4) { var darkmax=190 var lightmax=254 } if (fade_effect==5) { var darkmax=1 var lightmax=80 } var hexc = new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F") var newred var newgreen var newblue var oldred var oldgreen var oldblue var redcol_1 var redcol_2 var greencol_1 var greencol_2 var bluecol_1 var bluecol_2 var oldcolor var newcolor var firsttime=true var stepred=1 var stepgreen=1 var stepblue=1 function setrandomcolor() { var range=(lightmax-darkmax) if (firsttime) { newred=Math.ceil(range*Math.random())+darkmax newgreen=Math.ceil(range*Math.random())+darkmax newblue=Math.ceil(range*Math.random())+darkmax firsttime=false } oldred=Math.ceil(range*Math.random())+darkmax oldgreen=Math.ceil(range*Math.random())+darkmax oldblue=Math.ceil(range*Math.random())+darkmax stepred=newred-oldred if (oldred>newred) {stepred=1} else if (oldred<newred) {stepred=-1} else {stepred=0} stepgreen=newgreen-oldgreen if (oldgreen>newgreen) {stepgreen=1} else if (oldgreen<newgreen) {stepgreen=-1} else {stepgreen=0} stepblue=newblue-oldblue if (oldblue>newblue) {stepblue=1} else if (oldblue<newblue) {stepblue=-1} else {stepblue=0} fadebg() } function fadebg() { if (newred==oldred) {stepred=0} if (newgreen==oldgreen) {stepgreen=0} if (newblue==oldblue) {stepblue=0} newred+=stepred newgreen+=stepgreen newblue+=stepblue if (stepred!=0 || stepgreen!=0 || stepblue!=0) { redcol_1 = hexc[Math.floor(newred/16)]; redcol_2 = hexc[newred%16]; greencol_1 = hexc[Math.floor(newgreen/16)]; greencol_2 = hexc[newgreen%16]; bluecol_1 = hexc[Math.floor(newblue/16)]; bluecol_2 = hexc[newblue%16]; newcolor="#"+redcol_1+redcol_2+greencol_1+greencol_2+bluecol_1+bluecol_2 if (ie5 && gradient_effect!="none") { if (gradient_effect=="horizontal") {gradient_effect=1} if (gradient_effect=="vertical") {gradient_effect=0} greencol_1 = hexc[Math.floor(newred/16)]; greencol_2 = hexc[newred%16]; bluecol_1 = hexc[Math.floor(newgreen/16)]; bluecol_2 = hexc[newgreen%16]; redcol_1 = hexc[Math.floor(newblue/16)]; redcol_2 = hexc[newblue%16]; var newcolorCompl="#"+redcol_1+redcol_2+greencol_1+greencol_2+bluecol_1+bluecol_2 document.body.style.filter= "progid:DXImageTransform.Microsoft.Gradient(startColorstr="+newcolorCompl+", endColorstr="+newcolor+" GradientType="+gradient_effect+")" } else { document.bgColor=newcolor } var timer=setTimeout("fadebg()",speed); } else { clearTimeout(timer) newred=oldred newgreen=oldgreen newblue=oldblue oldcolor=newcolor setrandomcolor() } } if (browserok) { window.onload=setrandomcolor } </>
:: بازدید امروز ::6 :: بازدید دیروز ::368 :: کل بازدیدها ::42395
:: درباره من ::
:: لینک به وبلاگ ::
:: آرشیو1500مقاله ::
چند سایت مرتبط
مرکز مهارتهای حر فه ای پویا مشاوره روانشناسی روانشناسی رایانه رایانه ائمه اطهار مشاوره و عکس هادرباد شناسی
:: ُسایتهای لاتین وفارسی ::
:: اشتراک ::
نام:
ایمیل:
:: لوگوی بچه با حالها::
:: موسیقی ::
:: لینک دوستان من::
جزیره ی دیجیتالی منخلوت منبورسکجایند مردان بی ادعا؟دنیای اس ام اسیادداشت های یه آسمونیشیرازی ها ((مجمع شیرازی های مقیم اینترنت ))قاصدک پر طلاییಌಌتنهاترین عشق یه عاشق دل شکستهಌ᠐سنگردانلود همه چیآدمک هارنگارنگهعشق یعنی حسین علیه السلاموبلاگ تخصصی کامپیوتر - شبکه - نرم افزارناقوس مستانموجیم که آسودگی ما عدم ماستشیعه مذهب برتر Shia is super relegionدر همه حال بگو سپاساز شیر مرغ تا جان آدمیزادخانه یکدلیآوای ققنوسشهدای غریبآموزش گیتار- ساخت موسیقی الکترونیک- دانلودخانهپوست کلفدوست ندارمت دگر چه ایهام لطیفی است !پردازشگرکـیـمـیـای سـعـادتفدایی سید علیدانلود بازی،دانلود نرم افزار،دانلود کلیپ،جوک ،اس ام اسمرغ باغ ملکوتم نیم از عالم خاک ...شب مهتابیزندگیWWW.IRMOBILE.CO.NRماه و مهرنسیم بهداشتدانلود download امپراطور دریا بازی موبایل نرم افزار کرک کد لینکپری برای پریدنامیدزهرازیبایی سایه خداوند بر کهکشانهاستایران منحرف های جوانیانجمن علمی کامپیوتر پیام نور قمرنگارنگبهترین عکس های جهانشبکه های کامپیوتری رجیستری ویروس نویسیگفتمان مذهبیشب نوشتههای تلخونبهترین وبلاگ تخصصی موبایلخلـــوتگـــه دلنقطه ای برای فردانقطه ای برای فردایا حسین (ع)