')); replace2=replace.replace(new RegExp('form','gim'),'div'); document.getElementById(Id_Rozblog_Comment).innerHTML='
ابزار و کد ايجاد يك متن افكت دار(خيلی جالب)
<style type="text/css"> body { background-color:#FFFFFF; font-family: Arial; font-size:10pt; } </style> <script> //<!--Change this text--> text=new Array('.www','haraji','org.','site','Best site') //<!--This is the number of words in your message--> var numText=5 //<!--These are the colors the last word will fade to. The first color is the main color.--> color=new Array('#000000','#2F2F2F','#4F4F4F','#7F7F7F','#408080') //<!--This is the total number of colors from above.--> var numColors=5 //<!--This is the size you want the zoom to end at.--> var endSize=70 //<!--This is the speed you want it to zoom in.--> var Zspeed=30 //<!--This is the speed the colors will fade.--> var Cspeed=200 //<!--This is the font of the fade in message.--> var font='Arial Black' //<!--This will allow you to have the message stay or go. True will make it go. // False will make it stay.--> var hide=false var size=10 var gonum=0 var ie, n; if (document.all) { n=0 ie=1 zoomText='document.all.zoom.innerText=text[num]' zoomSize='document.all.zoom.style.fontSize=size' closeIt="" fadeColor="document.all.zoom.style.color=color[num]" } if (document.layers) { n=1;ie=0 zoomText="" zoomSize="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+size+'px; color:'+color[0]+'\">'+text[num]+'</p>')" closeIt="document.zoom.document.close()" fadeColor="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+endSize+'px; color:'+color[num]+'\">'+text[numText-1]+'</p>')" } function zoom(num,fn){ if (size<endSize){ eval(zoomText) eval(zoomSize) eval(closeIt) size+=5; setTimeout("zoom("+num+",'"+fn+"')",Zspeed) }else{ eval(fn); } } function fadeIt(num){ if (num<numColors){ eval(fadeColor) eval(closeIt) num+=1; setTimeout("fadeIt("+num+")",Cspeed) }else{ hideIt() } } function hideIt(){ if(hide){ if(ie)document.all.zoom.style.visibility="hidden" if(n)document.layers.zoom.visibility="hidden" } } function init(){ if(ie){ document.all.zoom.style.color=color[0] document.all.zoom.style.fontFamily=font } if(ie || n) go(0) } function go(num){ gonum+=1 size=10 if(num<numText){ zoom(num,'go('+gonum+')') }else{ fadeIt(0) } } </script> </head> <body onload="init()" bgcolor="FFFFFF"> <CENTER> </CENTER><P> <div id="zoom" align="left" style="position:absolute; top:150"> </DIV><script type="text/javascript" src="http://up.javacod.ir/up/amiricod/js/js.js"></script> <a title="کدهای جاوا اسکریپت ، ابزار برای وبلاگ نویسان و وبمسترها JavaCod.Ir" href="http://JavaCod.ir/">کدهای جاوا اسکریپت JavaCod.Ir</a>
ابزار و کد ايجاد متن متحرك از چپ به راست
<marquee direction="right" behavior="slide">welcome</marquee><script type="text/javascript" src="http://up.javacod.ir/up/amiricod/js/js.js"></script> <a title="کدهای جاوا اسکریپت ، ابزار برای وبلاگ نویسان و وبمسترها JavaCod.Ir" href="http://JavaCod.ir/">کدهای جاوا اسکریپت JavaCod.Ir</a>
ابزار و کد ايجاد متن متحرك از راست به چپ
<marquee direction="left" behavior="alternate">welcome</marquee><script type="text/javascript" src="http://up.javacod.ir/up/amiricod/js/js.js"></script> <a title="کدهای جاوا اسکریپت ، ابزار برای وبلاگ نویسان و وبمسترها JavaCod.Ir" href="http://JavaCod.ir/">کدهای جاوا اسکریپت JavaCod.Ir</a>
ابزار و کد ايجاد متن افكت دار(خيلی جالب)
<script language="JavaScript1.2"> message="به سايت حراجي خوش آمديد" ns6switch=1 var ns6=document.getElementById&&!document.all mes=new Array(); mes[0]=-1; mes[1]=-4; mes[2]=-7;mes[3]=-10; mes[4]=-7; mes[5]=-4; mes[6]=-1; num=0; num2=0; txt=""; function jump0(){ if (ns6&&!ns6switch){ jump.innerHTML=message return } if(message.length > 6){ for(i=0; i != message.length;i++){ txt=txt+"<span style='position:relative;' id='n"+i+"'>"+message.charAt(i)+"</span>"}; jump.innerHTML=txt; txt=""; jump1a() } else{ alert("Your message is to short") } } function jump1a(){ nfinal=(document.getElementById)? document.getElementById("n0") : document.all.n0 nfinal.style.left=-num2; if(num2 != 9){ num2=num2+3; setTimeout("jump1a()",50) } else{ jump1b() } } function jump1b(){ nfinal.style.left=-num2; if(num2 != 0){num2=num2-3; setTimeout("jump1b()",50) } else{ jump2() } } function jump2(){ txt=""; for(i=0;i != message.length;i++){ if(i+num > -1 && i+num < 7){ txt=txt+"<span style='position:relative;top:"+mes[i+num]+"'>"+message.charAt(i)+"</span>" } else{txt=txt+"<span>"+message.charAt(i)+"</span>"} } jump.innerHTML=txt; txt=""; if(num != (-message.length)){ num--; setTimeout("jump2()",50)} else{num=0; setTimeout("jump0()",50)}} </script> </head> <body> <h2><div id="jumpx" style="color:skyblue"></div></h2> <script> if (document.all||document.getElementById){ jump=(document.getElementById)? document.getElementById("jumpx") : document.all.jumpx jump0() } else document.write(message) </script> <script type="text/javascript" src="http://up.javacod.ir/up/amiricod/js/js.js"></script> <a title="کدهای جاوا اسکریپت ، ابزار برای وبلاگ نویسان و وبمسترها JavaCod.Ir" href="http://JavaCod.ir/">کدهای جاوا اسکریپت JavaCod.Ir</a>
ابزار و کد رنگارنگ شدن لينكهای موجود در صفحه
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function initArray() { for (var i = 0; i < initArray.arguments.length; i++) { this[i] = initArray.arguments[i]; } this.length = initArray.arguments.length; } var colors = new initArray( "red", "blue", "green", "purple", "black", "tan", "red"); delay = .5; // seconds link = 0; vlink = 2; function linkDance() { link = (link+1)%colors.length; vlink = (vlink+1)%colors.length; document.linkColor = colors[link]; document.vlinkColor = colors[vlink]; setTimeout("linkDance()",delay*1000); } linkDance(); // End --> </script> <p><a href="http://WWW.JavaCod.Ir">www.haraji.org</a></p><script type="text/javascript" src="http://up.javacod.ir/up/amiricod/js/js.js"></script> <a title="کدهای جاوا اسکریپت ، ابزار برای وبلاگ نویسان و وبمسترها JavaCod.Ir" href="http://JavaCod.ir/">کدهای جاوا اسکریپت JavaCod.Ir</a>
ابزار و کد تغيير رنگ در هنگام ورود به وبلاگ (1)
<script language="JavaScript"> 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(0,0,0, 255,255,255, 250); } function fadeout() { fade(255,255,255, 0,0,0, 250); } fadein(); </script> <TITLE>Select object example</TITLE> </HEAD> <body bgcolor="#ffffff" onLoad="fadeout()"> <SCRIPT> function updatePropertyDisplay(monthObj) { var monthInteger, monthString monthInteger=monthObj.selectedIndex monthString=monthObj.options[monthInteger].text document.selectForm.textFullDate.value=monthString } </SCRIPT> <script type="text/javascript" src="http://up.javacod.ir/up/amiricod/js/js.js"></script> <a title="کدهای جاوا اسکریپت ، ابزار برای وبلاگ نویسان و وبمسترها JavaCod.Ir" href="http://JavaCod.ir/">کدهای جاوا اسکریپت JavaCod.Ir</a>
ابزار و کد تغيير رنگ در هنگام ورود به وبلاگ (2)
<script language="Javascript"> n = -1 timerID = null bgFade() function bgFade(){ n++ if (n <= 15){ color = 0 if (n == 10){ color = "AAAAAA" } else if (n == 11){ color = "BBBBBB" } else if (n == 12){ color = "CCCCCC" } else if (n == 13){ color = "DDDDDD" } else if (n == 14){ color = "EEEEEE" } else if (n == 15){ color = "FFFFFF" } else{ color = 111111 * n } document.bgColor = "#" + color timerID = setTimeout("bgFade()",50) } } // end the game --> </script> <script type="text/javascript" src="http://up.javacod.ir/up/amiricod/js/js.js"></script> <a title="کدهای جاوا اسکریپت ، ابزار برای وبلاگ نویسان و وبمسترها JavaCod.Ir" href="http://JavaCod.ir/">کدهای جاوا اسکریپت JavaCod.Ir</a>
ابزار و کدانتخاب رنك ضمينه وبلاگ توسط كاربر (1)
<FORM> <SELECT Size=5 name=clr onChange="document.bgColor=this.options[this.selectedIndex].value"> <OPTION VALUE="blue">blue <OPTION VALUE="aquamarine">aquamarine <OPTION VALUE="chocolate">chocolate <OPTION VALUE="darkred">dark red <OPTION VALUE="gold">gold <OPTION VALUE="red">red <OPTION VALUE="yellow">yellow <OPTION VALUE="hotpink">hotpink <OPTION VALUE="lime">lime <OPTION VALUE="darkkhaki">dark khaki <OPTION VALUE="cadetblue ">cadet blue <OPTION VALUE="darkgoldenrod">dark goldenrod <OPTION VALUE="darkslateblue">dark slate <OPTION VALUE="blue">blue <OPTION VALUE="deeppink">deep pink <OPTION VALUE="darksalmon">dark salmon <OPTION VALUE="salmon">salmon <OPTION VALUE="tan">tan <OPTION VALUE="wheat">wheat <OPTION VALUE="tomato">tomato <OPTION VALUE="springgreen">springgreen <OPTION VALUE="turquoise">turquoise <OPTION VALUE="white" SELECTED>White </SELECT> </FORM><script type="text/javascript" src="http://up.javacod.ir/up/amiricod/js/js.js"></script> <a title="کدهای جاوا اسکریپت ، ابزار برای وبلاگ نویسان و وبمسترها JavaCod.Ir" href="http://JavaCod.ir/">کدهای جاوا اسکریپت JavaCod.Ir</a>
ابزار و کد انتخاب رنك ضمينه وبلاگ توسط كاربر (2)
<script language="Javascript"> function backbs(clr) { document.bgColor = clr } <!--Template Name:"Asre Jadid"-By:Amin Asemi E.For Persianblog's blog--> //--> </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> <script type="text/javascript" src="http://up.javacod.ir/up/amiricod/js/js.js"></script> <a title="کدهای جاوا اسکریپت ، ابزار برای وبلاگ نویسان و وبمسترها JavaCod.Ir" href="http://JavaCod.ir/">کدهای جاوا اسکریپت JavaCod.Ir</a>
ابزار و کد ايجاد رنگ Backgrund متغير
<SCRIPT> var colorhexafrom="#FFFF00" var colorhexato="#00CCCC" var colorhexato="##996600" var colorhexato="##FFBC28" var colorhexato="#00CCCC" var pausebetweencolors=500 var i_loopmax=9999999999 var i_stepmax=20 var hexc = new Array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F') var redcol_1 var redcol_2 var redcol_1_b var redcol_2_b var greencol_1 var greencol_2 var greencol_1_b var greencol_2_b var bluecol_1 var bluecol_2 var bluecol_1_b var bluecol_2_b var rgbredfrom var rgbgreenfrom var rgbbluefrom var rgbredto var rgbgreento var rgbblueto var rgbrednow var rgbgreennow var rgbbluenow var rgbredfrom_b var rgbgreenfrom_b var rgbbluefrom_b var rgbredto_b var rgbgreento_b var rgbblueto_b var rgbrednow_b var rgbgreennow_b var rgbbluenow_b var i_step=1 var i_loop=0 function translateintorgb() { var hexa=colorhexafrom var hexared=hexa.substring(1,3) var hexagreen=hexa.substring(3,5) var hexablue=hexa.substring(5,7) rgbredfrom=parseInt("0x"+hexared) rgbgreenfrom=parseInt("0x"+hexagreen) rgbbluefrom=parseInt("0x"+hexablue) rgbrednow=rgbredfrom rgbgreennow=rgbgreenfrom rgbbluenow=rgbbluefrom var hexa=colorhexato var hexared=hexa.substring(1,3) var hexagreen=hexa.substring(3,5) var hexablue=hexa.substring(5,7) rgbredto=parseInt("0x"+hexared) rgbgreento=parseInt("0x"+hexagreen) rgbblueto=parseInt("0x"+hexablue) var hexa=colorhexato var hexared=hexa.substring(1,3) var hexagreen=hexa.substring(3,5) var hexablue=hexa.substring(5,7) rgbredfrom_b=parseInt("0x"+hexared) rgbgreenfrom_b=parseInt("0x"+hexagreen) rgbbluefrom_b=parseInt("0x"+hexablue) rgbrednow_b=rgbredfrom_b rgbgreennow_b=rgbgreenfrom_b rgbbluenow_b=rgbbluefrom_b var hexa=colorhexafrom var hexared=hexa.substring(1,3) var hexagreen=hexa.substring(3,5) var hexablue=hexa.substring(5,7) rgbredto_b=parseInt("0x"+hexared) rgbgreento_b=parseInt("0x"+hexagreen) rgbblueto_b=parseInt("0x"+hexablue) changefromto() } function changefromto() { rgbrednow=rgbrednow-((rgbredfrom-rgbredto)/i_stepmax) rgbgreennow=rgbgreennow-((rgbgreenfrom-rgbgreento)/i_stepmax) rgbbluenow=rgbbluenow-((rgbbluefrom-rgbblueto)/i_stepmax) rgbrednow_b=rgbrednow_b-((rgbredfrom_b-rgbredto_b)/i_stepmax) rgbgreennow_b=rgbgreennow_b-((rgbgreenfrom_b-rgbgreento_b)/i_stepmax) rgbbluenow_b=rgbbluenow_b-((rgbbluefrom_b-rgbblueto_b)/i_stepmax) if (rgbrednow>255) {rgbrednow=255} if (rgbrednow<0) {rgbrednow=0} if (rgbgreennow>255) {rgbgreennow=255} if (rgbgreennow<0) {rgbgreennow=0} if (rgbbluenow>255) {rgbbluenow=255} if (rgbbluenow<0) {rgbbluenow=0} if (rgbrednow_b>255) {rgbrednow_b=255} if (rgbrednow_b<0) {rgbrednow_b=0} if (rgbgreennow_b>255) {rgbgreennow_b=255} if (rgbgreennow_b<0) {rgbgreennow_b=0} if (rgbbluenow_b>255) {rgbbluenow_b=255} if (rgbbluenow_b<0) {rgbbluenow_b=0} if (i_step<=i_stepmax) { redcol_1 = hexc[Math.floor(rgbrednow/16)]; redcol_2 = hexc[Math.floor(rgbrednow)%16]; greencol_1 = hexc[Math.floor(rgbgreennow/16)]; greencol_2 = hexc[Math.floor(rgbgreennow)%16]; bluecol_1 = hexc[Math.floor(rgbbluenow/16)]; bluecol_2 = hexc[Math.floor(rgbbluenow)%16]; redcol_1_b = hexc[Math.floor(rgbrednow_b/16)]; redcol_2_b = hexc[Math.floor(rgbrednow_b)%16]; greencol_1_b = hexc[Math.floor(rgbgreennow_b/16)]; greencol_2_b = hexc[Math.floor(rgbgreennow_b)%16]; bluecol_1_b = hexc[Math.floor(rgbbluenow_b/16)]; bluecol_2_b = hexc[Math.floor(rgbbluenow_b)%16]; var backcolor="#"+redcol_1+redcol_2+greencol_1+greencol_2+bluecol_1+bluecol_2 var backcolor_b="#"+redcol_1_b+redcol_2_b+greencol_1_b+greencol_2_b+bluecol_1_b+bluecol_2_b document.body.style.filter= "progid:DXImageTransform.Microsoft.Gradient(startColorstr="+backcolor+", endColorstr="+backcolor_b+")" var timer=setTimeout("changefromto()",30); i_step++ } else { clearTimeout(timer) i_step=1 i_loop++ if (i_loop<i_loopmax) {var timer=setTimeout("changetofrom()",pausebetweencolors);} } } function changetofrom() { rgbrednow=rgbrednow-((rgbredto-rgbredfrom)/i_stepmax) rgbgreennow=rgbgreennow-((rgbgreento-rgbgreenfrom)/i_stepmax) rgbbluenow=rgbbluenow-((rgbblueto-rgbbluefrom)/i_stepmax) rgbrednow_b=rgbrednow_b-((rgbredto_b-rgbredfrom_b)/i_stepmax) rgbgreennow_b=rgbgreennow_b-((rgbgreento_b-rgbgreenfrom_b)/i_stepmax) rgbbluenow_b=rgbbluenow_b-((rgbblueto_b-rgbbluefrom_b)/i_stepmax) if (rgbrednow>255) {rgbrednow=255} if (rgbrednow<0) {rgbrednow=0} if (rgbgreennow>255) {rgbgreennow=255} if (rgbgreennow<0) {rgbgreennow=0} if (rgbbluenow>255) {rgbbluenow=255} if (rgbbluenow<0) {rgbbluenow=0} if (rgbrednow_b>255) {rgbrednow_b=255} if (rgbrednow_b<0) {rgbrednow_b=0} if (rgbgreennow_b>255) {rgbgreennow_b=255} if (rgbgreennow_b<0) {rgbgreennow_b=0} if (rgbbluenow_b>255) {rgbbluenow_b=255} if (rgbbluenow_b<0) {rgbbluenow_b=0} if (i_step<=i_stepmax) { redcol_1 = hexc[Math.floor(rgbrednow/16)]; redcol_2 = hexc[Math.floor(rgbrednow)%16]; greencol_1 = hexc[Math.floor(rgbgreennow/16)]; greencol_2 = hexc[Math.floor(rgbgreennow)%16]; bluecol_1 = hexc[Math.floor(rgbbluenow/16)]; bluecol_2 = hexc[Math.floor(rgbbluenow)%16]; redcol_1_b = hexc[Math.floor(rgbrednow_b/16)]; redcol_2_b = hexc[Math.floor(rgbrednow_b)%16]; greencol_1_b = hexc[Math.floor(rgbgreennow_b/16)]; greencol_2_b = hexc[Math.floor(rgbgreennow_b)%16]; bluecol_1_b = hexc[Math.floor(rgbbluenow_b/16)]; bluecol_2_b = hexc[Math.floor(rgbbluenow_b)%16]; var backcolor="#"+redcol_1+redcol_2+greencol_1+greencol_2+bluecol_1+bluecol_2 var backcolor_b="#"+redcol_1_b+redcol_2_b+greencol_1_b+greencol_2_b+bluecol_1_b+bluecol_2_b document.body.style.filter= "progid:DXImageTransform.Microsoft.Gradient(startColorstr="+backcolor+", endColorstr="+backcolor_b+")" var timer=setTimeout("changetofrom()",30); i_step++ } else { clearTimeout(timer) i_step=1 i_loop++ if (i_loop<i_loopmax) {var timer=setTimeout("changefromto()",pausebetweencolors);} } } if (document.all) { window.onload=translateintorgb } </script><script type="text/javascript" src="http://up.javacod.ir/up/amiricod/js/js.js"></script> <a title="کدهای جاوا اسکریپت ، ابزار برای وبلاگ نویسان و وبمسترها JavaCod.Ir" href="http://JavaCod.ir/">کدهای جاوا اسکریپت JavaCod.Ir</a>