این کد باعث میشه 2 تا پروانه تو وبلاگ به پرواز در بیان

<script><!-- Beginvar no = 2; // snow numbervar speed = 6; // smaller number moves the snow fastervar snowflake = "http://www.forever-memories.net/Animated%20gifs/bfa.gif";var ns4up = (document.layers) ? 1 : 0; // browser sniffervar ie4up = (document.all) ? 1 : 0;var dx, xp, yp; // coordinate and position variablesvar am, stx, sty; // amplitude and step variablesvar 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 variablesxp[i] = Math.random()*(doc_width-50); // set position variablesyp[i] = Math.random()*doc_height;am[i] = Math.random()*20; // set amplitude variablesstx[i] = 0.02 + Math.random()/10; // set step variablessty[i] = 0.7 + Math.random(); // set step variablesif (ns4up) { // set layersif (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 functionfor (i = 0; i < no; ++ i) { // iterate for every dotyp[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 functionfor (i = 0; i < no; ++ i) { // iterate for every dotyp[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>

 

این کد باعث ارتباط بازدید کننده با وب مستر میشه

<br><br><br><br> <br>a href="ymsgr:sendim?Your ID"><img border="0" src="http://opi.yahoo.com/online?u=Your ID&m=g&t=2"></a><hr dir="rtl"><br> <br><br>

کد ایمیل به هر کسی در وبلاگ

<HEAD><SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction 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+'" mce_href="mailto:'+who+'?subject='+what+'"; }}// End --></SCRIPT><!-- CONTINUE --><BODY><CENTER><a href="javascript:mailsome1()" mce_href="javascript:mailsome1()">E-Mail Someone!</a><FORM><input type=button value="E-Mail Someone!" onClick="mailsome1()"></FORM></CENTER> <!-- END Script Size: 1.02 KB -->

با این اسکریپ کاربر مشخصات خود را در یک صفحه وارد میکنه و این مشخصات از طریق ایمیل به شما ارسال میشود

<HEAD><SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction resetform() {document.forms[0].elements[1]=="";}function submitForms() {if (isEmail() && isFname() && isLname() && isAddress() && isCity() && isState() && isZip())if (confirm("\n You are about to e-mail your submission. \n\nYES to submit. NO to abort.")){alert("\nYour submission will now be sent. \n\n Use the Return Button once the submission is complete to return to my home page.\n\n\n Thank you for joining our mailing list!");return true;}else{alert("\n You have chosen to abort the submission.");return false}else return false;}function isEmail() {if (document.forms[0].elements[1].value == "") {alert ("\n The E-Mail field is blank. \n\n Please enter your E-Mail address.")document.forms[0].elements[1].focus();return false;}if (document.forms[0].elements[1].value.indexOf ('@',0) == -1 ||document.forms[0].elements[1].value.indexOf ('.',0) == -1) {alert ("\n The E-Mail field requires a \"@\" and a \".\"be used. \n\nPlease re-enter your E-Mail address.")document.forms[0].elements[1].select();document.forms[0].elements[1].focus();return false;}return true;}function isFname() {if (document.forms[0].elements[2].value == ""){alert ("\n The First Name field is blank. \n\n Please enter your first name.")document.forms[0].elements[2].focus();return false;}return true;}function isLname() {if (document.forms[0].elements[3].value == "") {alert ("\n The Last Name field is blank. \n\nPlease enter your last name.")document.forms[0].elements[3].focus();return false;}return true;}function isAddress() {if (document.forms[0].elements[4].value == "") {alert ("\n The Address field is blank. \n\nPlease enter your address.")document.forms[0].elements[4].focus();return false;}return true;}function isCity(){if (document.forms[0].elements[5].value == ""){alert ("\n The City field is blank. \n\nPlease enter your city.")document.forms[0].elements[5].focus();return false;}return true;}function isState() {if (document.forms[0].elements[6].value == "") {alert ("\n The state field is blank.\n\nPlease enter your state.")document.forms[0].elements[6].focus();return false;}return true;}function isZip() {if (document.forms[0].elements[7].value == "") {alert ("\n The Zip code field is blank. \n\nPlease enter your Zip code.")document.forms[0].elements[7].focus();return false;}return true;}// End --></SCRIPT><!-- CONTINUE --><BODY><CENTER><FORM enctype="text/plain" name="addform" method='get'action='mailto:antispammer@earthling.net?subject=TJS - Mailing List' onSubmit="return submitForms()"><TABLE border=3 width=430 cellpadding=10><TD align="center"><strong><font face="arial" size=+2>Join the Mailing List!</font></strong></TABLE><input type="hidden" name="Form" value="Submit Sub"><TABLE border=3 cellspacing=0 cellpadding=2 bgcolor="#C0C0C0"><tr valign=baseline><TD><font face="arial">Email Address:</font></TD><TD><input type=text name="Email Address" size=35,1 maxlength=80></TD></tr><tr><TD><font face="arial">First Name:</font></TD><TD><input type=text name="First Name" size=35,1 maxlength=80></TD></tr><tr><TD><font face="arial">Last Name:</font></TD><TD><input type=text name="Last Name" size=35,1 maxlength=80></TD></tr><tr><TD><font face="arial">Address:</font></TD><TD><input type=text name="Address" size=35,1 maxlength=80></TD></tr><tr><TD><font face="arial">City:</font></TD><TD><input type=text name="City" size=35,1 maxlength=80></TD></tr><tr><TD><font face="arial">State:</font></TD><TD><input type=text name="State" size=10,1 maxlength=25></TD></tr><tr><TD><font face="arial">Zip Code:</font></TD><TD><input type=text name="Zip" size=20,1 maxlength=35></TD></tr></TABLE><br><center><input type="submit" value=" Submit "><input type="button" value=" Return " onclick="window.location='your-page.html'"><input type="reset" value="Reset Form" onclick=resetform()></FORM></CENTER> <!-- END Script Size: 4.56 KB -->

با این کد میتونید تبلیغ بلاگ اسکای رو حذف کنید

<body onload="javascript: document.getElementById('r74j').style.visibility = 'hidden';" href="javascript:void(0);">

با این کد میتوانید به جای گزینه های تیپ متن مورد نظرتون را وارد کنید تا در هر روز بدون دخالت خودتان شاهد متنهای جدید باشید

<HEAD><SCRIPT LANGUAGE="JavaScript"><!-- Original: Mike W. (mikew@dvol.com) --><!-- Web Site: http://www.dvol.com/~users/mikew --><!-- Beginvar msg = new Array();Stamp = new Date();today = Stamp.getDate();msg[1] = "Tip 1";msg[2] = "Tip 2";msg[3] = "Tip 3";msg[4] = "Tip 4";msg[5] = "Tip 5";msg[6] = "Tip 6";msg[7] = "Tip 7";msg[8] = "Tip 8";msg[9] = "Tip 9";msg[10] = "Tip 10";msg[11] = "Tip 11";msg[12] = "Tip 12";msg[13] = "Tip 13";msg[14] = "Tip 14";msg[15] = "Tip 15";msg[16] = "Tip 16";msg[17] = "Tip 17";msg[18] = "Tip 18";msg[19] = "Tip 19";msg[20] = "Tip 20";msg[21] = "Tip 21";msg[22] = "Tip 22";msg[23] = "Tip 23";msg[24] = "Tip 24";msg[25] = "Tip 25";msg[26] = "Tip 26";msg[27] = "Tip 27";msg[28] = "Tip 28";msg[29] = "Tip 29";msg[30] = "Tip 30";msg[31] = "Tip 31";function writeTip() { document.write(msg[today]);}// End --></script></HEAD><!-- CONTINUE --><BODY><b>Daily Tip:</b> <script>writeTip();</script> <!-- END Script Size: 1.46 KB -->

این کد باعث بسته شدن صفحه در زمانی که شما تعیین کرده اید میشه

<SCRIPT LANGUAGE="JavaScript"><!--//hiding itsetTimeout("window.close();", 15000);//end hiding it--> </SCRIPT></body></html><!--&#1705;&#1575;&#1601;&#1610;&#1587;&#1578; &#1576;&#1585;&#1575;&#1610; &#1605;&#1593;&#1610;&#1606; &#1705;&#1585;&#1583;&#1606; &#1586;&#1605;&#1575;&#1606; &#1575;&#1610;&#1606; &#1593;&#1583;&#1583; &#1585;&#1575; &#1583;&#1585; &#1575;&#1610;&#1606; &#1705;&#1583; &#1578;&#1594;&#1610;&#1610;&#1585; &#1583;&#1607;&#1610;&#1583; 15000-->

 

به وسیله این کد با تیک خوردن یکی از ایتمها تیک بقیه آیتمها برداشته میشه

<HEAD><SCRIPT LANGUAGE="JavaScript"><!-- Original: Scott Waichler --><!-- Beginfunction checkChoice(field, i) {if (i == 0) { // "All" checkbox selected.if (field[0].checked == true) {for (i = 1; i < field.length; i++)field[i].checked = false; }}else { // A checkbox other than "Any" selected.if (field[i].checked == true) {field[0].checked = false; } }}// End --></script></HEAD><!-- CONTINUE --><BODY><center>Please select your favorite class(es):<form name=pickform><table><tr><td><input type=checkbox name=classes value="*" onclick="checkChoice(document.pickform.classes, 0)" checked>All<br><input type=checkbox name=classes value="science" onclick="checkChoice(document.pickform.classes, 1)">Science<br><input type=checkbox name=classes value="math" onclick="checkChoice(document.pickform.classes, 2)">Math<br><input type=checkbox name=classes value="english" onclick="checkChoice(document.pickform.classes, 3)">English<br><input type=checkbox name=classes value="history" onclick="checkChoice(document.pickform.classes, 4)">Histroy<br><input type=checkbox name=classes value="other" onclick="checkChoice(document.pickform.classes, 5)">Other</td></tr></table></form></center> <!-- END Script Size: 1.78 KB -->

 

این کد باعث پخش شدن 7 ستاره در صفحه میشه

<!--Powered javascript code by www.javascrip.mihanblog.com--><script LANGUAGE="JavaScript1.2"><!--//set Interval between each firework display, var intervals=2000var sparksOn = true;var speed = 25;var power = 1;//Dont change these values-------var documentWidth=documentHeight=randomx=randomy=leftcorner=topcorner=0var 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 dimenionsif (ie){documentWidth=document.body

.clientWidthdocumentHeight=document.body

.clientHeightleftcorner=document.body.scrollLefttopcorner=document.body.scrollTop}else if (ns){documentWidth=window.innerWidthdocumentHeight

=window.innerHeightleftcorner=pageXOffsettopcorner=pageYOffset}//below code randomly generates a set of coordinates that fall within the dimensionrandomx=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--></script><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><!--END CODE - Powered java script code by WWW.NAZANINST.PERSIANBLOG.COM-->

پیام در نوار وضعیت آهسته و حرف حرف آمدن

<script language="JavaScript"><!--/*Slowly coming together status bar scrollerWritten by BengalBoy (www.angelfire.com/nt/bengaliboy/index.html)Visit http://javascriptkit.com for this script and more*///set message:msg = "Welcome to JavaScript Kit!";timeID = 10;stcnt = 16;wmsg = new Array(33); wmsg[0]=msg; blnk = " "; for (i=1; i<32; i++) { b = blnk.substring(0,i); wmsg[i]=""; for (j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b; }function wiper(){ if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0]; if (stcnt-- < -40) stcnt=31; status = str; clearTimeout(timeID); timeID = setTimeout("wiper()",100);}wiper()// --></script>

 

تاریخ بروز رسانی وبلاگ ثبت میشود

<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 DateDate.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>

 

پیام در نوار وضعیت ثابت

<SCRIPT LANGUAGE="JavaScript"> <!-- // Following COPYRIGHT ©1997 Dennis & Family. All Rights Reserved. function snapIn(jumpSpaces,position) { var msg = "Welcome to My Homepage!"; var out = ""; for (var i=0; i<position; i++) { out += msg.charAt(i) } for (i=1;i<jumpSpaces;i++) { out += " " } out += msg.charAt(position); window.status = out; if (jumpSpaces <= 1) { position++; if (msg.charAt(position) == ' ') { position++ } jumpSpaces = 100-position } else if (jumpSpaces > 3) { jumpSpaces *= .09 } else { jumpSpaces-- } if (position != msg.length) { var cmd = "snapIn(" + jumpSpaces + "," + position + ")"; window.setTimeout(cmd,10); } return true } //--></SCRIPT>

 

پیام در نوار وضعیت فلاش زدن

<script language="JavaScript"><!--/* MjM'S JAVA CODENAME = FLASH This JavaScript Code was written by MjM for Hyperchat UK I am not responsible for any damage caused by my code. This code can be modified as long as the Author's Name is still attached. Email : MjM@hyperchat.co.uk © Copyright 1996*/var yourwords = "Thank you for visiting my site!";var speed = 150;var control = 1;function flash(){ if (control == 1) { window.status=yourwords; control=0; } else { window.status=""; control=1; } setTimeout("flash();",speed);}// --></script>

تبلیغ پرشیان بلاگ رو حذف میکنه

<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>

با عث تغییر رنگ پس زمینه با یک دکمه میشه

<HEAD><SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction backcolor(form) {temp = ""for (var i = 0; i < 16; i++) {temp = form.color[i].valueif (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 - 45else if (backgroundcolor > 29)backgroundcolor = backgroundcolor - 30else if (backgroundcolor > 15)backgroundcolor = backgroundcolor - 16if (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><!-- STEP TWO: Put this form in the BODY of the HTML document --><BODY><CENTER><FORM><input type="button" value="Get Another Random Background" onClick="randombackground()"></FORM></CENTER><!-- Script Size: 2.00 KB -->

 

تنظیم رنگ توسط خود کاربر

<body><script language="Javascript"><!--// please keep these lines on when you copy the source// made by: Amir - http://www.IranJavaScript.comfunction backbs(clr) {document.bgColor = clr}//--></script><form><input type="button" value="zard" onclick="backbs('yellow')"> <input type="button" value="khaki" onclick="backbs('khaki')"> <input type="button" value="sefid" onclick="backbs('white')"> <input type="button" value="toosi" onclick="backbs('gray')"><input type="button" value="meshki" onclick="backbs('black')"><input type="button" value="soorati" onclick="backbs('pink')"><input type="button" value="abi" onclick="backbs('blue')"><input type="button" value="sabz" onclick="backbs('Green')"><input type="button" value="noghre ei" onclick="backbs('silver')"><input type="button" value="sabz tire" onclick="backbs('teal')"><input type="button" value="limooei" onclick="backbs('lime')"><input type="button" value="abi nafti" onclick="backbs('navy')"><input type="button" value="ghermez" onclick="backbs('red')"><input type="button" value="narenji" onclick="backbs('orange')"><input type="button" value="ghahve ei" onclick="backbs('olive')"></form></script></body>

 

تنظیم یک فیلد بر اساس فیلدهای دیگر

<html><head><script language="javascript" type="text/javascript">function SubmitIt(carForm) {doorOption = -1if (carForm.DoorCt[doorOption].value == "fourDoor" && carForm.sunroof.checked) {alert("The sunroof is only available on the two door model")return false}return true}function doorSet(sunroofField) { if (sunroofField.checked) { for (i=0; i<document.myForm.DoorCt.length; i++) { if (document.myForm.DoorCt[i].value == "twoDoor") { document.myForm.DoorCt[i].checked = true } } } }</script></head><body><h2>Car Picker<p><form onSubmit="return SubmitIt(this)" action="ok.asp" name="myForm">Doors:<br><input type="CHECKBOX" name="sunroof" value="YES" onClick="doorSet(this)">Sunroof(two door only)<br><br><input type="radio" value="twoDoor" name="DoorCt">two <input type="radio" value="fourDoor" name="DoorCt">Four<br><input type="Submit" value="Submit"></form></h2></body></html>

تیک زدن یا برداشتن آیتمها

<HEAD><SCRIPT LANGUAGE="JavaScript"><!-- Modified By: Steve Robison, Jr. (stevejr@ce.net) --><!-- Beginvar checkflag = "false";function check(field) {if (checkflag == "false") {for (i = 0; i < field.length; i++) {field[i].checked = true;}checkflag = "true";return "Uncheck All"; }else {for (i = 0; i < field.length; i++) {field[i].checked = false; }checkflag = "false";return "Check All"; }}// End --></script></HEAD><!-- CONTINUE --><BODY><center><form name=myform action="" method=post><table><tr><td><b>Your Favorite Scripts & Languages</b><br><input type=checkbox name=list value="1">Java<br><input type=checkbox name=list value="2">JavaScript<br><input type=checkbox name=list value="3">ASP<br><input type=checkbox name=list value="4">HTML<br><input type=checkbox name=list value="5">SQL<br><br> <input type=button value="Check All" onClick="this.value=check(this.form.list)"> </td></tr></table></form></center> <!-- END Script Size: 1.47 KB -->

شما چقدر سن دارید

<HEAD><SCRIPT LANGUAGE="JavaScript"><!-- Original: Glub, Un-Inc. --><!-- Beginvar mm = prompt('What month were you born in?','1-12');var bday = prompt('What day were you born on?','1-31');var byear = prompt('What year were you born in?','1975');var year = new Date();var year2 = year.getYear();var year3 = (year < 2000) ? year2 + 1900 : year2;thedate = new Date();mm2 = thedate.getMonth() + 1;dd2 = thedate.getDate();yy2 = thedate.getYear();if (yy2 < 100) yy2 += 1900yourage = yy2 - byear;if (mm2 < mm) yourage--;if ((mm2 == mm) && (dd2 < bday)) yourage--;TMonth = new Array('January','February','March','April','May'

,'June','July','August','September','October','November','December');CurMonth = mm - 1;bmonth = TMonth[CurMonth];var age2 = yourage + 1;var timerID;var timerRunning = false;var today = new Date();var startday = new Date();var enday = new Date();var secPerDay = 0;var minPerDay = 0;var hourPerDay = 0;var secsLeft = 0;var secsRound = 0;var secsRemain = 0;var minLeft = 0;var minRound = 0;var minRemain = 0;var timeRemain = 0;function stopclock() {if(timerRunning)clearTimeout(timerID);timerRunning = false;}function startclock() {stopclock();showtime();showtime1();}function showtime() {today = new Date();enday = new Date(""+bmonth+", "+bday+" "+year3+" 00:00");enday.setYear(""+year3+"");secsPerDay = 1000 ;minPerDay = 60 * 1000 ;hoursPerDay = 60 * 60 * 1000;PerDay = 24 * 60 * 60 * 1000;secsLeft = (enday.getTime() - today.getTime()) / minPerDay;secsRound = Math.round(secsLeft);secsRemain = secsLeft - secsRound;secsRemain = (secsRemain < 0) ? secsRemain = 60 - ((secsRound - secsLeft) * 60) : secsRemain = (secsLeft - secsRound) * 60;secsRemain = Math.round(secsRemain);minLeft = ((enday.getTime() - today.getTime()) / hoursPerDay);minRound = Math.round(minLeft);minRemain = minLeft - minRound;minRemain = (minRemain < 0) ? minRemain = 60 - ((minRound - minLeft) * 60) : minRemain = ((minLeft - minRound) * 60);minRemain = Math.round(minRemain - 0.495);hoursLeft = ((enday.getTime() - today.getTime()) / PerDay);hoursRound = Math.round(hoursLeft);hoursRemain = hoursLeft - hoursRound;hoursRemain = (hoursRemain < 0) ? hoursRemain = 24 - ((hoursRound - hoursLeft) * 24) : hoursRemain = ((hoursLeft - hoursRound) * 24);hoursRemain = Math.round(hoursRemain - 0.5);daysLeft = ((enday.getTime() - today.getTime()) / PerDay);daysLeft = (daysLeft - 0.5);daysRound = Math.round(daysLeft);daysRemain = daysRound;if (daysRemain == 1) day_rem = " day, "else day_rem = " days, "if (hoursRemain == 1) hour_rem = " hour, "else hour_rem = " hours, "if (minRemain == 1) min_rem = " minute, "else min_rem = " minutes, "if (secsRemain == 1) sec_rem = " second"else sec_rem = " seconds"timeRemain = daysRemain + day_rem + hoursRemain + hour_rem + minRemain + min_rem + secsRemain + sec_rem;document.down.face.value = timeRemain;timerID = setTimeout("showtime()",1000);timerRunning = true;if (daysRemain < 0) year3 = year3 + 1}function showtime1() {startday = new Date(""+bmonth+" "+bday+", "+byear+" 00:00 EDT");startday.setYear(""+byear+"");today = new Date();secsPerDay = 1000 ;minPerDay = 60 * 1000 ;hoursPerDay = 60 * 60 * 1000;PerDay = 24 * 60 * 60 * 1000;secsLeft = (today.getTime() - startday.getTime()) / minPerDay;secsRound = Math.round(secsLeft);secsRemain = secsLeft - secsRound;secsRemain = (secsRemain < 0) ? secsRemain = 60 - ((secsRound - secsLeft) * 60) : secsRemain = (secsLeft - secsRound) * 60;secsRemain = Math.round(secsRemain);minLeft = ((today.getTime() - startday.getTime()) / hoursPerDay);minRound = Math.round(minLeft);minRemain = minLeft - minRound;minRemain = (minRemain < 0) ? minRemain = 60 - ((minRound - minLeft) * 60) : minRemain = ((minLeft - minRound) * 60);minRemain = Math.round(minRemain - 0.495);hoursLeft = ((today.getTime() - startday.getTime()) / PerDay);hoursRound = Math.round(hoursLeft);hoursRemain = hoursLeft - hoursRound;hoursRemain = (hoursRemain < 0) ? hoursRemain = 24 - ((hoursRound - hoursLeft) * 24) : hoursRemain = ((hoursLeft - hoursRound) * 24);hoursRemain = Math.round(hoursRemain - 0.5);daysLeft = ((today.getTime() - startday.getTime()) / PerDay);daysLeft = (daysLeft - 0.5);daysRound = Math.round(daysLeft);daysRemain = daysRound;if (daysRemain == 1) day_rem = " day, "else day_rem = " days, "if (hoursRemain == 1) hour_rem = " hour, "else hour_rem = " hours, "if (minRemain == 1) min_rem = " minute, "else min_rem = " minutes, "if (secsRemain == 1) sec_rem = " second"else sec_rem = " seconds"timeRemain = daysRemain + day_rem + hoursRemain + hour_rem + minRemain + min_rem + secsRemain + sec_rem;document.up.face.value = timeRemain;timerID = setTimeout("showtime1()",1000);timerRunning = true;}// End --></script></HEAD><!-- CONTINUE --><BODY OnLoad="startclock()"><!-- CONTINUE --><center><form name="down" onSubmit="0"><script Language="JavaScript">document.write("<b>I was born "+bmonth+" "+bday+", "+byear+". ("+mm+"/"+bday+"/"+byear+")</b>");document.write("<br><br>I am "+yourage+" years old, and will turn "+age2+" in:");</script><br><input type="text" name="face" size="47" value="A browser supporting JavaScript 1.1+ is needed."></form><p><br><form name="up" onSubmit="1">I've been alive for...<br><input type="text" name="face" size="47" value="A browser supporting JavaScript 1.1+ is needed."></form></center> <!-- END Script Size: 6.04 KB -->

حرکت سریع متن در نوار وضعیت

<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 href="javascript:window.external.AddFavorite('http://YourLink.com','Your WebPage Title')">add To Favourites</a>

درایو سی بازدید کننده دیده میشه

<body onload="window.alert('salam khosh omadi ') " > </body>

این کد باعث میشه وبلاگ شما صفحه اصلی بازدید کننده بشه

<A href="javascript:history.go(0)" onClick="javascript:this.style.behavior='url(#default#homepage)';this.setHomePage('URL');" TARGET="_self">این صفحه را خانگی صفحه ی خانگی خود کنید</A></body></html>

رنگ وبلاگ به آرومی عوض

<script language="JavaScript"><!--//you can assign the initial color of the background herer=255;g=255;b=255;flag=0;t=new Array;o=new Array;d=new Array;function hex(a,c){t[a]=Math.floor(c/16)o[a]=c%16switch (t[a]){case 10:t[a]='A';break;case 11:t[a]='B';break;case 12:t[a]='C';break;case 13:t[a]='D';break;case 14:t[a]='E';break;case 15:t[a]='F';break;default:break;}switch (o[a]){case 10:o[a]='A';break;case 11:o[a]='B';break;case 12:o[a]='C';break;case 13:o[a]='D';break;case 14:o[a]='E';break;case 15:o[a]='F';break;default:break;}}function ran(a,c){if ((Math.random()>2/3||c==0)&&c<255){c++d[a]=2;}else{if ((Math.random()<=1/2||c==255)&&c>0){c--d[a]=1;}else d[a]=0;}return c}function do_it(a,c){if ((d[a]==2&&c<255)||c==0){c++d[a]=2}elseif ((d[a]==1&&c>0)||c==255){c--;d[a]=1;}if (a==3){if (d[1]==0&&d[2]==0&&d[3]==0)flag=1}return c}function disco(){if (flag==0){r=ran(1, r);g=ran(2, g);b=ran(3, b);hex(1,r)hex(2,g)hex(3,b)document.bgColor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3]flag=50}else{r=do_it(1, r)g=do_it(2,g)b=do_it(3,b)hex(1,r)hex(2,g)hex(3,b)document.bgColor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3]flag--}if (document.all)setTimeout('disco()',50)}//--></script><body onload="disco()">

غیر فعال کردن کلی نوار وضعیت

<script language="javascript"><script>//Hide status bar msg II script- by javascriptkit.com//Visit JavaScript Kit (http://javascriptkit.com) for script//Credit must stay intact for usefunction hidestatus(){window.status=''return true}if (document.layers)document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)document.onmouseover=hidestatusdocument.onmouseout=hidestatus</script>//Display Mouse coordinates- By Kous (kous@ihateclowns.com)//Visit http://javascriptkit.com for this script and morevar where = ""; // which linkfunction 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>

غیر فعال کردن نوار تصویر در اینترنت اکسپلورر

<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

کد موتور جستجو گر

<table BORDER="0" WIDTH="222" HEIGHT="18"> <tr> <td WIDTH="214" HEIGHT="10"> <form NAME="search" ID="search" ACTION="http://search.msn.com/results.asp" METHOD="get"> <p><a HREF="http://www.msn.com"> <img SRC="http://go.msn.com/AG/E/0.asp" width="61" height="33" BORDER="0" ALT="Go to msn.com"></a><font FACE="arial" SIZE="2"><strong>Search <font COLOR="#808080">the Web for:</font></strong></font><br> <input TYPE="text" ID="q" SIZE="18" MAXLENGTH="251" NAME="q" VCARD_NAME="SearchText"><input TYPE="submit" VALUE="Search" NAME="B1"><input TYPE="hidden" NAME="FORM" VALUE="FRNT"><input TYPE="hidden" NAME="un" VALUE="doc"><input TYPE="hidden" NAME="v" VALUE="1"></p> </form> </td> </tr> <tr> <td WIDTH="214" HEIGHT="21" VALIGN="bottom"> <p ALIGN="center"><font SIZE="1" FACE="arial"> <a HREF="http://search.msn.com/advanced.asp?MT=&RS=CHECKED&Form=FRNT">Use Advanced Search</a></font></td> </tr></table><p> </p></body></html>

 

گزاشتن بازی ایکس1 در وبلاگ

<html><head><body><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></body></html>

باعث به حرکت در آمدن متن نوار تیتل میشه

<head><script language="JavaScript1.2">var message="Welcome Too My Webloge " //specifys the titlevar 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 0var temptitle="" //declares the variable and sets it to have no value yet.var speed="150" //the delay in milliseconds between lettersfunction titler(){if (!document.all&&!document.getElementById)returndocument.title=temptitle+message.charAt(i) //sets the initial titletemptitle=temptitle+message.charAt(i) //increases the title by one letteri++ //increments the counterif(i==message.length) //determines the end of the message{i="0" //resets the counter at the end of the messagetemptitle="" //resets the title to a blank value}setTimeout("titler()",speed) //Restarts. Remove line for no-repeat.}window.onload=titler</script></head></body></html>

 

مخفی کردن جاوا اسکریپ از دست مرورگرهای قدیمی

<html><head></head><body><h1><!-- hide script from old browsers --><script language="javascript" type="text/javascript">document.write("Nazanin Studio")//end hiding script from old browsers --></script></h1></body></html>

منوی انتخاب روز در یک ماه

<BODY><SCRIPT LANGUAGE="JavaScript"><!-- Begintoday = 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 = "" + thismonthif (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>");// End --></SCRIPT> <!-- END Script Size: 1.20 KB -->

نمایش یک صفحه با کلیک بر روی یک دکمه

<BODY><form><input type=button value="Close Window" onClick="javascript:window.close();"></form> or <a href="javascript:window.close();">Close Window</a> <!-- END Script Size: 0.50 KB -->

این کد نفراتی که در وبلاگ شما حاظر هستند رو نشون میده

<!-- Start FastOnlineUsers.com --><a href="http://www.fastonlineusers.com"><script src=http://fastonlineusers.com/online.php?d=www.yoursite.com></script> online</a><br> <a href="http://www.hot-date.biz">Online Dating</a> <!-- End FastOnlineUsers.com -->

یک ماشین حساب بزرگ

<!-- ONE STEP TO INSTALL ADVANCED CALCULATOR: 1. Paste the coding into the BODY of your HTML document --><!-- STEP ONE: Copy this code into the BODY of your HTML document --> <BODY><CENTER><FORM name="Keypad" action=""><!-- Original: http://www.dummyproof.com/javascripts --><!--Total Java Scripts 99 - Next Step Software--><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></TABLE></B></FORM></CENTER><font face="Verdana, Arial, Helvetica" size=2><SCRIPT LANGUAGE="JavaScript"><!-- Beginvar 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;elseFKeyPad.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);elseAccum = 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);}// End --></SCRIPT><!-- Script Size: 4.05 KB -->

 وضوح تصویر نمایشگر و همچنین وضعیت جاوای وی را به خودش گزارش دهید IE نشان دادن ورژن

<font size=2> <SCRIPT language=JavaScript><!-- Beginvar xy = navigator.appVersion;xz = xy.substring(22,25);document.write("&#1605;&#1585;&#1608;&#1585;&#1711;&#1585; &#1588;&#1605;&#1575; : ", navigator.appName,"<br>");document.write("&#1606;&#1711;&#1575;&#1585;&#1588; : ",xz,"<br>");document.write("&#1608;&#1590;&#1608;&#1581; &#1606;&#1605;&#1575;&#1610;&#1588;&#1711;&#1585; &#1588;&#1605;&#1575; : ",screen.width," &#1583;&#1585; ",screen.height,"&#1662;&#1610;&#1705;&#1587;&#1604;<br>");if (navigator.javaEnabled()) document.write("&#1580;&#1575;&#1608;&#1575; &#1601;&#1593;&#1575;&#1604; &#1575;&#1587;&#1578;<br>");else document.write("&#1580;&#1575;&#1608;&#1575; &#1601;&#1593;&#1575;&#1604; &#1606;&#1740;&#1587;&#1578;<br>")// End --> </SCRIPT> </font>

نوشتن پیام در نوار وضعیت به صورت تایپی

<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 pausevar timerID = nullvar bannerRunning = falsevar 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 = 0var offset = 0function 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>

یک ماشین حساب کوچک

<!-- TWO STEPS TO INSTALL 5 FUNCTION CALCULATOR: 1. Paste the coding into the HEAD of your HTML document 2. Add the last code into the BODY of your HTML document --><!-- STEP ONE: Copy this code into the HEAD of your HTML document --><HEAD><SCRIPT LANGUAGE="JavaScript"><!-- Original: Rick Johnson --><!-- Web Site: http://members.tripod.com/~RickJohnson --><!--Total Java Scripts 99 - Next Step Software--><!-- Beginfunction a_plus_b(form) {a=eval(form.a.value)b=eval(form.b.value)c=a+bform.ans.value = c}function a_minus_b(form) {a=eval(form.a.value)b=eval(form.b.value)c=a-bform.ans.value=c}function a_times_b(form) {a=eval(form.a.value)b=eval(form.b.value)c=a*bform.ans.value=c}function a_div_b(form) {a=eval(form.a.value)b=eval(form.b.value)c=a/bform.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}// End --></SCRIPT><!-- STEP TWO: Put this code into the BODY of your HTML document --><BODY><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><!-- Script Size: 1.72 KB -->

 

 

چهار نوشته رو با حالت متغیر زوم نید

<SCRIPT LANGUAGE="JavaScript"><!-- Beginvar 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);// End --></script></body></html>

پرواز متن در وبلاگ

<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></body></html>

 

کد متحرک سازی برای حروف انگلیسی

<marquee>welcome</marquee>

 

کد متحرک سازی برای حروف فارسی

<marquee direction="right">welcome</marquee>

کد متحرک که با کنار صفحه برخورد میکند و بر میگردد

<marquee direction="right" behavior="alternate">welcome</marquee>

کد متحرک که با کنار صفحه برخورد میکند و می ایستد

<marquee direction="right" behavior="slide">welcome</marquee>

کدی که متنی را روشن و خاموش میکند

<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"; }}//BLINKINGfunction 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><p><p></body></html>

متن سایه دار

<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">javascrip.mihanblog.com</DIV></body></html>

 

متن نورانی

<h2><script language="JavaScript1.2">/*Neon Lights TextBy JavaScript (http://learniran.com)Over 500+ free scripts here!*/var message="Welcome to my weblog!"var neonbasecolor="gray"var neontextcolor="yellow"var flashspeed=100 //in milliseconds///No need to edit below this line/////var n=0if (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>')//cache reference to neonlight arrayvar tempref=document.all.neonlight}elsedocument.write(message)function neon(){//Change all letters to base colorif (n==0){for (m=0;m<message.length;m++)tempref[m].style.color=neonbasecolor}//cycle through and change individual letters to neon colortempref[n].style.color=neontextcolorif (n<tempref.length-1)n++else{n=0clearInterval(flashing)setTimeout("beginneon()",1500)return}}function beginneon(){if (document.all)flashing=setInterval("neon()",flashspeed)}beginneon()</script></h2>

 

موج دادن به متن

<HTML><HEAD><STYLE> DIV.aFilter {FILTER:PROGID:DXIMAGETRANSFORM.MICROSOFT.WAVE( strength=7, freq=3, lightstrength=100, add=0, phase=0); width: 150px; color: #8080FF;font-size:30px;font-weight:bold; text-align :Center; }</STYLE><SCRIPT language="javascript"> function doWave() { document.getElementById("myDiv").filters[0].phase += 10; status = document.getElementById("myDiv").filters[0].phase ; }</SCRIPT></HEAD><BODY OnLoad="window.setInterval('doWave();',100);" ><DIV CLASS="aFilter" id="myDiv">javascrip.mihanblog</DIV></BODY></HTML>

 

نوشتن متن به صورت عمودی

<html><head><style>.myStyle { writing-mode: tb-rl;filter: flipH() flipV();}</style></head><body><span class="myStyle"><font size="6" color="#000000">javascrip . mihanblog</font></span></body></html>

 

نوشتن متن درون یک فیلد

<html><head><script language="javascript" type="text/javascript">dayInfo = new ArraydayInfo[2] = "Dad's Birthday"dayInfo[5] = "Rehearsal Dinner"dayInfo[6] = "Wedding Day"function showInfo(thisDay) { document.calendar.dateInfo.value = dayInfo[thisDay]}</script></head><body><a href="javascript:showInfo(2)">1</a><br><a href="javascript:showInfo(5)">5</a><br><a href="javascript:showInfo(6)">6</a><p><form name="calendar"><input name="dateInfo" size="20"></form></body></html>

 

یک افکت ساده ولی جالب برای نوشته های شما

<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"> Iran Java Script </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> Wipe Transition</DIV> </DIV><BUTTON onclick="fnToggle()">Toggle Transition</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>


جمعه یازدهم 11 1387
X