PDA

مشاهده نسخه کامل : کد جاوا



masoureh
29-11-08, 22:33
سلام دوستان.اینم چندتا کد جاوا برای شما

masoureh
29-11-08, 22:34
حتما تا حالا دیدید که وقتی می خواهند یک کد جاوا را به دیگران نمایش دهند آن کد را درون یک مستطیل قرار می دهند تا بازدید کننده بتواند آنرا کپی کند.
برای مشاهده و مفهوم بهتر این کد روی لینک زیر کلیک کنید
Only the registered members can see the link (Only the registered members can see the link)
اینم کدش:

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <textarea>کدی که می خواهید نمایش داده شود</textarea> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
29-11-08, 22:35
تا حالا شده وارد یک وبلاگ شوید و وقتی وبلاگ باز شد یک پیام برای شما بده.مثلا به وبلاگ من خوش آمدید.این کد هم همین کار رو انجام میده.ولی شما می توانید هر متنی دوست داشتید به اجرا بگذارید.من خودم متن زیر رو براتون گذاشتم:
سلام.به وبلاگ من خوش اومدی.نظر یادت نره ها
اما شما می توانید این متن رو تغییر دهید.یعنی در کدی که بهتون میگم متن بالا رو پیدا کنید و به جای اون متن دلخواهتون رو بنویسید.
برای دیدن نمونه به لینک زیر مراجعه کنید
Only the registered members can see the link (Only the registered members can see the link)
اینم کدش:

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <!-- This allows the user confirm entering the page --> <SCRIPT LANGUAGE="JavaScript"><!-- //modified by theam.tk function Info() { if (!confirm("سلام.به وبلاگ من خوش اومدی.نظر یادت نره ها")) history.go(-1);return " " } document.writeln(Info())<!--End--></script> <a href="Only the registered members can see the link" target="_blank"><font color="#FF00FF"><b>قالب وبلاگ</b></font></a> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
29-11-08, 22:36
در این کد شما می توانید یک لینک باکس کوچک بسازید.البته لینک باکس که نه.یک مستطیل بسیار کوچک.تا حالا به سایتی رفتید که اون آخرش نوشته پرش به موضوعات و زیرش یک مستطیل گذاشته؟اینم همون رو درست می کنه.فقط کافی است بجای آدرس لینک شما آدرس اینترنتی که می خواهید ایجاد کنید رو می نویسید(به طور کامل)مثلا:
Only the registered members can see the link (Only the registered members can see the link)
و به جای نام لینک شما اسم لینک رو بنوسید.مثلا
از عشق تا دانلود.
برای مشاهده ی این کد به لینک زیر مراجعه کنید
Only the registered members can see the link (Only the registered members can see the link)
اینم کدش:

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <CENTER> <FONT FACE="VERDANA, ARIAL"><b><font size="4"><font color="#FF0000">منوی بازشو</font></font></b></FONT><BR> <FORM> <SELECT NAME="clicklist" onChange="top.location.href=this.form.clicklist.options[this.form.clicklist.selectedIndex].value"> <OPTION> <OPTION SELECTED VALUE="Only the registered members can see the link">کد جاوا <OPTION VALUE="Only the registered members can see the link">قالب وبلاگ <OPTION VALUE="Only the registered members can see the link">از عشق تا دانلود <OPTION VALUE="Only the registered members can see the link">صلوات چیست <OPTION VALUE="آدرس لینک شما">نام لینک شما <OPTION VALUE="آدرس لینک شما">نام لینک شما <OPTION VALUE="آدرس لینک شما">نام لینک شما <OPTION VALUE="آدرس لینک شما">نام لینک شما <OPTION VALUE="آدرس لینک شما">نام لینک شما <OPTION VALUE="آدرس لینک شما">نام لینک شما </SELECT><P> <!-- © This Template Designed By Mohamad Bagheri - theam.parsiblog.com --> <a href="Only the registered members can see the link" target="_blank"><font size="5"><b>قالب وبلاگ</b></font></a> </FORM> </CENTER> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
29-11-08, 22:36
اینم یه لینک بازشو است که به حالتی بسیار زیبا بوجود میاد.این یکی توضیحش سخت است.پس خودتون ببینید.ولی توصیه می کنم استفاده کنید.خیلی باحال شده
برای مشاهده روی لینک زیر کلیک کنید
Only the registered members can see the link (Only the registered members can see the link)
اینم کدش

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <HTML><HEAD> <META Only the registered members can see the link content="text/html; charset=windows-1256"> <STYLE>#wrapper { POSITION: relative; HEIGHT: 30px } #wrapper2 { POSITION: absolute } #coffeemenu03 { FILTER: revealTrans(Duration=1.5,Transition=12) visibility:hide } </STYLE> <META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD> <BODY><ILAYER id=coffeemenu01 height="35px"><LAYER id=coffeemenu02 visibility="show"><SPAN id=wrapper><SPAN id=wrapper2 onclick="dropit2();event.cancelBubble=true;return false"><FONT face=Verdana><B><A href="file:///C:/Documents%20and%20Settings/Administrator/Desktop/notthisbrowser.html">برای مشاهده ی لینک ها کلیک کنید</A></B></FONT> </SPAN></SPAN></LAYER></ILAYER> <SCRIPT language=JavaScript1.2> var enableeffect=true var selection=new Array() selection[0]='<font face="ARIAL BLACK"><a href="Only the registered members can see the link"><b>قالب ئبلاگ و کد جاوا</b></a><br>' <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> selection[1]='<a href="Only the registered members can see the link"><b>قالب وبلاگ و کد جاوا</b></a><br>' <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> selection[2]='<a href="Only the registered members can see the link"><b>از عشق تا دانلود</b></a><br>' <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> selection[3]='<a href="آدرس لینک شما"><b>نام لینک شما</b></a><br>' <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> selection[4]='<a href="آدرس لینک شما"><b>نام لینک شما</b></a><br>' <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> selection[5]='<a href="آدرس لینک شما"><b>نام لینک شما</b></a><br>' <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> selection[6]='<a href="آدرس لینک شما"><b>نام لینک شما</b></a><br>' <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> selection[7]='<a href="آدرس لینک شما"><b>نام لینک شما</b></a><br>' <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> selection[8]='<a href="آدرس لینک شما"><b>نام لینک شما</b></a><br>' <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> selection[9]='<a href="آدرس لینک شما"><b>نام لینک شما</b></a><br></font>' if (document.layers) document.coffeemenu01.document.coffeemenu02.visibi lity='show' function dropit2(){ if (document.all){ coffeemenu03.style.left=document.body.scrollLeft+e vent.clientX-event.offsetX coffeemenu03.style.top=document.body.scrollTop+eve nt.clientY-event.offsetY+18 if (coffeemenu03.style.visibility=="hidden"){ if (enableeffect) coffeemenu03.filters.revealTrans.apply() coffeemenu03.style.visibility="visible" if (enableeffect) coffeemenu03.filters.revealTrans.play() } else{ hidemenu() } } } function dropit(e){ if (document.coffeemenu03.visibility=="hide") document.coffeemenu03.visibility="show" else document.coffeemenu03.visibility="hide" document.coffeemenu03.left=e.pageX-e.layerX document.coffeemenu03.top=e.pageY-e.layerY+19 return false } function hidemenu(){ if (enableeffect) coffeemenu03.filters.revealTrans.stop() coffeemenu03.style.visibility="hidden" } function hidemenu2(){ document.coffeemenu03.visibility="hide" } if (document.layers){ document.coffeemenu01.document.coffeemenu02.captur eEvents(Event.CLICK) document.coffeemenu01.document.coffeemenu02.onclic k=dropit } else if (document.all) document.body.onclick=hidemenu </SCRIPT> <DIV id=coffeemenu03 style="BORDER-RIGHT: black 2px solid; PADDING-RIGHT: 0px; BORDER-TOP: black 2px solid; PADDING-LEFT: 0px; LEFT: 0px; VISIBILITY: hidden; PADDING-BOTTOM: 0px; BORDER-LEFT: black 2px solid; WIDTH: 200px; PADDING-TOP: 0px; BORDER-BOTTOM: black 2px solid; POSITION: absolute; TOP: 0px; BACKGROUND-COLOR: #c0c0c0; layer-background-color: #C0C0C0"> <SCRIPT language=JavaScript1.2> if (document.all) coffeemenu03.style.padding='4px' for (i=0;i<selection.length;i++) document.write(selection[i]) </SCRIPT> </DIV> <SCRIPT language=JavaScript1.2> if (document.layers){ document.coffeemenu03.captureEvents(Event.CLICK) document.coffeemenu03.onclick=hidemenu2 } </SCRIPT> <!-- END OF Drop Down DHTML --> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
29-11-08, 22:37
اینم یه کد برای زیبا سازی وبلاگ و یا سایت شما.این کد باعث میشه ستاره های رنگارنگی در وبلاگ یا سایت شما حرکت کنند.خیلی قشنگن.حتما استفاده کنید.
برای مشاده ی کد به لینک زیر مراجعه کنید
Only the registered members can see the link
اینم کدش:

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <!--Powered javascript code by Only the registered members can see the link (Only the registered members can see the link)--> <body> <script LANGUAGE="JavaScript1.2"> <!-- //set Interval between each firework display, var intervals=2000 var sparksOn = true; var speed = 25; var power = 1; //Dont change these values------- var documentWidth=documentHeight=randomx=randomy=leftc orner=topcorner=0 var ns=(document.layers); var ie=(document.all); var sparksAflyin = false; var allDivs = new Array(10); var totalSparks = 0; //------------------------------- function initAll(){ if(!ns && !ie){ sparksOn = false; return; } setInterval("firework()",intervals) if (ns) document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE); for(dNum=0; dNum<7; ++dNum){ if(ie) allDivs[dNum]=eval('document.all.sDiv'+dNum+'.style'); else allDivs[dNum]=eval('document.layers["sDiv'+dNum+'"]'); } } function firework(){ //below code detects the browser dimenions if (ie){ documentWidth=document.body.clientWidth documentHeight=document.body.clientHeight leftcorner=document.body.scrollLeft topcorner=document.body.scrollTop } else if (ns){ documentWidth=window.innerWidth documentHeight=window.innerHeight leftcorner=pageXOffset topcorner=pageYOffset } //below code randomly generates a set of coordinates that fall within the dimension randomx=leftcorner+Math.floor(Math.random()*docume ntWidth) randomy=topcorner+Math.floor(Math.random()*documen tHeight) 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.scrollTo p)) tempy=document.body.offsetHeight+document.body.scr ollTop-80; if(tempx+80>(document.body.offsetWidth+document.body.scrollLef t)) tempx=document.body.offsetWidth+document.body.scro llLeft-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> </body> </html> <!--END CODE - Powered java script code by Only the registered members can see the link (Only the registered members can see the link)--> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
29-11-08, 22:38
اینم یه نمونه ستاره بارون دیگه در وبلاگتون.با این کد ستاره هایی در وبلاگتون ایجاد میشه که حرکت می کنند(در پشت زمینه ی سیاه).اینم خیلی خوشگله.
برای مشاهده ی کد به لینک زیر مراجعه کنید
Only the registered members can see the link
اینم کدش:

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <!--Powered javascript code by Only the registered members can see the link (Only the registered members can see the link)--> <FONT face=Tahoma color=white> <html> <head> </head> <body> <BODY BGCOLOR="#000000" onLoad="fly()"> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin SmallStars = 30; LargeStars = 10; SmallYpos = new Array(); SmallXpos = new Array(); LargeYpos = new Array(); LargeXpos = new Array(); Smallspeed= new Array(); Largespeed= new Array(); ns=(document.layers)?1:0; if (ns) { for (i = 0; i < SmallStars; i++) { document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFF0' CLIP='0,0,1,1'></LAYER>"); } for (i = 0; i < LargeStars; i++) { document.write("<LAYER NAME='ln"+i+"' LEFT=0 TOP=0 BGCOLOR='#FFFFFF' CLIP='0,0,2,2'></LAYER>"); } } else { document.write('<div style="position:absolute;top:0px;left:0px">'); document.write('<div style="position:relative">'); for (i = 0; i < SmallStars; i++) { document.write('<div id="si" style="position:absolute;top:0;left:0;width:1px;height:1p x;background:#fffff0;font-size:1px"></div>'); } document.write('</div>'); document.write('</div>'); document.write('<div style="position:absolute;top:0px;left:0px">'); document.write('<div style="position:relative">'); for (i = 0; i < LargeStars; i++) { document.write('<div id="li" style="position:absolute;top:0;left:0;width:2px;height:2p x;background:#ffffff;font-size:2px"></div>'); } document.write('</div>'); document.write('</div>'); } WinHeight = (document.layers)?window.innerHeight:window.docume nt.body.clientHeight; WinWidth = (document.layers)?window.innerWidth:window.documen t.body.clientWidth; for (i = 0; i < SmallStars; i++) { SmallYpos[i] = Math.round(Math.random() * WinHeight); SmallXpos[i] = Math.round(Math.random() * WinWidth); Smallspeed[i]= Math.random() * 5 + 1; } for (i = 0; i < LargeStars; i++) { LargeYpos[i] = Math.round(Math.random() * WinHeight); LargeXpos[i] = Math.round(Math.random() * WinWidth); Largespeed[i] = Math.random() * 10 + 5; } function fly() { var WinHeight = (document.layers)?window.innerHeight:window.docume nt.body.clientHeight; var WinWidth = (document.layers)?window.innerWidth:window.documen t.body.clientWidth; var hscrll = (document.layers)?window.pageYOffset:document.body .scrollTop; var wscrll = (document.layers)?window.pageXOffset:document.body .scrollLeft; for (i = 0; i < LargeStars; i++) { LargeXpos[i] -= Largespeed[i]; if (LargeXpos[i] < -10) { LargeXpos[i] = WinWidth; LargeYpos[i] = Math.round(Math.random() * WinHeight); Largespeed[i] = Math.random() * 10 + 5; } if (ns) { document.layers['ln'+i].left = LargeXpos[i]; document.layers['ln'+i].top = LargeYpos[i] + hscrll; } else { li[i].style.pixelLeft = LargeXpos[i]; li[i].style.pixelTop = LargeYpos[i] + hscrll; } } for (i = 0; i < SmallStars; i++) { SmallXpos[i] -= Smallspeed[i]; if (SmallXpos[i] < -10) { SmallXpos[i] = WinWidth; SmallYpos[i] = Math.round(Math.random()*WinHeight); Smallspeed[i] = Math.random() * 5 + 1; } if (ns) { document.layers['sn'+i].left = SmallXpos[i]; document.layers['sn'+i].top = SmallYpos[i]+hscrll; } else { si[i].style.pixelLeft = SmallXpos[i]; si[i].style.pixelTop = SmallYpos[i]+hscrll; } } setTimeout('fly()', 10); } // End --> </script> <!-- Script Size: 3.79 KB --> </body> </html> <!--Powered javascript code by Only the registered members can see the link (Only the registered members can see the link)--> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
29-11-08, 22:39
این کد هم باعث میشه چندتا قلب خوشگل و قشنگ به دور موس شما بچرخند.این یکی خیلی خیلی باحاله.
برای مشاهده ی کد روی لینک زیر کلیک کنید.
Only the registered members can see the link
اینم کدش:

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <div id="dot0" style="position: absolute; visibility: hidden; height: 11; width: 11;"> <img src="Only the registered members can see the link" height=11 width=11> </div> <div id="dot1" style="position: absolute; height: 11; width: 11;"> <img src="Only the registered members can see the link" height=11 width=11> </div> <div id="dot2" style="position: absolute; height: 11; width: 11;"> <img src="Only the registered members can see the link" height=11 width=11> </div> <div id="dot3" style="position: absolute; height: 11; width: 11;"> <img src="Only the registered members can see the link" height=11 width=11> </div> <div id="dot4" style="position: absolute; height: 11; width: 11;"> <img src="Only the registered members can see the link" height=11 width=11> </div> <div id="dot5" style="position: absolute; height: 11; width: 11;"> <img src="Only the registered members can see the link" height=11 width=11> </div> <div id="dot6" style="position: absolute; height: 11; width: 11;"> <img src="Only the registered members can see the link" height=11 width=11> </div> <script LANGUAGE="JavaScript"> <!-- hide code var nDots = 7; var Xpos = 0; var Ypos = 0; // fixed time step, no relation to real time var DELTAT = .01; // size of one spring in pixels var SEGLEN = 10; // spring constant, stiffness of springs var SPRINGK = 10; // all the physics is bogus, just picked stuff to // make it look okay var MASS = 1; // Positive XGRAVITY pulls right, negative pulls left // Positive YGRAVITY pulls down, negative up var XGRAVITY = 0; var YGRAVITY = 50; // RESISTANCE determines a slowing force proportional to velocity var RESISTANCE = 10; // stopping criterea to prevent endless jittering // doesn't work when sitting on bottom since floor // doesn't push back so acceleration always as big // as gravity var STOPVEL = 0.1; var STOPACC = 0.1; var DOTSIZE = 11; // BOUNCE is percent of velocity retained when // bouncing off a wall var BOUNCE = 0.75; var isNetscape = navigator.appName=="Netscape"; // always on for now, could be played with to // let dots fall to botton, get thrown, etc. var followmouse = true; var dots = new Array(); init(); function init() { var i = 0; for (i = 0; i < nDots; i++) { dots[i] = new dot(i); } if (!isNetscape) { // I only know how to read the locations of the // <LI> items in IE //skip this for now // setInitPositions(dots) } // set their positions for (i = 0; i < nDots; i++) { dots[i].obj.left = dots[i].X; dots[i].obj.top = dots[i].Y; } if (isNetscape) { // start right away since they are positioned // at 0, 0 startanimate(); } else { // let dots sit there for a few seconds // since they're hiding on the real bullets setTimeout("startanimate()", 1000); } } function dot(i) { this.X = Xpos; this.Y = Ypos; this.dx = 0; this.dy = 0; if (isNetscape) { this.obj = eval("document.dot" + i); } else { this.obj = eval("dot" + i + ".style"); } } function startanimate() { setInterval("animate()", 20); } // This is to line up the bullets with actual LI tags on the page // Had to add -DOTSIZE to X and 2*DOTSIZE to Y for IE 5, not sure why // Still doesn't work great function setInitPositions(dots) { // initialize dot positions to be on top // of the bullets in the <ul> var startloc = document.all.tags("LI"); var i = 0; for (i = 0; i < startloc.length && i < (nDots - 1); i++) { dots[i+1].X = startloc[i].offsetLeft startloc[i].offsetParent.offsetLeft - DOTSIZE; dots[i+1].Y = startloc[i].offsetTop + startloc[i].offsetParent.offsetTop + 2*DOTSIZE; } // put 0th dot above 1st (it is hidden) dots[0].X = dots[1].X; dots[0].Y = dots[1].Y - SEGLEN; } // just save mouse position for animate() to use function MoveHandler(e) { Xpos = e.pageX; Ypos = e.pageY; return true; } // just save mouse position for animate() to use function MoveHandlerIE() { Xpos = window.event.x + document.body.scrollLeft; Ypos = window.event.y + document.body.scrollTop; } if (isNetscape) { document.captureEvents(Event.MOUSEMOVE); document.onMouseMove = MoveHandler; } else { document.onmousemove = MoveHandlerIE; } function vec(X, Y) { this.X = X; this.Y = Y; } // adds force in X and Y to spring for dot[i] on dot[j] function springForce(i, j, spring) { var dx = (dots[i].X - dots[j].X); var dy = (dots[i].Y - dots[j].Y); var len = Math.sqrt(dx*dx + dy*dy); if (len > SEGLEN) { var springF = SPRINGK * (len - SEGLEN); spring.X += (dx / len) * springF; spring.Y += (dy / len) * springF; } } function animate() { // dots[0] follows the mouse, // though no dot is drawn there var start = 0; if (followmouse) { dots[0].X = Xpos; dots[0].Y = Ypos; start = 1; } for (i = start ; i < nDots; i++ ) { var spring = new vec(0, 0); if (i > 0) { springForce(i-1, i, spring); } if (i < (nDots - 1)) { springForce(i+1, i, spring); } // air resisitance/friction var resist = new vec(-dots[i].dx * RESISTANCE, -dots[i].dy * RESISTANCE); // compute new accel, including gravity var accel = new vec((spring.X + resist.X)/MASS + XGRAVITY, (spring.Y + resist.Y)/ MASS + YGRAVITY); // compute new velocity dots[i].dx += (DELTAT * accel.X); dots[i].dy += (DELTAT * accel.Y); // stop dead so it doesn't jitter when nearly still if (Math.abs(dots[i].dx) < STOPVEL && Math.abs(dots[i].dy) < STOPVEL && Math.abs(accel.X) < STOPACC && Math.abs(accel.Y) < STOPACC) { dots[i].dx = 0; dots[i].dy = 0; } // move to new position dots[i].X += dots[i].dx; dots[i].Y += dots[i].dy; // get size of window var height, width; if (isNetscape) { height = window.innerHeight + window.pageYOffset; width = window.innerWidth + window.pageXOffset; } else { height = document.body.clientHeight + document.body.scrollTop; width = document.body.clientWidth + document.body.scrollLeft; } // bounce off 3 walls (leave ceiling open) if (dots[i].Y >= height - DOTSIZE - 1) { if (dots[i].dy > 0) { dots[i].dy = BOUNCE * -dots[i].dy; } dots[i].Y = height - DOTSIZE - 1; } if (dots[i].X >= width - DOTSIZE) { if (dots[i].dx > 0) { dots[i].dx = BOUNCE * -dots[i].dx; } dots[i].X = width - DOTSIZE - 1; } if (dots[i].X < 0) { if (dots[i].dx < 0) { dots[i].dx = BOUNCE * -dots[i].dx; } dots[i].X = 0; } // move img to new position dots[i].obj.left = dots[i].X; dots[i].obj.top = dots[i].Y; } } // end code hiding --> </script> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
29-11-08, 22:39
می خواهید در وبلاگتون باران بباره؟این کد کمکتون می کنه.با قرار دادن این کد در وبلاگتون باران می بارد.
برای مشاده ی کد به لینک زیر مراجعه کنید
Only the registered members can see the link
اینم کدش:

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <style> .drop { position: absolute; width: 3; filter: flipV(), flipH(); font-size: 40; color: blue } </style> <script language="javascript"> //Rain/Snow effect- By Craig Blanchettefarsidesign.com //Visit Only the registered members can see the link snow = false; // false-rain; true-snow snowsym = " * " //These are the symbols for each rainsym = " ' " //You can put images here. howmany = 10 //How many drops/snowflakes? /**************Do not need to change anything below***********/ if(snow){sym = snowsym; speed=1; angle=10; drops=howmany} else{sym = rainsym; speed=50; drops=howmany; angle=6} movex = -speed/angle; movey = speed; count = 0; function moverain(){ for(move = 0; move < drops; move++){ xx[move]+=movex; yy[move]+=mv[move]; hmm = Math.round(Math.random()*1); if(xx[move] < 0){xx[move] = maxx+10;} if(yy[move] > maxy){yy[move] = 10;} drop[move].left = xx[move] drop[move].top = yy[move]+document.body.scrollTop; }setTimeout('moverain()','1')} </script> <script language="javascript"> if (document.all){ drop = new Array(); xx = new Array(); yy = new Array(); mv = new Array() ly = "document.all[\'"; st = "\'].style" for(make = 0; make < drops; make++){ document.write('<div id="drop'+make+'" class=drop>'+sym+'</div>'); drop[make] = eval(ly+'drop'+make+st); maxx = document.body.clientWidth-40 maxy = document.body.clientHeight-40 xx[make] = Math.random()*maxx; yy[make] = -100-Math.random()*maxy; drop[make].left = xx[make] drop[make].top = yy[make] mv[make] = (Math.random()*5)+speed/4; drop[make].fontSize = (Math.random()*10)+20; if(snow){col = 'white'}else{col = 'blue'} drop[make].color = col; } window.onload=moverain } </script> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
29-11-08, 22:40
با این کد در وبلاگتون برف می باره.
جهت مشاهده ی کد به لینک زیر مراجعه کنید
Only the registered members can see the link (Only the registered members can see the link)
اینم کدش:

<!-- mobile:09370647814 --><!-- ID:shekaste_del72 --><!-- Only the registered members can see the link (Only the registered members can see the link) --><!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --><HTML><HEAD> <META Only the registered members can see the link content="text/html; charset=windows-1256"> <META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD> <BODY><A href="Only the registered members can see the link"><B>قالب وبلاگ و کد جاوا</B></A></FONT> <!-- Web Site: Only the registered members can see the link><!-- Only the registered members can see the link (Only the registered members can see the link) --> <SCRIPT> // Set the number of snowflakes (more than 30 - 40 not recommended) var snowmax=35 // Set the colors for the snow. Add as many colors as you like var snowcolor=new Array("#aaaacc","#ddddFF","#ccccDD") // Set the fonts, that create the snowflakes. Add as many fonts as you like var snowtype=new Array("Arial Black","Arial Narrow","Times","Comic Sans MS") // Set the letter that creates your snowflake (recommended:*) var snowletter="*" // Set the speed of sinking (recommended values range from 0.3 to 2) var sinkspeed=0.6 // Set the maximal-size of your snowflaxes var snowmaxsize=22 // Set the minimal-size of your snowflaxes var snowminsize=8 // Set the snowing-zone // Set 1 for all-over-snowing, set 2 for left-side-snowing // Set 3 for center-snowing, set 4 for right-side-snowing var snowingzone=3 /////////////////////////////////////////////////////////////////////////// // CONFIGURATION ENDS HERE /////////////////////////////////////////////////////////////////////////// // Do not edit below this line var snow=new Array() var marginbottom var marginright var timer var i_snow=0 var x_mv=new Array(); var crds=new Array(); var lftrght=new Array(); var browserinfos=navigator.userAgent var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/) var ns6=document.getElementById&&!document.all var opera=browserinfos.match(/Opera/) var browserok=ie5||ns6||opera function randommaker(range) { rand=Math.floor(range*Math.random()) return rand } function initsnow() { if (ie5 || opera) { marginbottom = document.body.clientHeight marginright = document.body.clientWidth } else if (ns6) { marginbottom = window.innerHeight marginright = window.innerWidth } var snowsizerange=snowmaxsize-snowminsize for (i=0;i<=snowmax;i++) { crds[i] = 0; lftrght[i] = Math.random()*15; x_mv[i] = 0.03 + Math.random()/10; snow[i]=document.getElementById("s"+i) snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)] snow[i].size=randommaker(snowsizerange)+snowminsize snow[i].style.fontSize=snow[i].size snow[i].style.color=snowcolor[randommaker(snowcolor.length)] snow[i].sink=sinkspeed*snow[i].size/5 if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size) snow[i].style.left=snow[i].posx snow[i].style.top=snow[i].posy } movesnow() } function movesnow() { for (i=0;i<=snowmax;i++) { crds[i] += x_mv[i]; snow[i].posy+=snow[i].sink snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i]); snow[i].style.top=snow[i].posy if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){ if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)} if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)} if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4} if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2} snow[i].posy=0 } } var timer=setTimeout("movesnow()",50) } for (i=0;i<=snowmax;i++) { document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>") } if (browserok) { window.onload=initsnow } </SCRIPT> <!-- mobile:09370647814 --><!-- ID:shekaste_del72 --><!-- Only the registered members can see the link (Only the registered members can see the link) --><!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --></BODY></HTML>

masoureh
29-11-08, 22:40
با این کد یه لینک در وبلاگ ایجاد میشه که به بازدیدکننده پیشنهاد می کنه این وبلاگ رو صفحه ی خانگی خودت کن.
جهت مشاهده ی کد به لینک زیر مراجعه کنید
Only the registered members can see the link (Only the registered members can see the link)
اینم کدش:

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <A href="javascript:history.go(0)" onClick="javascript:this.style.behavior='url(#default#homep age)';this.setHomePage('URL');" TARGET="_self"><b>این صفحه را صفحه ی خانگی خود کنید</b></A></body></html> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
29-11-08, 22:41
اینم برای ورود به وبلاگ یه ÷یام خوش آمدگویی و هنگام خروج یه ÷یام خداحافظی به بازدیدکننده میده
اینم کدش

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <script language="javascript" type="text/javascript"> alert('سلام عزیز.خوش اومدی.نظر یادت نره') </script> <html> <head> </head> <body onUnload="alert('به این زودی کجا میری؟بازم بیا.دوست دارم.بای')"> </body> </html> </SCRIPT> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
29-11-08, 22:42
تا حالا دیدید تو بعضی وبلاگ ها در نوار وضعیتشون یعنی اون پایین مرورگر اینترنتیشون یه متن میاد؟
این کد هم همین کار رو انجام میده.
جهت مشاهده ی کد به لینک زیر مراجعه کنید و به اون پایین صفحه ی اینترنتیتون توجه کنید
Only the registered members can see the link peyam-navar.persianblog.ir
اینم کدش:

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <script language="JavaScript"> <!-- /* Slowly coming together status bar scroller Written by BengalBoy (Only the registered members can see the link (Only the registered members can see the link)) Visit Only the registered members can see the link for this script and more */ //set message: msg = "متن شما در اینجا"; 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> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
29-11-08, 22:42
با این کد چند ستاره دور موس می چرخند
برای مشاهده ی کد به لینک زیر مراجعه کنید
Only the registered members can see the link
اینم کدش:

<!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com --> <script language="JavaScript"> <!--/*visit Only the registered members can see the link*/ (Only the registered members can see the link*/) if (document.all){document.write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">') for (xy=0;xy<7;xy++) document.write('<div style="position:relative;width:3px;height:3px;background: #FFFF00;font-size:2px;visibility:visible"></div>') document.write('</div>') } if (document.layers) {window.captureEvents(Event.MOUSEMOVE);} var yBase = 200; var xBase = 200; var yAmpl = 10; var yMax = 40; var step = .2; var ystep = .5; var currStep = 0; var tAmpl=1; var Xpos = 1; var Ypos = 1; var i = 0; var j = 0; if (document.all) { function MoveHandler(){ Xpos = document.body.scrollLeft+event.x; Ypos = document.body.scrollTop+event.y; } document.onmousemove = MoveHandler; } else if (document.layers) { function xMoveHandler(evnt){ Xpos = evnt.pageX; Ypos = evnt.pageY; } window.onMouseMove = xMoveHandler; } function animateLogo() { if (document.all) { yBase = window.document.body.offsetHeight/4; xBase = window.document.body.offsetWidth/4; } else if (document.layers) { yBase = window.innerHeight/4 ; xBase = window.innerWidth/4; } if (document.all) { var totaldivs=document.all.starsDiv.all.length for ( i = 0 ; i < totaldivs ; i++ ) { var tempdiv=document.all.starsDiv.all[i].style tempdiv.top = Ypos + Math.cos((20*Math.sin(currStep/20))+i*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10); tempdiv.left = Xpos + Math.sin((20*Math.sin(currStep/20))+i*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10); } } else if (document.layers) { for ( j = 0 ; j < 7 ; j++ ) { var templayer="a"+j document.layers[templayer].top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10); document.layers[templayer].left =Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10); } } currStep += step; setTimeout("animateLogo()", 15); } animateLogo(); // --> </script> <!-- mobile:09370647814 --> <!-- ID:shekaste_del72 --> <!-- Only the registered members can see the link (Only the registered members can see the link) --> <!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

masoureh
01-12-08, 12:01
سلام دوستان.حتما تا حالا دیدید که وارد یه وبلاگ میشید که یه پرده ی سیاه کشیده و تا زمانی که روی یک عکس یا یک نوشته کلیک نکنید پرده ی سیاه نمی رود و وارد سایت یا وبلاگ نمی شوید و وقتی کلیک کردید این پرده برداشته می شود و وبلاگ مشاهده می شود.
این کد در جاهای زیای کاربرد داره.بهترین کاربردش برای کدها تبلیغاتی است.مثلا وقتی یه تبلیغ از سایت اکسین ادز می گذارید کسی دلش
نمی سوزه که کلیک کنه و شما کسب درآمد کنید.با گذاشتن این کد،او(بازدیدکننده)مجبور می شود روی تبلیغ کلیک کند.
اين كد رو بايد در اولين سطر قبل از تگ بسته body قرار بديد
اینم کدش

<!-- mobile:09370647814 -->
<!-- ID:shekaste_del72 -->
<!-- Only the registered members can see the link (Only the registered members can see the link) -->
<!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->
<script>disp=1;function
w() {
document.getElementById('boxFloater').style.displa y='none';disp=0;
}function jmove(){if
(disp==1){window.scrollTo(0,0);}}jmove();window.on scroll=jmove;</script>
<div
id="boxFloater"
style="position:absolute;left:0;top:0;width:101.9%;height :100%;font-family:Tahoma;font-size:8pt">
<br><div
style="position:absolute;left:0;top:0;background-color:#000000;width:100%;height:100%;FILTER:alpha( opacity=85)"></div>
<br><div
style="position:absolute;left:0;top:0;width:100%;height:1 00%;FILTER:alpha(opacity=100)">
<br><table
width="100%" style="color:#ffffff;margin-top:50px;"><tr><td
align="center"
width="100%"><br><br><br><br><br><font
size="2" color="#FFFFFF" dir="rtl"> .: سلام دوست عزيز.به وبلاگ من خوش امدي
:.<p>.: براي برداشته شدن پرده ي سياه و ورود به وبلاگ روي بنر زير کليک
???I :.<p>This Code Edited By : <a
href="Only the registered members can see the link"
target=_blank><b><font color="#FFFF00">theam.parsiblog.com</font></b></a></font><div
onClick="w();" style="width:120px;height:468px"><p>
<br><a href="آدرس سايت" target="_blank"><img border="0"
src="آدرس عکس بنر تبليغاتي"></a>
<br><a href="درس سايت شماره 2" target="_blank"><img
border="0" src="آدرس عکس بنر تبليغاتي شماره 2"></a>
<br></div></td></tr></table></div></div>
<br></div>
<a href="Only the registered members can see the link"target=_blank><img src="Only the registered members can see the link" border="0" alt="click kon" /></a><br />
<!-- mobile:09370647814 -->
<!-- ID:shekaste_del72 -->
<!-- Only the registered members can see the link (Only the registered members can see the link) -->
<!-- © This Template Designed By Mohamad Bagheri-mobile:09370647814 - theam.parsiblog.com -->

برای مشاهده ی نمونه اینجا کلیک کنید (Only the registered members can see the link)
دوستان شما بايد بجاي عبارت هاي " آدرس سايت " و همچنين " آدرس عکس بنر تبليغاتي " به ترتيب آدرس سايتي كه قرار است بازديدكننده اونجا رو ببينه و همچنين آدرس عکس بنر تبليغاتي خودتون رو توي كد قرار بديد

SOHR@B
01-12-08, 17:49
سلام دوست من
تویه سری از بازیها نوسته ها با کد های جاوا رنگی نوشته میشن
مثلا شما اگه تو جی جی ایدیت رو با کد جاوا بنیسی تو بازی رنگ ایدیت عوض میشه میتونی کد رنگها رو بهمون یاد بدی
اگه مفهوم نبود سوالم میتونم چند تا از اسمای رنگی رو واست بذارم