<?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/"
	xmlns:series="http://unfoldingneurons.com/"
	>

<channel>
	<title>.:BB2k.org &#187; script</title>
	<atom:link href="http://bb2k.org/index.php/tag/script/feed" rel="self" type="application/rss+xml" />
	<link>http://bb2k.org</link>
	<description>Rien à dire</description>
	<lastBuildDate>Wed, 21 Sep 2011 12:53:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Rebidouille</title>
		<link>http://bb2k.org/index.php/2005/03/23/rebidouille</link>
		<comments>http://bb2k.org/index.php/2005/03/23/rebidouille#comments</comments>
		<pubDate>Wed, 23 Mar 2005 16:02:51 +0000</pubDate>
		<dc:creator>BB2k</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[citations]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Dotclear]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://bb2k.org/wordpress/?p=81</guid>
		<description><![CDATA[<p>Je me suis amusé a faire un petit javascript qui va modifier les propriétés du CSS pour changer la photo de la div du haut. Ca a l\'air de plutot pas mal marcher.</p> <p>Le code est dispo dans cet [...]]]></description>
			<content:encoded><![CDATA[<p>Aussitôt arrivé, aussitôt parti. J&#8217;ai remplacé le javascript par le plug-in <a href="http://www.bonjourlesmouettes.org/">citations</a> dans le quel j&#8217;ai foutu les URLs des images qui vont chatouiller un peu la feuille de style. C&#8217;est plus rapide et l&#8217;image s&#8217;affiche en même temps que le reste.</p>
]]></content:encoded>
			<wfw:commentRss>http://bb2k.org/index.php/2005/03/23/rebidouille/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bidouille</title>
		<link>http://bb2k.org/index.php/2005/03/23/bidouille</link>
		<comments>http://bb2k.org/index.php/2005/03/23/bidouille#comments</comments>
		<pubDate>Wed, 23 Mar 2005 11:51:52 +0000</pubDate>
		<dc:creator>BB2k</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[photo]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://bb2k.org/wordpress/?p=80</guid>
		<description><![CDATA[<p>Je me suis amusé a faire un petit javascript qui va modifier les propriétés du CSS pour changer la photo de la div du haut. Ca a l'air de plutot pas mal marcher.</p> <p>Le code est dispo dans cet [...]]]></description>
			<content:encoded><![CDATA[<p>Je me suis amusé a faire un petit javascript qui va modifier les propriétés du CSS pour changer la photo de la div du haut. Ca a l&#8217;air de plutot pas mal marcher.</p>
<p>Le code est dispo dans cet article.</p>
<p><span id="more-14"></span></p>
<p>Voila le code du bazar : C&#8217;est a mettre dans un fichier qui est à charger en mettant un onLoad=&nbsp;&raquo;setCss();&nbsp;&raquo; dans la balise background.</p>
<p><code><br />
var myimages=new Array();</p>
<p>function preloadimages(){<br />
    for (i=0;i&lt;preloadimages.arguments.length;i++){<br />
         myimages[i]=new Image()<br />
         myimages[i].src=preloadimages.arguments[i]<br />
     }<br />
 }</p>
<p>function get_random(i){<br />
     var ranNum= Math.round(Math.random()*i);<br />
     return ranNum;<br />
}</p>
<p>function setCss() {<br />
     var num=get_random(3);<br />
     preloadimages('images/fonds/'+'fond'+num+'.png',"","","");    </p>
<p>    document.getElementById("page").style.background='#FFFFFF url(images/fonds/'+'fond'+num+'.png'+')';<br />
    document.getElementById("page").style.backgroundRepeat='no-repeat';<br />
    document.getElementById("page").style.backgroundPosition='0px 15px';     return;<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://bb2k.org/index.php/2005/03/23/bidouille/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

