<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>پارسي تولز &#124; مركزبهترين كدهاي جاوااسكريپت و ابزاروب &#187; تعویض خودکار رنگ</title>
	<atom:link href="http://parsitools.ir/tag/%d8%aa%d8%b9%d9%88%d9%8a%d8%b6-%d8%ae%d9%88%d8%af%d9%83%d8%a7%d8%b1-%d8%b1%d9%86%da%af/feed" rel="self" type="application/rss+xml" />
	<link>http://parsitools.ir</link>
	<description>كدهاي جاوااسكريپت</description>
	<lastBuildDate>Fri, 25 Feb 2011 20:34:15 +0000</lastBuildDate>
	<language>fa</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>کد تعویض رنگ وبلاگ به آرامی</title>
		<link>http://parsitools.ir/1388/07/%d9%83%d8%af-%d8%aa%d8%b9%d9%88%d9%8a%d8%b6-%d8%b1%d9%86%da%af-%d9%88%d8%a8%d9%84%d8%a7%da%af-%d8%a8%d9%87-%d8%a2%d8%b1%d8%a7%d9%85%d9%8a.html</link>
		<comments>http://parsitools.ir/1388/07/%d9%83%d8%af-%d8%aa%d8%b9%d9%88%d9%8a%d8%b6-%d8%b1%d9%86%da%af-%d9%88%d8%a8%d9%84%d8%a7%da%af-%d8%a8%d9%87-%d8%a2%d8%b1%d8%a7%d9%85%d9%8a.html#comments</comments>
		<pubDate>Sat, 26 Sep 2009 10:27:37 +0000</pubDate>
		<dc:creator>مدیر 1</dc:creator>
				<category><![CDATA[بازی و سرگرمی]]></category>
		<category><![CDATA[كد جاوا اسكريپت]]></category>
		<category><![CDATA[كد های امكانات]]></category>
		<category><![CDATA[كد پس زمينه]]></category>
		<category><![CDATA[تعويض خودكار رنگ]]></category>
		<category><![CDATA[كد جديد]]></category>

		<guid isPermaLink="false">http://parsitools.ir/?p=264</guid>
		<description><![CDATA[این کد رنگ وبلاگ شما را به آرامی تعویض میکند و این کار موجب زیبایی وبلاگ شما میشود البته فقط در قالب های پیشفرض انجام می پذیرد &#60;script language=&#8221;JavaScript&#8221;&#62; &#60;!&#8211; //you can assign the initial color of the background here r=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%16 [...]]]></description>
			<content:encoded><![CDATA[<p>این کد رنگ وبلاگ شما را به آرامی تعویض میکند و این کار موجب زیبایی وبلاگ شما میشود</p>
<p>البته فقط در قالب های پیشفرض انجام می پذیرد</p>
<p><span id="more-264"></span></p>
<p><span id="more-262"> </span></p>
<table id="table1" style="border: 0px dotted #808080; font-size: 10pt; color: #000080; direction: ltr; font-family: Tahoma; text-align: left;" border="1" width="468">
<tbody>
<tr>
<td>&lt;script language=&#8221;JavaScript&#8221;&gt;<br />
&lt;!&#8211;<br />
//you can assign the initial color of the background here<br />
r=255;<br />
g=255;<br />
b=255;<br />
flag=0;<br />
t=new Array;<br />
o=new Array;<br />
d=new Array;</p>
<p>function hex(a,c)<br />
{<br />
t[a]=Math.floor(c/16)<br />
o[a]=c%16<br />
switch (t[a])<br />
{<br />
case 10:<br />
t[a]=&#8217;A';<br />
break;<br />
case 11:<br />
t[a]=&#8217;B';<br />
break;<br />
case 12:<br />
t[a]=&#8217;C';<br />
break;<br />
case 13:<br />
t[a]=&#8217;D';<br />
break;<br />
case 14:<br />
t[a]=&#8217;E';<br />
break;<br />
case 15:<br />
t[a]=&#8217;F';<br />
break;<br />
default:<br />
break;<br />
}<br />
switch (o[a])<br />
{<br />
case 10:<br />
o[a]=&#8217;A';<br />
break;<br />
case 11:<br />
o[a]=&#8217;B';<br />
break;<br />
case 12:<br />
o[a]=&#8217;C';<br />
break;<br />
case 13:<br />
o[a]=&#8217;D';<br />
break;<br />
case 14:<br />
o[a]=&#8217;E';<br />
break;<br />
case 15:<br />
o[a]=&#8217;F';<br />
break;<br />
default:<br />
break;<br />
}<br />
}</p>
<p>function ran(a,c)<br />
{<br />
if ((Math.random()&gt;2/3||c==0)&amp;&amp;c&lt;255)<br />
{<br />
c++<br />
d[a]=2;<br />
}<br />
else<br />
{<br />
if ((Math.random()&lt;=1/2||c==255)&amp;&amp;c&gt;0)<br />
{<br />
c&#8211;<br />
d[a]=1;<br />
}<br />
else d[a]=0;<br />
}<br />
return c<br />
}<br />
function do_it(a,c)<br />
{<br />
if ((d[a]==2&amp;&amp;c&lt;255)||c==0)<br />
{<br />
c++<br />
d[a]=2<br />
}<br />
else<br />
if ((d[a]==1&amp;&amp;c&gt;0)||c==255)<br />
{<br />
c&#8211;;<br />
d[a]=1;<br />
}<br />
if (a==3)<br />
{<br />
if (d[1]==0&amp;&amp;d[2]==0&amp;&amp;d[3]==0)<br />
flag=1<br />
}<br />
return c<br />
}<br />
function disco()<br />
{<br />
if (flag==0)<br />
{<br />
r=ran(1, r);<br />
g=ran(2, g);<br />
b=ran(3, b);<br />
hex(1,r)<br />
hex(2,g)<br />
hex(3,b)<br />
document.bgColor=&#8221;#&#8221;+t[1]+o[1]+t[2]+o[2]+t[3]+o[3]<br />
flag=50<br />
}<br />
else<br />
{<br />
r=do_it(1, r)<br />
g=do_it(2,g)<br />
b=do_it(3,b)<br />
hex(1,r)<br />
hex(2,g)<br />
hex(3,b)<br />
document.bgColor=&#8221;#&#8221;+t[1]+o[1]+t[2]+o[2]+t[3]+o[3]<br />
flag&#8211;<br />
}<br />
if (document.all)<br />
setTimeout(&#8216;disco()&#8217;,50)<br />
}<br />
//&#8211;&gt;<br />
&lt;/script&gt;<br />
&lt;body onload=&#8221;disco()&#8221;&gt;&lt;/body&gt;<br />
&lt;/html&gt;</td>
</tr>
</tbody>
</table>
<p align="justify"><span style="font-family: Tahoma;"><span style="color: #51535b;"><span style="font-family: Tahoma; font-size: xx-small;"><span style="color: #51535b;"><span style="font-family: Tahoma; font-size: xx-small;">موفق باشید</span></span></span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://parsitools.ir/1388/07/%d9%83%d8%af-%d8%aa%d8%b9%d9%88%d9%8a%d8%b6-%d8%b1%d9%86%da%af-%d9%88%d8%a8%d9%84%d8%a7%da%af-%d8%a8%d9%87-%d8%a2%d8%b1%d8%a7%d9%85%d9%8a.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

