<?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: bgStretcher</title>
	<atom:link href="http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html</link>
	<description>A Whole Lot of AJAX!</description>
	<lastBuildDate>Wed, 01 Sep 2010 21:57:07 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Seth</title>
		<link>http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html/comment-page-1#comment-693</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Mon, 23 Aug 2010 12:45:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxblender.com/?p=981#comment-693</guid>
		<description>Great script but is there a possible way to make the script functional or at least make the background fit in mobile devices like the iPhone and iPad?</description>
		<content:encoded><![CDATA[<p>Great script but is there a possible way to make the script functional or at least make the background fit in mobile devices like the iPhone and iPad?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francesco</title>
		<link>http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html/comment-page-1#comment-681</link>
		<dc:creator>Francesco</dc:creator>
		<pubDate>Fri, 06 Aug 2010 22:27:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxblender.com/?p=981#comment-681</guid>
		<description>Some comments about bgstretcher: the script it&#039;s crazy cool, but I think it&#039;s better if the the script, when the image is clipped horizontally, keeps centered horizontally.. Is there a simple way to achieve that feature? 

Many thanks,</description>
		<content:encoded><![CDATA[<p>Some comments about bgstretcher: the script it&#8217;s crazy cool, but I think it&#8217;s better if the the script, when the image is clipped horizontally, keeps centered horizontally.. Is there a simple way to achieve that feature? </p>
<p>Many thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jen</title>
		<link>http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html/comment-page-1#comment-680</link>
		<dc:creator>jen</dc:creator>
		<pubDate>Mon, 02 Aug 2010 23:04:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxblender.com/?p=981#comment-680</guid>
		<description>Hi, thank you for sharing.
How would I add navigation to link each image without modifying the js?</description>
		<content:encoded><![CDATA[<p>Hi, thank you for sharing.<br />
How would I add navigation to link each image without modifying the js?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Melissa</title>
		<link>http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html/comment-page-1#comment-679</link>
		<dc:creator>Melissa</dc:creator>
		<pubDate>Wed, 28 Jul 2010 21:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxblender.com/?p=981#comment-679</guid>
		<description>I am attempting to use .bgstretcher with jQuery elements (lightbox and the accordion script) and they seem to cancel each other out (either the background image works and breaks the lightbox and accordion effect of the text, or the lightbox &amp; accordion works and the background doesn&#039;t).  Is there any way to bypass this?</description>
		<content:encoded><![CDATA[<p>I am attempting to use .bgstretcher with jQuery elements (lightbox and the accordion script) and they seem to cancel each other out (either the background image works and breaks the lightbox and accordion effect of the text, or the lightbox &amp; accordion works and the background doesn&#8217;t).  Is there any way to bypass this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html/comment-page-1#comment-687</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Mon, 26 Jul 2010 19:46:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxblender.com/?p=981#comment-687</guid>
		<description>How do I call this and change the image from a link? Instead of only images from on page load.</description>
		<content:encoded><![CDATA[<p>How do I call this and change the image from a link? Instead of only images from on page load.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seth</title>
		<link>http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html/comment-page-1#comment-676</link>
		<dc:creator>seth</dc:creator>
		<pubDate>Thu, 22 Jul 2010 13:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxblender.com/?p=981#comment-676</guid>
		<description>I know this is a little picky, but is there any possible way to do a preload on the image(s) that are being stretched?</description>
		<content:encoded><![CDATA[<p>I know this is a little picky, but is there any possible way to do a preload on the image(s) that are being stretched?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flyinasunbeam</title>
		<link>http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html/comment-page-1#comment-672</link>
		<dc:creator>flyinasunbeam</dc:creator>
		<pubDate>Wed, 14 Jul 2010 15:05:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxblender.com/?p=981#comment-672</guid>
		<description>Hello.
Very neat script.  I was wondering if there was a way to only get the photos to stretch to a certain point in the page (say leaving 150px at the bottom for a footer?).  Or is there any easy way to make a footer appear in front of the image?  I have been fiddling with this for some time and would welcome any ideas.  :]</description>
		<content:encoded><![CDATA[<p>Hello.<br />
Very neat script.  I was wondering if there was a way to only get the photos to stretch to a certain point in the page (say leaving 150px at the bottom for a footer?).  Or is there any easy way to make a footer appear in front of the image?  I have been fiddling with this for some time and would welcome any ideas.  :]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren - ajaxBlender</title>
		<link>http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html/comment-page-1#comment-673</link>
		<dc:creator>Darren - ajaxBlender</dc:creator>
		<pubDate>Mon, 12 Jul 2010 13:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxblender.com/?p=981#comment-673</guid>
		<description>Marcus, yes this is a solution too. thanks for posting it, but it may load your server if you  have a lot of traffic/visitors because passing images through a GD2 lib is not the most efficient method. if you still want to use PHP you could just output a random name of the image for example: 

&lt;code&gt;images: [&lt;?= $url_to_your_random_image_file ?&gt;]. &lt;/code&gt;

hope this helps too.</description>
		<content:encoded><![CDATA[<p>Marcus, yes this is a solution too. thanks for posting it, but it may load your server if you  have a lot of traffic/visitors because passing images through a GD2 lib is not the most efficient method. if you still want to use PHP you could just output a random name of the image for example: </p>
<p><code>images: [< ?= $url_to_your_random_image_file ?>]. </code></p>
<p>hope this helps too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus</title>
		<link>http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html/comment-page-1#comment-666</link>
		<dc:creator>Marcus</dc:creator>
		<pubDate>Thu, 08 Jul 2010 16:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxblender.com/?p=981#comment-666</guid>
		<description>Hi Darren- I tried a randomizing php script in the image array and it worked (faked the .php as the image source. All the images in the folder containing the php will randomly load on refresh.): 

 
	$(document).ready(function(){
        //  Initialize Backgound Stretcher	   
		$(document).bgStretcher({
			images: [&#039;images/index/random.php&#039;],
			imageWidth: 1344, imageHeight: 840
		});
		
		
	});
 

Here is the PHP script:
&lt;code&gt;
&lt;?php


       $folder = &#039;.&#039;;

   $extList = array();
       $extList[&#039;gif&#039;] = &#039;image/gif&#039;;
       $extList[&#039;jpg&#039;] = &#039;image/jpeg&#039;;
       $extList[&#039;jpeg&#039;] = &#039;image/jpeg&#039;;
       $extList[&#039;png&#039;] = &#039;image/png&#039;;


$img = null;

if (substr($folder,-1) != &#039;/&#039;) {
       $folder = $folder.&#039;/&#039;;
}

if (isset($_GET[&#039;img&#039;])) {
       $imageInfo = pathinfo($_GET[&#039;img&#039;]);
       if (
           isset( $extList[ strtolower( $imageInfo[&#039;extension&#039;] ) ] ) &amp;&amp;
       file_exists( $folder.$imageInfo[&#039;basename&#039;] )
   ) {
               $img = $folder.$imageInfo[&#039;basename&#039;];
       }
} else {
       $fileList = array();
       $handle = opendir($folder);
       while ( false !== ( $file = readdir($handle) ) ) {
               $file_info = pathinfo($file);
               if (
                   isset( $extList[ strtolower( $file_info[&#039;extension&#039;] ) ] )
               ) {
                       $fileList[] = $file;
               }
       }
       closedir($handle);

       if (count($fileList) &gt; 0) {
               $imageNumber = time() % count($fileList);
               $img = $folder.$fileList[$imageNumber];
       }
}

if ($img!=null) {
       $imageInfo = pathinfo($img);
       $contentType = &#039;Content-type: &#039;.$extList[ $imageInfo[&#039;extension&#039;] ];
       header ($contentType);
       readfile($img);
} else {
       if ( function_exists(&#039;imagecreate&#039;) ) {
               header (&quot;Content-type: image/png&quot;);
               $im = @imagecreate (100, 100)
                   or die (&quot;Cannot initialize new GD image stream&quot;);
               $background_color = imagecolorallocate ($im, 255, 255, 255);
               $text_color = imagecolorallocate ($im, 0,0,0);
               imagestring ($im, 2, 5, 5,  &quot;IMAGE ERROR&quot;, $text_color);
               imagepng ($im);
               imagedestroy($im);
       }
}

?&gt;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Darren- I tried a randomizing php script in the image array and it worked (faked the .php as the image source. All the images in the folder containing the php will randomly load on refresh.): </p>
<p>	$(document).ready(function(){<br />
        //  Initialize Backgound Stretcher<br />
		$(document).bgStretcher({<br />
			images: ['images/index/random.php'],<br />
			imageWidth: 1344, imageHeight: 840<br />
		});</p>
<p>	});</p>
<p>Here is the PHP script:<br />
<code><br />
< ?php</p>
<p>       $folder = '.';</p>
<p>   $extList = array();<br />
       $extList['gif'] = 'image/gif';<br />
       $extList['jpg'] = 'image/jpeg';<br />
       $extList['jpeg'] = 'image/jpeg';<br />
       $extList['png'] = 'image/png';</p>
<p>$img = null;</p>
<p>if (substr($folder,-1) != '/') {<br />
       $folder = $folder.'/';<br />
}</p>
<p>if (isset($_GET['img'])) {<br />
       $imageInfo = pathinfo($_GET['img']);<br />
       if (<br />
           isset( $extList[ strtolower( $imageInfo['extension'] ) ] ) &#038;&#038;<br />
       file_exists( $folder.$imageInfo['basename'] )<br />
   ) {<br />
               $img = $folder.$imageInfo['basename'];<br />
       }<br />
} else {<br />
       $fileList = array();<br />
       $handle = opendir($folder);<br />
       while ( false !== ( $file = readdir($handle) ) ) {<br />
               $file_info = pathinfo($file);<br />
               if (<br />
                   isset( $extList[ strtolower( $file_info['extension'] ) ] )<br />
               ) {<br />
                       $fileList[] = $file;<br />
               }<br />
       }<br />
       closedir($handle);</p>
<p>       if (count($fileList) > 0) {<br />
               $imageNumber = time() % count($fileList);<br />
               $img = $folder.$fileList[$imageNumber];<br />
       }<br />
}</p>
<p>if ($img!=null) {<br />
       $imageInfo = pathinfo($img);<br />
       $contentType = 'Content-type: '.$extList[ $imageInfo['extension'] ];<br />
       header ($contentType);<br />
       readfile($img);<br />
} else {<br />
       if ( function_exists('imagecreate') ) {<br />
               header ("Content-type: image/png");<br />
               $im = @imagecreate (100, 100)<br />
                   or die ("Cannot initialize new GD image stream");<br />
               $background_color = imagecolorallocate ($im, 255, 255, 255);<br />
               $text_color = imagecolorallocate ($im, 0,0,0);<br />
               imagestring ($im, 2, 5, 5,  "IMAGE ERROR", $text_color);<br />
               imagepng ($im);<br />
               imagedestroy($im);<br />
       }<br />
}</p>
<p>?></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajaxBlender.com</title>
		<link>http://www.ajaxblender.com/bgstretcher-jquery-stretch-background-plugin.html/comment-page-1#comment-658</link>
		<dc:creator>ajaxBlender.com</dc:creator>
		<pubDate>Fri, 02 Jul 2010 17:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ajaxblender.com/?p=981#comment-658</guid>
		<description>Rachel,

I’m glad you like the script. We are preparing a new version of bgStretcher and the new release will include this change. We will post it here once it is complete. Please post any other requests and we will try to include as many as possible in this (and/or future releases).

Thanks,

Alex</description>
		<content:encoded><![CDATA[<p>Rachel,</p>
<p>I’m glad you like the script. We are preparing a new version of bgStretcher and the new release will include this change. We will post it here once it is complete. Please post any other requests and we will try to include as many as possible in this (and/or future releases).</p>
<p>Thanks,</p>
<p>Alex</p>
]]></content:encoded>
	</item>
</channel>
</rss>
