يک سری کد برای کامل کردن وبلاگ خود/يک سری کد برای کامل کردن وبلاگ خودfairanblog.com کد ساعت های زنده دنیا Sun, 03 Aug 2008 21:42:25 GMT bia2codejava /?mode=DirectLink&id=298974 <p><strong>کد ساعت های زنده دنیا :<br /></strong><br /></p><p /><p align="center"><textarea style="width: 182px; height: 75px" name="S1" rows="1">&lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Language&quot; content=&quot;en-us&quot;&gt; &lt;meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 5.0&quot;&gt; &lt;meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1256&quot;&gt; &lt;title&gt;New Page 2&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;table border=&quot;0&quot; width=&quot;200&quot; cellspacing=&quot;0&quot; cellpadding=&quot;3&quot;&gt; &lt;form name=&quot;where&quot;&gt; &lt;tr&gt; &lt;td width=&quot;100%&quot;&gt; &lt;select name=&quot;city&quot; size=&quot;1&quot; onchange=&quot;updateclock(this);&quot;&gt; &lt;option value=&quot;&quot; selected&gt;Local time&lt;/option&gt; &lt;option value=&quot;0&quot;&gt;London GMT&lt;/option&gt; &lt;option value=&quot;1&quot;&gt;Rome&lt;/option&gt; &lt;option value=&quot;7&quot;&gt;Bangkok&lt;/option&gt; &lt;option value=&quot;8&quot;&gt;Hong Kong&lt;/option&gt; &lt;option value=&quot;9&quot;&gt;Tokyo&lt;/option&gt; &lt;option value=&quot;10&quot;&gt;Sydney&lt;/option&gt; &lt;option value=&quot;12&quot;&gt;Fiji&lt;/option&gt; &lt;option value=&quot;-10&quot;&gt;Hawaii&lt;/option&gt; &lt;option value=&quot;-8&quot;&gt;San Francisco&lt;/option&gt; &lt;option value=&quot;-5&quot;&gt;New York&lt;/option&gt; &lt;option value=&quot;-3&quot;&gt;Buenos Aires&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width=&quot;100%&quot;&gt; &lt;script language=&quot;JavaScript&quot;&gt; /* Drop Down World Clock- By Learn iran (http://www.webloger.5u.com) Portions of code by Kurt @ http://www.webloger.5u.com/ This credit notice must stay intact */ if (document.all||document.getElementById) document.write('&lt;span id=&quot;worldclock&quot; style=&quot;font:bold 16px Arial;&quot;&gt;&lt;/span&gt;&lt;br&gt;') zone=0; isitlocal=true; ampm=''; function updateclock(z){ zone=z.options[z.selectedIndex].value; isitlocal=(z.options[0].selected)?true:false; } function WorldClock(){ now=new Date(); ofst=now.getTimezoneOffset()/60; secs=now.getSeconds(); sec=-1.57+Math.PI*secs/30; mins=now.getMinutes(); min=-1.57+Math.PI*mins/30; hr=(isitlocal)?now.getHours():(now.getHours() + parseInt(ofst)) + parseInt(zone); hrs=-1.575+Math.PI*hr/6+Math.PI*parseInt(now.getMinutes())/360; if (hr &lt; 0) hr+=24; if (hr &gt; 23) hr-=24; ampm = (hr &gt; 11)?&quot;PM&quot;:&quot;AM&quot;; statusampm = ampm.toLowerCase(); hr2 = hr; if (hr2 == 0) hr2=12; (hr2 &lt; 13)?hr2:hr2 %= 12; if (hr2&lt;10) hr2=&quot;0&quot;+hr2 var finaltime=hr2+':'+((mins &lt; 10)?&quot;0&quot;+mins:mins)+':'+((secs &lt; 10)?&quot;0&quot;+secs:secs)+' '+statusampm; if (document.all) worldclock.innerHTML=finaltime else if (document.getElementById) document.getElementById(&quot;worldclock&quot;).innerHTML=finaltime else if (document.layers){ document.worldclockns.document.worldclockns2.document.write(finaltime) document.worldclockns.document.worldclockns2.document.close() } setTimeout('WorldClock()',1000); } window.onload=WorldClock //--&gt; &lt;/script&gt; &lt;!--Place holder for NS4 only--&gt; &lt;ilayer id=&quot;worldclockns&quot; width=100% height=35&gt;&lt;layer id=&quot;worldclockns2&quot; width=100% height=35 left=0 top=0 style=&quot;font:bold 16px Arial;&quot;&gt;&lt;/layer&gt;&lt;/ilayer&gt; &lt;p&gt; &lt;font face=&quot;arial&quot; size=&quot;-2&quot;&gt;This free script provided by &lt;a href=&quot;http://www.webloger.5u.com/&quot;&gt;webloger site&lt;/a&gt;&lt;/font&gt; &lt;/td&gt; &lt;/form&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt;</textarea></p> کد گلباران در سایت Sun, 03 Aug 2008 21:40:08 GMT bia2codejava /?mode=DirectLink&id=298971 <p><strong>کد گلباران در سایت :<br /></strong></p><p align="center" /><p align="center"><textarea style="width: 182px; height: 75px" name="S1" rows="1">&lt;script language=&quot;JavaScript1.2&quot;&gt; //Pre-load your image below! grphcs=new Array(6) Image0=new Image(); Image0.src=grphcs[0]=&quot;http://home.ripway.com/2004-5/117697/1.gif&quot;; Image1=new Image(); Image1.src=grphcs[1]=&quot;http://home.ripway.com/2004-5/117697/2.gif&quot; Image2=new Image(); Image2.src=grphcs[2]=&quot;http://home.ripway.com/2004-5/117697/3.gif&quot; Image3=new Image(); Image3.src=grphcs[3]=&quot;http://home.ripway.com/2004-5/117697/4.gif&quot; Image4=new Image(); Image4.src=grphcs[4]=&quot;http://home.ripway.com/2004-5/117697/5.gif&quot; Image5=new Image(); Image5.src=grphcs[5]=&quot;http://home.ripway.com/2004-5/117697/6.gif&quot; Amount=8; //Smoothness depends on image file size, the smaller the size the more you can use! Ypos=new Array(); Xpos=new Array(); Speed=new Array(); Step=new Array(); Cstep=new Array(); ns=(document.layers)?1:0; ns6=(document.getElementById&amp;&amp;!document.all)?1:0; if (ns){ for (i = 0; i &lt; Amount; i++){ var P=Math.floor(Math.random()*grphcs.length); rndPic=grphcs[P]; document.write(&quot;&lt;LAYER NAME='sn&quot;+i+&quot;' LEFT=0 TOP=0&gt;&lt;img src=&quot;+rndPic+&quot;&gt;&lt;/LAYER&gt;&quot;); } } else{ document.write('&lt;div style=&quot;position:absolute;top:0px;left:0px&quot;&gt;&lt;div style=&quot;position:relative&quot;&gt;'); for (i = 0; i &lt; Amount; i++){ var P=Math.floor(Math.random()*grphcs.length); rndPic=grphcs[P]; document.write('&lt;img id=&quot;si'+i+'&quot; src=&quot;'+rndPic+'&quot; style=&quot;position:absolute;top:0px;left:0px&quot;&gt;'); } document.write('&lt;/div&gt;&lt;/div&gt;'); } WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight; WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth; for (i=0; i &lt; Amount; i++){ Ypos[i] = Math.round(Math.random()*WinHeight); Xpos[i] = Math.round(Math.random()*WinWidth); Speed[i]= Math.random()*5+3; Cstep[i]=0; Step[i]=Math.random()*0.1+0.05; } function fall(){ var WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight; var WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth; var hscrll=(ns||ns6)?window.pageYOffset:document.body.scrollTop; var wscrll=(ns||ns6)?window.pageXOffset:document.body.scrollLeft; for (i=0; i &lt; Amount; i++){ sy = Speed[i]*Math.sin(90*Math.PI/180); sx = Speed[i]*Math.cos(Cstep[i]); Ypos[i]+=sy; Xpos[i]+=sx; if (Ypos[i] &gt; WinHeight){ Ypos[i]=-60; Xpos[i]=Math.round(Math.random()*WinWidth); Speed[i]=Math.random()*5+3; } if (ns){ document.layers['sn'+i].left=Xpos[i]; document.layers['sn'+i].top=Ypos[i]+hscrll; } else if (ns6){ document.getElementById(&quot;si&quot;+i).style.left=Math.min(WinWidth,Xpos[i]); document.getElementById(&quot;si&quot;+i).style.top=Ypos[i]+hscrll; } else{ eval(&quot;document.all.si&quot;+i).style.left=Xpos[i]; eval(&quot;document.all.si&quot;+i).style.top=Ypos[i]+hscrll; } Cstep[i]+=Step[i]; } setTimeout('fall()',20); } window.onload=fall //--&gt; &lt;/script&gt;</textarea></p><p align="center"><img style="width: 32px; height: 25px" height="25" src="http://www.iranblog.com/smiley/14.gif" width="32" /></p> کد برف باران در سایت Sun, 03 Aug 2008 21:39:09 GMT bia2codejava /?mode=DirectLink&id=298970 <p>کد برف باران در سایت :<br />در var snowmax تعداد دانه های برف ( بین 30 تا 40 ) و در قسمت var snowcolor رنگ های دانه های برف رو انتخاب کنید . پیشنهاد می کنم اگر با کد رنگ ها آشنایی ندارید به قسمت رنگ دست نزنید و بذارد همون حالت پیش فرض بمونه . بقیه اطلاعات هم در متن کد آمده . اگه انگلیسیتون خوبه می تونید با راهنمایی هاش بقیه اجزا رو هم دست کاری کنید .<br /></p><p align="center" /><p align="center"><textarea style="width: 182px; height: 75px" name="S1" rows="1">&lt;script&gt; // 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(&quot;#aaaacc&quot;,&quot;#ddddFF&quot;,&quot;#ccccDD&quot;) // Set the fonts, that create the snowflakes. Add as many fonts as you like var snowtype=new Array(&quot;Arial Black&quot;,&quot;Arial Narrow&quot;,&quot;Times&quot;,&quot;Comic Sans MS&quot;) // Set the letter that creates your snowflake (recommended:*) var snowletter=&quot;*&quot; // 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&amp;&amp;document.getElementById&amp;&amp;!browserinfos.match(/Opera/) var ns6=document.getElementById&amp;&amp;!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&lt;=snowmax;i++) { crds[i] = 0; lftrght[i] = Math.random()*15; x_mv[i] = 0.03 + Math.random()/10; snow[i]=document.getElementById(&quot;s&quot;+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&lt;=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&gt;=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)&gt;(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(&quot;movesnow()&quot;,50) } for (i=0;i&lt;=snowmax;i++) { document.write(&quot;&lt;span id='s&quot;+i+&quot;' style='position:absolute;top:-&quot;+snowmaxsize+&quot;'&gt;&quot;+snowletter+&quot;&lt;/span&gt;&quot;) } if (browserok) { window.onload=initsnow } &lt;/script&gt;</textarea></p><p align="center"><img style="width: 36px; height: 27px" height="27" src="http://www.iranblog.com/smiley/14.gif" width="36" /></p> خوش آمد گویی به اسم Sun, 03 Aug 2008 21:37:11 GMT bia2codejava /?mode=DirectLink&id=298969 <p><strong>این کد باعث میشه که بازدید کننده تا میاد تو وبلاگتون اول اسمش ازش سوال میشه بعدش بهش خوش آمد گویی میشه .</strong><br /></p><p /><p align="center"><textarea style="width: 182px; height: 75px" name="S1" rows="1">&lt;HEAD&gt; &lt;SCRIPT LANGUAGE=&quot;Javascript&quot;&gt; &lt;!-- Begin var namePrompt = prompt(&quot;bebakhshid esme ghashangetoon chie???!!!???&quot;,&quot;&quot;); if (namePrompt == null || namePrompt == &quot;&quot;) namePrompt = &quot;azizam&quot;; function dispname (namePrompt) { document.write(&quot;&quot;+namePrompt+&quot;&quot;); } // End --&gt; &lt;/SCRIPT&gt; &lt;!-- CONTINUE --&gt; &lt;BODY&gt; &lt;CENTER&gt; &lt;SCRIPT LANGUAGE=&quot;Javascript&quot;&gt; &lt;!-- Begin document.write(&quot;&lt;font size=3 color=red&gt;khosh amadi &quot;); dispname(namePrompt); document.write(&quot; &lt;/font&gt;&quot;); // End --&gt; &lt;/SCRIPT&gt; &lt;/CENTER&gt;</textarea></p><p align="center"><img style="width: 32px; height: 27px" height="27" src="http://www.iranblog.com/smiley/14.gif" width="32" /></p> پرسيدن رنگ زمينه و نوشته ها Sun, 03 Aug 2008 21:35:49 GMT bia2codejava /?mode=DirectLink&id=298967 <p><strong>دوستان با استفاده از اين کد در هنگام ورود پيغامي براي کاربر مشاهدي ميشه که از او رنگ زمينه Back Ground و رنگ نوشته Text رو مي پرسه.<br /></strong><br /></p><p align="right" /><p align="center"><textarea style="width: 182px; height: 75px" name="S1" rows="1">&lt;HTML&gt; &lt;TITLE&gt;Color&lt;/TITLE&gt; &lt;FORM METHOD=&quot;post&quot; ACTION=&quot;/cgi-bin/joe.cgi&quot; AUTOCOMPLETE=&quot;off&quot;&gt; &lt;SCRIPT LANGUAGE=&quot;javascript&quot;&gt; //COPYRIGHT JOE BURNS var color = prompt (&quot;What color would you like the page background to be?&quot;,&quot;&quot;) var txtcolor = prompt (&quot;What color would you like the text to be?&quot;,&quot;&quot;) document.write (&quot;&lt;BODY BGCOLOR=&quot; +color+ &quot; TEXT=&quot; +txtcolor+ &quot;&gt;&quot;) defaultStatus=&quot;Here's your &quot; +color+ &quot; background and &quot; +txtcolor+ &quot; text&quot; &lt;/SCRIPT&gt; &lt;/HTML&gt; &lt;head&gt; &lt;STYLE TYPE=&quot;text/css&quot;&gt; BODY { scrollbar-base-color: orange; scrollbar-arrow-color: green; scrollbar-DarkShadow-Color: blue; } &lt;/STYLE&gt; &lt;/head&gt; &lt;body&gt; The #1 place for JavaScripts &lt;/body&gt;&lt;/html&gt;</textarea></p><p align="center"><img style="width: 32px; height: 28px" height="28" src="http://www.iranblog.com/smiley/14.gif" width="32" /></p>