<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : random logo css</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Tue, 07 Apr 2026 17:25:24 -0000</pubDate>

		<item>
			<title>elfrenazo</title>
			<description><![CDATA[<p>
	<span class="hps">very</span> <span class="hps">good code</span></p>
]]></description>
			<pubDate>Thu, 25 Oct 2012 05:49:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7167&d=0#post35918]]></link>
		</item>
		<item>
			<title>musashi9</title>
			<description><![CDATA[<p>
	Excelent works like a charm, thanks!</p>
]]></description>
			<pubDate>Fri, 19 Oct 2012 16:48:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7167&d=0#post35861]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[<p>
	Easiest solution is to use JavaScript:</p>
<pre class="brush:jscript;">
&lt;script type="text/javascript"&gt;
$(function() {
  var logos = ["../img/logo1.png", "../img/logo2.png", "../img/logo3.png"];
  $('#header').css('background-image', 'url(' + logos[Math.floor(Math.random()*logos.length)] + ')');
});
&lt;/script&gt;</pre>
<p>
	Put it in header.tpl, right before &lt;/head&gt;</p>
]]></description>
			<pubDate>Fri, 19 Oct 2012 16:30:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7167&d=0#post35860]]></link>
		</item>
		<item>
			<title>musashi9</title>
			<description><![CDATA[<p>
	Hello I want to load a random logo in my header but I have no idea how to</p>
<p>
	This is what I have in my css............</p>
<p>
	#header {<br />
	background: url(../img/logo2.png) no-repeat ;<br /><br />
	background-color: #113355;<br />
	     width:1000px;<br />
	     height:181px;<br />
	    height: 278px;<br />
	}</p>
<p>
	and this is from my header.tpl............</p>
<p>
	&lt;div id="header"&gt;<br />
	 </p>
<p>
	&lt;/div&gt;</p>
<p>
	How can I get it to load a random image ?</p>
]]></description>
			<pubDate>Fri, 19 Oct 2012 11:54:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7167&d=0#post35855]]></link>
		</item>
	</channel>
</rss>