<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: AJAX banner rotation</title>
	<atom:link href="http://www.phpied.com/ajax-banner-rotation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpied.com/ajax-banner-rotation/</link>
	<description>Stoyan&#039;s blog about &#60;a href=&#34;/category/xhtml&#34; class=&#34;tag-minor&#34;&#62;(x)html(5)&#60;/a&#62;, &#60;a href=&#34;/category/ajax&#34; class=&#34;tag-major&#34;&#62;ajax&#60;/a&#62;, &#60;a href=&#34;/category/bookmarklets&#34; class=&#34;tag-major&#34;&#62;bookmarklets&#60;/a&#62;, &#60;a href=&#34;/category/browsers&#34; class=&#34;tag-minor&#34;&#62;browsers&#60;/a&#62;, &#60;a href=&#34;/category/css&#34; class=&#34;tag-normal&#34;&#62;css&#60;/a&#62;, &#60;a href=&#34;/category/firebug&#34; class=&#34;tag-minor&#34;&#62;firebug&#60;/a&#62;, &#60;a href=&#34;/category/javascript&#34; class=&#34;tag-numero-uno&#34;&#62;javascript&#60;/a&#62;, &#60;a href=&#34;/category/json&#34; class=&#34;tag-normal&#34;&#62;json&#60;/a&#62;, &#60;a href=&#34;/category/mdb2&#34; class=&#34;tag-minor&#34;&#62;mdb2&#60;/a&#62;, &#60;a href=&#34;/category/mysql&#34; class=&#34;tag-normal&#34;&#62;mysql&#60;/a&#62;, &#60;a href=&#34;/category/pear&#34; class=&#34;tag-numero-uno&#34;&#62;pear&#60;/a&#62;, &#60;a href=&#34;/category/performance&#34; class=&#34;tag-major&#34;&#62;performance&#60;/a&#62;, &#60;a href=&#34;/category/php&#34; class=&#34;tag-numero-uno&#34;&#62;php&#60;/a&#62;, &#60;a href=&#34;/category/phpbb&#34; class=&#34;tag-major&#34;&#62;phpbb&#60;/a&#62;, &#60;a href=&#34;/category/tools&#34; class=&#34;tag-normal&#34;&#62;tools&#60;/a&#62;, &#60;a href=&#34;/category/yslow&#34; class=&#34;tag-minor&#34;&#62;yslow&#60;/a&#62;, &#60;a href=&#34;/category/yui&#34; class=&#34;tag-normal&#34;&#62;yui&#60;/a&#62;, &#60;a href=&#34;/category/writing&#34; class=&#34;tag-minor&#34;&#62;writing&#60;/a&#62;, &#60;a href=&#34;/category/music&#34; class=&#34;tag-major&#34;&#62;music&#60;/a&#62;,... &#60;a href=&#34;/category/life-and-everything&#34; class=&#34;tag-normal&#34;&#62;life and everything&#60;/a&#62;.</description>
	<lastBuildDate>Sat, 11 Feb 2012 14:07:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.phpied.com/ajax-banner-rotation/#comment-81548</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 02 Feb 2012 21:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-banner-rotation/#comment-81548</guid>
		<description>[...]  [...]</description>
		<content:encoded><![CDATA[<p>[...]  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zero energy</title>
		<link>http://www.phpied.com/ajax-banner-rotation/#comment-81358</link>
		<dc:creator>zero energy</dc:creator>
		<pubDate>Wed, 18 Jan 2012 10:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-banner-rotation/#comment-81358</guid>
		<description>&lt;strong&gt;zero energy...&lt;/strong&gt;

[...]AJAX banner rotation / Stoyan&#039;s phpied.com[...]...</description>
		<content:encoded><![CDATA[<p><strong>zero energy&#8230;</strong></p>
<p>[...]AJAX banner rotation / Stoyan&#8217;s phpied.com[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Link Lizard</title>
		<link>http://www.phpied.com/ajax-banner-rotation/#comment-81347</link>
		<dc:creator>Link Lizard</dc:creator>
		<pubDate>Mon, 16 Jan 2012 19:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-banner-rotation/#comment-81347</guid>
		<description>&lt;strong&gt;Link Lizard...&lt;/strong&gt;

[...]AJAX banner rotation / Stoyan&#039;s phpied.com[...]...</description>
		<content:encoded><![CDATA[<p><strong>Link Lizard&#8230;</strong></p>
<p>[...]AJAX banner rotation / Stoyan&#8217;s phpied.com[...]&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: china hiphone</title>
		<link>http://www.phpied.com/ajax-banner-rotation/#comment-81089</link>
		<dc:creator>china hiphone</dc:creator>
		<pubDate>Tue, 03 Jan 2012 22:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-banner-rotation/#comment-81089</guid>
		<description>Dion Cahn</description>
		<content:encoded><![CDATA[<p>Dion Cahn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogs On Blogger Directory</title>
		<link>http://www.phpied.com/ajax-banner-rotation/#comment-78804</link>
		<dc:creator>Blogs On Blogger Directory</dc:creator>
		<pubDate>Fri, 07 Oct 2011 14:39:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-banner-rotation/#comment-78804</guid>
		<description>Was Already Using a Different Banner Rotator on My Site and this looks quite impressive, giving it a try.
Thanks.</description>
		<content:encoded><![CDATA[<p>Was Already Using a Different Banner Rotator on My Site and this looks quite impressive, giving it a try.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pull up banners</title>
		<link>http://www.phpied.com/ajax-banner-rotation/#comment-78210</link>
		<dc:creator>Pull up banners</dc:creator>
		<pubDate>Fri, 08 Jul 2011 07:27:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-banner-rotation/#comment-78210</guid>
		<description>When a company decides to order a banner it is very important to think of the best material to put their message on. Grommets can also be added in order to facilitate the hanging of the banner.</description>
		<content:encoded><![CDATA[<p>When a company decides to order a banner it is very important to think of the best material to put their message on. Grommets can also be added in order to facilitate the hanging of the banner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandra</title>
		<link>http://www.phpied.com/ajax-banner-rotation/#comment-77801</link>
		<dc:creator>sandra</dc:creator>
		<pubDate>Tue, 31 May 2011 13:02:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-banner-rotation/#comment-77801</guid>
		<description>Hi guys,

Can you tell me if it is possible to implement it on more than one page? If not, I will have to stick to my current banner rotator which gives me this possibility. I would like to have different types of banners on my website, not only this one: http://www.flashxml.net/banner-rotator.html which I however find very good. Waiting for your response. Thanks.</description>
		<content:encoded><![CDATA[<p>Hi guys,</p>
<p>Can you tell me if it is possible to implement it on more than one page? If not, I will have to stick to my current banner rotator which gives me this possibility. I would like to have different types of banners on my website, not only this one: <a href="http://www.flashxml.net/banner-rotator.html" rel="nofollow">http://www.flashxml.net/banner-rotator.html</a> which I however find very good. Waiting for your response. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 40 Best Ajax Tutorials &#124; stylishwebdesigner</title>
		<link>http://www.phpied.com/ajax-banner-rotation/#comment-77755</link>
		<dc:creator>40 Best Ajax Tutorials &#124; stylishwebdesigner</dc:creator>
		<pubDate>Fri, 20 May 2011 07:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-banner-rotation/#comment-77755</guid>
		<description>[...] Ajax Banner Rotation [...]</description>
		<content:encoded><![CDATA[<p>[...] Ajax Banner Rotation [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bpatrick</title>
		<link>http://www.phpied.com/ajax-banner-rotation/#comment-72233</link>
		<dc:creator>bpatrick</dc:creator>
		<pubDate>Sat, 30 Jan 2010 16:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-banner-rotation/#comment-72233</guid>
		<description>have a code to displays 40 banners one at a time it works but it only goes to the next banner when you enter the page or refresh the page does anyone know how to make it refresh to the next banner every 15 sec&#039;s ?

Here is the code
&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=K*/VaJHq/RQ&amp;subid=0&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;

It must be HTML and it cannot be script my website does not allow it 
any help would be appriciated</description>
		<content:encoded><![CDATA[<p>have a code to displays 40 banners one at a time it works but it only goes to the next banner when you enter the page or refresh the page does anyone know how to make it refresh to the next banner every 15 sec&#8217;s ?</p>
<p>Here is the code<br />
<a href="http://click.linksynergy.com/fs-bin/click?id=K*/VaJHq/RQ&amp;subid=0" rel="nofollow"></a></p>
<p>It must be HTML and it cannot be script my website does not allow it<br />
any help would be appriciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balazs Csaba</title>
		<link>http://www.phpied.com/ajax-banner-rotation/#comment-71982</link>
		<dc:creator>Balazs Csaba</dc:creator>
		<pubDate>Wed, 16 Dec 2009 14:32:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/ajax-banner-rotation/#comment-71982</guid>
		<description>my bad...
complete code follows:

$folder = &#039;images/&#039;;
$settings[&#039;img_ext&#039;] = array(&#039;.jpg&#039;,&#039;.gif&#039;,&#039;.png&#039;,&#039;.swf&#039;);
if (substr($folder,-1) != &#039;/&#039;) { $folder.=&#039;/&#039;; }
$flist = array();
foreach($settings[&#039;img_ext&#039;] as $ext)
{
    $tmp = glob($folder.&#039;*&#039;.$ext);
    if (is_array($tmp))
    {
    	$flist = array_merge($flist,$tmp);
    }
}
$banner_html = array();
if (count($flist))
{
	$filename = $folder.&quot;links.txt&quot;;
	$banners = file($filename);
	
	foreach ( $banners as $banner )
	{
		$banner_parts = explode(&quot; ==&gt; &quot;, $banner);
		$banner_img = $folder.$banner_parts[0];
		$banner_link = $banner_parts[1];
		
		$banner_just_img = &#039;&#039;;
		$banner_with_link = &#039;&lt;a href=&quot;&#039; . $banner_link . &#039;&quot; rel=&quot;nofollow&quot;&gt;&#039; . $banner_just_img . &#039;&lt;/a&gt;&#039;;
		$banner_html[] = $banner_with_link;
	}

} 
else
{
	$banner_html[] = &#039;&#039;;
}
$html = $banner_html[array_rand($banner_html)];

...and the xml is the same, so i won&#039;t write it down...</description>
		<content:encoded><![CDATA[<p>my bad&#8230;<br />
complete code follows:</p>
<p>$folder = &#8216;images/&#8217;;<br />
$settings['img_ext'] = array(&#8216;.jpg&#8217;,&#8217;.gif&#8217;,&#8217;.png&#8217;,&#8217;.swf&#8217;);<br />
if (substr($folder,-1) != &#8216;/&#8217;) { $folder.=&#8217;/'; }<br />
$flist = array();<br />
foreach($settings['img_ext'] as $ext)<br />
{<br />
    $tmp = glob($folder.&#8217;*&#8217;.$ext);<br />
    if (is_array($tmp))<br />
    {<br />
    	$flist = array_merge($flist,$tmp);<br />
    }<br />
}<br />
$banner_html = array();<br />
if (count($flist))<br />
{<br />
	$filename = $folder.&#8221;links.txt&#8221;;<br />
	$banners = file($filename);</p>
<p>	foreach ( $banners as $banner )<br />
	{<br />
		$banner_parts = explode(&#8221; ==&gt; &#8220;, $banner);<br />
		$banner_img = $folder.$banner_parts[0];<br />
		$banner_link = $banner_parts[1];</p>
<p>		$banner_just_img = &#8221;;<br />
		$banner_with_link = &#8216;<a href="' . $banner_link . '" rel="nofollow">&#8216; . $banner_just_img . &#8216;</a>&#8216;;<br />
		$banner_html[] = $banner_with_link;<br />
	}</p>
<p>}<br />
else<br />
{<br />
	$banner_html[] = &#8221;;<br />
}<br />
$html = $banner_html[array_rand($banner_html)];</p>
<p>&#8230;and the xml is the same, so i won&#8217;t write it down&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

