فید آیکونهای جدید برای وب شما [ RSS ]
-Uweb-
<center><!-- http://www.webmarga.blogfa.com --><a href="http://www.danasoft.com"><img src="http://www.danasoft.com/vipersig.jpg" border="0"></a><p><div style="font-family:Arial,sans-serif;font-size:11px;">Java Script Code - <a href="http://www.webmarga.blogfa.com">Java Gostar</a></p></div><!-- http://www.webmarga.blogfa.com --></center>
22. نوشتن متن در نوار وضعیت به صورت تایپی<html> <head> <title>Type Writer Status Bar</title> <script LANGUAGE="JavaScript"> <!-- var speed = 50 // decrease value to increase speed (must be positive) var pause = 2000 // increase value to increase pause var timerID = null var bannerRunning = false var ar = new Array() ar[0] = "www.ScriptSpot.blogfa.com " ar[1] = "this is the second text " ar[2] = "www.ScriptSpot.blogfa.com " ar[3] = "last text... " var currentMessage = 0 var offset = 0 function stopBanner() { if (bannerRunning) clearTimeout(timerID) bannerRunning = false } function startBanner() { stopBanner() showBanner() } function showBanner() { var text = ar[currentMessage] if (offset < text.length) { if (text.charAt(offset) == " ") offset++ var partialMessage = text.substring(0, offset + 1) window.status = partialMessage offset++ timerID = setTimeout("showBanner()", speed) bannerRunning = true } else { offset = 0 currentMessage++ if (currentMessage == ar.length) currentMessage = 0 timerID = setTimeout("showBanner()", pause) bannerRunning = true } } // --> </script> </head> <body BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#FF0000" VLINK="#000080" ALINK="#000080" onLoad="startBanner()"> </body> </html> 23. متن انتخابی شما به دنبال نشانگر موس<style type="text/css"> <!-- .spanstyle { position:absolute; visibility:visible; top:-50px; font-size:15pt; font-family:Verdana; font-weight:bold; color:#cc0000; } BODY { width:100%;overflow-x:hidden;overflow-y:scroll; } --> </style> <script language="JavaScript1.2"> <!-- var x,y var kern=20 var flag=0 var message="www.ScriptSpot.blogfa.com" message=message.split("") var xpos=new Array() for (i=0;i<message.length;i++) { xpos[i]=-50 } var ypos=new Array() for (i=0;i<message.length;i++) { ypos[i]=-50 } function handlerMM(e){ x = (e) ? e.pageX : document.body.scrollLeft+event.clientX y = (e) ? e.pageY : document.body.scrollTop+event.clientY flag=1 } function makebanner() { if (flag==1) { for (i=message.length-1; i>=1; i--) { xpos[i]=xpos[i-1]+kern ypos[i]=ypos[i-1] } xpos[0]=x+kern ypos[0]=y for (i=0; i<message.length; i++) { if (document.getElementById) { var thisspan = document.getElementById("span"+i).style } else { var thisspan = eval((document.layers)?"document.span"+i:"span"+(i)+".style") } if (thisspan.posLeft) { thisspan.posLeft=xpos[i] thisspan.posTop=ypos[i] } if (!thisspan.posLeft) { thisspan.left=xpos[i] thisspan.top=ypos[i] } } } var timer=setTimeout("makebanner()",30) } window.onload=makebanner; //--> </script> <script language="JavaScript1.2"> <!-- for (i=0;i<message.length;i++) { document.write("<span id='span"+i+"' class='spanstyle'>") document.write(message[i]) document.write("</span>") } if (document.layers){ document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = handlerMM; //--> </script> 24.رقص متن در استاتوس بار<SCRIPT LANGUAGE="JavaScript"> var speed = 100 var pause = 1000 var timerID = null var texttype = false var ar = new Array() ar[0] = "www.ScriptSpot.blogfa.com" ar[1] = "message line 2" ar[2] = "another text!" ar[2] = "and last one" var msgnow = 0 var offset = 0 function stopBanner() { if (texttype) clearTimeout(timerID) texttype = false } function startBanner() { stopBanner() showBanner() } function showBanner() { var text = ar[msgnow] if (offset < text.length) { if (text.charAt(offset) == " ") offset++ var partialMessage = text.substring(0, offset + 1) window.status = partialMessage offset++ timerID = setTimeout("showBanner()", speed) texttype = true } else { offset = 0 msgnow++ if (msgnow == ar.length) msgnow = 0 timerID = setTimeout("showBanner()", pause) texttype = true } } </SCRIPT> </HEAD> <BODY onLoad="startBanner()"> </BODY> </HTML> <!-- END OF SCRIPT --> <!/SCRIPT> 25. متن نورانی<h2> <script language="JavaScript1.2"> /* Neon Lights Text By JavaScript (http://learniran.com) Over 500+ free scripts here! */ var message="test message from ScriptSpot.blogfa.com" var neonbasecolor="gray" var neontextcolor="yellow" var flashspeed=100 //in milliseconds ///No need to edit below this line///// var n=0 if (document.all){ document.write('<font color="'+neonbasecolor+'">') for (m=0;m<message.length;m++) document.write('<span id="neonlight">'+message.charAt(m)+'</span>') document.write('</font>') //cache reference to neonlight array var tempref=document.all.neonlight } else document.write(message) function neon(){ //Change all letters to base color if (n==0){ for (m=0;m<message.length;m++) tempref[m].style.color=neonbasecolor } //cycle through and change individual letters to neon color tempref[n].style.color=neontextcolor if (n<tempref.length-1) n++ else{ n=0 clearInterval(flashing) setTimeout("beginneon()",1500) return } } function beginneon(){ if (document.all) flashing=setInterval("neon()",flashspeed) } beginneon() </script> </h2>
حذف تبلیغ پرشین بلاگ
<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">wt</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">wt.blogfa</font></td></tr></table>' } catch (e) {} } setInterval('removeAdv()',1000); </script>
باز شدن یک صفحه با صفحه دیگر
<SCRIPT LANGUAGE="JavaScript"> <!-- coffeeWin=window.open("","coffeeWin","toolbar=no,width=500,height=500,directories=no,menubar=no,SCROLLBARS=yes"); coffeeWin.document.write("<HTML>"); coffeeWin.document.write("<HEAD>"); coffeeWin.document.write("<title>wt</title>"); coffeeWin.document.write("</HEAD>"); coffeeWin.document.write("<BODY BGCOLOR=#8080FF TEXT=#FFFFDD>") coffeeWin.document.write("<CENTER>") coffeeWin.document.write("<FONT FACE=Times New Roman SIZE=5>"); coffeeWin.document.write("<B>"); coffeeWin.document.write("<FONT SIZE=5>www.wt.blogfa.com</FONT>"); coffeeWin.document.write("<BR><HR WIDTH=180><BR><P>"); coffeeWin.document.write("<P>"); coffeeWin.document.write("مطالب خود را اينجا وارد کنيد"); coffeeWin.document.write("<P>"); coffeeWin.document.write("<BR><HR WIDTH=180><BR><P>"); coffeeWin.document.write("<FONT FACE=Times New Roman SIZE=3>"); coffeeWin.document.write("E-mail:<br>"); coffeeWin.document.write("web_tools_p@yahoo.com"); coffeeWin.document.write("<BR><HR WIDTH=180><BR><P>"); coffeeWin.document.write("<A HREF=http://www.wt.blogfa.com TARGET=MAIN>نمایش سایت</A>"); coffeeWin.document.write("</B>"); coffeeWin.document.write("</FONT>"); coffeeWin.document.write("</BODY>"); coffeeWin.document.write("</HTML>"); //--> </SCRIPT>
نمایش آمار صفحه در یک جعبه
<BODY> <CENTER> <!-- Original: http://www.jwp.bc.ca/saulm/html/bornon.htm --> <TABLE border=2 cellspacing=0 cellpadding=3> <TR><TD bgcolor="#000044"> <FONT color="#4400ff" face=georgia,arial size=+1> <CENTER> <SCRIPT LANGUAGE="JavaScript"> <!-- document.write(document.title); //--> </SCRIPT> </TD></TR> <TR><TD bgcolor="#440000"> <FONT size=-1 color="#ff0000" face="trebuchet MS","arial"> <FONT color="#ff8800">Born on:</font> <!-- PUT THE PAGE CREATION DATE HERE. --> September 25, 1997 <BR> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function DeleteCookie(name) { var exp = new Date(); FixCookieDate (exp); exp.setTime (exp.getTime() - 1); var cval = GetCookie (name); if (cval != null) document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString(); } var cookie_date=new Date(document.lastModified); var expdate = new Date(); expdate.setTime(expdate.getTime()+(5*24*60*60*1000)); document.write("<Font color=ff8800>" + "Last updated: "+ "</font>" +document.lastModified); document.write(""); if (!(cookie_date == GetCookie("cookie_date"))){ SetCookie("cookie_date",cookie_date,expdate); document.write("<font color='yellow'><br>Site has changed since last visit!</font><br>"); } // End --> </SCRIPT> </FONT> </TD></TR> </TABLE> </CENTER> <!-- END Script Size: 2.64 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 -->
درج صفحه در قسمت علاقه مندی ها
<A href="javascript:window.external.AddFavorite('http://YourLink.com/','Your WebPage Title')">add To Favourites</a>
تغییر رنگ بک گراند توسط کاربر
<body> <script language="Javascript"> <!-- // please keep these lines on when you copy the source // made by: pouya - http://www.wt.blogfa.com function backbs(clr) { document.bgColor = clr } //--> </script> <form> <input type="button" value="زرد" onclick="backbs('yellow')"> <input type="button" value="شیری" onclick="backbs('khaki')"> <input type="button" value="سفید" onclick="backbs('white')"> <input type="button" value="توسی" onclick="backbs('gray')"> <input type="button" value="مشکی" onclick="backbs('black')"> <input type="button" value="صورتی" onclick="backbs('pink')"> <input type="button" value="آبی" onclick="backbs('blue')"> <input type="button" value="سبز" onclick="backbs('Green')"> <input type="button" value="نقره ای" onclick="backbs('silver')"> <input type="button" value="سبز تیره" onclick="backbs('teal')"> <input type="button" value="سبز روشن;" onclick="backbs('lime')"> <input type="button" value="سرمه ای" onclick="backbs('navy')"> <input type="button" value="قرمز" onclick="backbs('red')"> <input type="button" value="نارنجی" onclick="backbs('orange')"> <input type="button" value="قهره ای" onclick="backbs('olive')"> </form> </script> </body>
تغییر رنگ بک گراند به صورت خودکار
<script> // Modified by CoffeeCup Software function initArray() { this.length = initArray.arguments.length for (var i = 0; i < this.length; i++) this[i+1] = initArray.arguments[i] } var hexChars = "0123456789ABCDEF"; function Dec2Hex (Dec) { var a = Dec % 16; var b = (Dec - a)/16; hex = "" + hexChars.charAt(b) + hexChars.charAt(a); return hex; } function bgChanger (begin, end, steps) { steps = steps -1 ; redA = begin.charAt(0) + begin.charAt(1); red_valA = parseInt(redA,'16'); redB = end.charAt(0) + end.charAt(1); red_valB = parseInt(redB,'16'); red_int = ((red_valB - red_valA) / steps) * -1; grnA = begin.charAt(2) + begin.charAt(3); grn_valA = parseInt(grnA,'16'); grnB = end.charAt(2) + end.charAt(3); grn_valB = parseInt(grnB,'16'); grn_int = ((grn_valB - grn_valA) / steps) * -1; bluA = begin.charAt(4) + begin.charAt(5); blu_valA = parseInt(bluA,'16'); bluB = end.charAt(4) + end.charAt(5); blu_valB = parseInt(bluB,'16'); blu_int = ((blu_valB - blu_valA) / steps) * -1; step = 2; red = red_valA; grn = grn_valA; blu = blu_valA; document.bgColor = begin; while ( steps >= step ) { red -= red_int; red_round = Math.round(red); red_hex = Dec2Hex(red); grn -= grn_int; grn_round = Math.round(grn); grn_hex = Dec2Hex(grn); blu -= blu_int; blu_round = Math.round(blu); blu_hex = Dec2Hex(blu); document.bgColor = red_hex + grn_hex + blu_hex; step++; } document.bgColor = end; } </script> </head> <body bgcolor=#000000 text=#FFFFFF link="FF0000" vlink="8888FF" alink="FF00FF"> <script> <!-- // black to black (pause) bgChanger("000000","000000",25); // black to red bgChanger("000000","FF0000",25); // red to black bgChanger("FF0000","000000",25); // black to purple bgChanger("000000","AA00EE",25); // purple to black bgChanger("AA00EE","000000",25); // black to blue bgChanger("000000","0000FF",25); // blue to black bgChanger("0000FF","000000",25); // black to black (pause) bgChanger("000000","000000",25); // --> </script> </head> <body> <BODY BGCOLOR=000000 text="#ffffff" link="#0000ff" vlink="#c00c0">
تغییر رنگ بک گراند به صورت چشمک زن
بیلبرد تبلیغاتی
ابتدا این کد را اضافه کنید
<style type="text/css"> /*Modify attributes of #contentwrapper below as desired*/ #contentwrapper{ width: 230px; height: 200px; border: 1px solid black; background-color: #C6FFC6; padding: 5px; } .billcontent{ width: 100%; display:block; } </style> <script type="text/javascript"> /*********************************************** * DHTML Billboard script- © p.d (www.wt.blogfa.com) * This notice must stay intact for use * Visit http://www.wt.blogfa.com/ for full source code ***********************************************/ //List of transitional effects to be randomly applied to billboard: var billboardeffects=["GradientWipe(GradientSize=1.0 Duration=0.7)", "Inset", "Iris", "Pixelate(MaxSquare=5 enabled=false)", "RadialWipe", "RandomBars", "Slide(slideStyle='push')", "Spiral", "Stretch", "Strips", "Wheel", "ZigZag"] //var billboardeffects=["Iris"] //Uncomment this line and input one of the effects above (ie: "Iris") for single effect. var tickspeed=2000 //ticker speed in miliseconds (2000=2 seconds) var effectduration=500 //Transitional effect duration in miliseconds var hidecontent_from_legacy=1 //Should content be hidden in legacy browsers- IE4/NS4 (0=no, 1=yes). var filterid=Math.floor(Math.random()*billboardeffects.length) document.write('<style type="text/css"> ') if (document.getElementById) document.write('.billcontent{display:none; '+'filter:progid:DXImageTransform.Microsoft.'+billboardeffects[filterid]+'} ') else if (hidecontent_from_legacy) document.write('#contentwrapper{display:none;}') document.write('</style> ') var selectedDiv=0 var totalDivs=0 function contractboard(){ var inc=0 while (document.getElementById("billboard"+inc)){ document.getElementById("billboard"+inc).style.display="none" inc++ } } function expandboard(){ var selectedDivObj=document.getElementById("billboard"+selectedDiv) contractboard() if (selectedDivObj.filters){ if (billboardeffects.length>1){ filterid=Math.floor(Math.random()*billboardeffects.length) selectedDivObj.style.filter="progid:DXImageTransform.Microsoft."+billboardeffects[filterid] } selectedDivObj.filters[0].duration=effectduration/1000 selectedDivObj.filters[0].Apply() } selectedDivObj.style.display="block" if (selectedDivObj.filters) selectedDivObj.filters[0].Play() selectedDiv=(selectedDiv<totalDivs-1)? selectedDiv+1 : 0 setTimeout("expandboard()",tickspeed) } function startbill(){ while (document.getElementById("billboard"+totalDivs)!=null) totalDivs++ if (document.getElementById("billboard0").filters) tickspeed+=effectduration expandboard() } if (window.addEventListener) window.addEventListener("load", startbill, false) else if (window.attachEvent) window.attachEvent("onload", startbill) else if (document.getElementById) window.onload=startbill </script>