<?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 for CSS-Plus</title>
	<atom:link href="http://css-plus.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://css-plus.com</link>
	<description>Dance with CSS and Javascript</description>
	<lastBuildDate>Wed, 22 Feb 2012 15:53:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Comment on jQuery if / else statements by cssplus-admin</title>
		<link>http://css-plus.com/2011/07/jquery-if-else-statements/#comment-5065</link>
		<dc:creator>cssplus-admin</dc:creator>
		<pubDate>Wed, 22 Feb 2012 15:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://css-plus.com/?p=240#comment-5065</guid>
		<description>This should work: 	
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;$(document).ready(function(){

	$(&quot;#jquery_jplayer_1&quot;).jPlayer({
		ready: function () {
			$(this).jPlayer(&quot;setMedia&quot;, {
				m4a: &quot;http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a&quot;,
				oga: &quot;http://www.jplayer.org/audio/ogg/Miaow-07-Bubble.ogg&quot;
			}).jPlayer(&quot;play&quot;);
		},
		ended: function (event) {
			$(&quot;#jquery_jplayer_2&quot;).jPlayer(&quot;play&quot;, 0); // This stops #jquery_jplayer_2 from playing
		},
		swfPath: &quot;js&quot;,
		supplied: &quot;m4a, oga&quot;
	})
	.bind($.jPlayer.event.play, function() { // Using a jPlayer event to avoid both jPlayers playing together.
			$(this).jPlayer(&quot;pauseOthers&quot;);
	});

	$(&quot;#jquery_jplayer_2&quot;).jPlayer({
		ready: function () {
			$(this).jPlayer(&quot;setMedia&quot;, {
				m4a: &quot;http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a&quot;,
				oga: &quot;http://www.jplayer.org/audio/ogg/Miaow-07-Bubble.ogg&quot;
			}).jPlayer(&quot;play&quot;);
		},
		ended: function (event) {
			$(&quot;#jquery_jplayer_1&quot;).jPlayer(&quot;play&quot;, 0); // This stops #jquery_jplayer_1 from playing
		},
		swfPath: &quot;js&quot;,
		supplied: &quot;m4a, oga&quot;
	})
	.bind($.jPlayer.event.play, function() { // Using a jPlayer event to avoid both jPlayers playing together.
			$(this).jPlayer(&quot;pauseOthers&quot;);
	});

});&lt;/code&gt;&lt;/pre&gt;
I&#039;ve added a comments in the js so you can see what&#039;s going on.</description>
		<content:encoded><![CDATA[<p>This should work: 	</p>
<pre><code class="language-javascript">$(document).ready(function(){

	$("#jquery_jplayer_1").jPlayer({
		ready: function () {
			$(this).jPlayer("setMedia", {
				m4a: "http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a",
				oga: "http://www.jplayer.org/audio/ogg/Miaow-07-Bubble.ogg"
			}).jPlayer("play");
		},
		ended: function (event) {
			$("#jquery_jplayer_2").jPlayer("play", 0); // This stops #jquery_jplayer_2 from playing
		},
		swfPath: "js",
		supplied: "m4a, oga"
	})
	.bind($.jPlayer.event.play, function() { // Using a jPlayer event to avoid both jPlayers playing together.
			$(this).jPlayer("pauseOthers");
	});

	$("#jquery_jplayer_2").jPlayer({
		ready: function () {
			$(this).jPlayer("setMedia", {
				m4a: "http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a",
				oga: "http://www.jplayer.org/audio/ogg/Miaow-07-Bubble.ogg"
			}).jPlayer("play");
		},
		ended: function (event) {
			$("#jquery_jplayer_1").jPlayer("play", 0); // This stops #jquery_jplayer_1 from playing
		},
		swfPath: "js",
		supplied: "m4a, oga"
	})
	.bind($.jPlayer.event.play, function() { // Using a jPlayer event to avoid both jPlayers playing together.
			$(this).jPlayer("pauseOthers");
	});

});</code></pre>
<p>I&#8217;ve added a comments in the js so you can see what&#8217;s going on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery if / else statements by cssplus-admin</title>
		<link>http://css-plus.com/2011/07/jquery-if-else-statements/#comment-5062</link>
		<dc:creator>cssplus-admin</dc:creator>
		<pubDate>Wed, 22 Feb 2012 15:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://css-plus.com/?p=240#comment-5062</guid>
		<description>Hey Travis, I&#039;ve &lt;a href=&quot;http://jsfiddle.net/jamygolden/fLbnA/&quot; rel=&quot;nofollow&quot;&gt;created a JSFiddle&lt;/a&gt; that does what you&#039;re explaining. Let me know if you need some explaining or if I&#039;ve misunderstood you.</description>
		<content:encoded><![CDATA[<p>Hey Travis, I&#8217;ve <a href="http://jsfiddle.net/jamygolden/fLbnA/" rel="nofollow">created a JSFiddle</a> that does what you&#8217;re explaining. Let me know if you need some explaining or if I&#8217;ve misunderstood you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery if / else statements by Andy</title>
		<link>http://css-plus.com/2011/07/jquery-if-else-statements/#comment-5055</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 22 Feb 2012 12:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://css-plus.com/?p=240#comment-5055</guid>
		<description>hi all, i&#039;m using a jQuery player for a client&#039;s site, and on some pages, I need to have multiple instances of the player. what i have right now is that if i press a play button, all 5 instances play simultaneously, so I need to figure out a way to play only one instance at a time. Originally the jQuery goes like this: 

&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;$(document).ready(function() {
        $(&quot;#jquery_jplayer_1&quot;).jPlayer({
            ready: function(event) {
                $(this).jPlayer(&quot;setMedia&quot;, {
                    mp3: &quot;http://somefile.mp3&quot;
                });
            },
            swfPath: &quot;http://www.jplayer.org/2.1.0/js&quot;,
            supplied: &quot;mp3&quot;
        });&lt;/code&gt;&lt;/pre&gt;

So I assumed by adding ids like &lt;code&gt;#jquery_jplayer_2&lt;/code&gt;, &lt;code&gt;#jquery_jplayer_3&lt;/code&gt;, etc. would make it work. But still all instances play simultaneously. Do you think the solution would be to use if statements, and if yes, could you please show me how? Thanks!</description>
		<content:encoded><![CDATA[<p>hi all, i&#8217;m using a jQuery player for a client&#8217;s site, and on some pages, I need to have multiple instances of the player. what i have right now is that if i press a play button, all 5 instances play simultaneously, so I need to figure out a way to play only one instance at a time. Originally the jQuery goes like this: </p>
<pre><code class="language-javascript">$(document).ready(function() {
        $("#jquery_jplayer_1").jPlayer({
            ready: function(event) {
                $(this).jPlayer("setMedia", {
                    mp3: "http://somefile.mp3"
                });
            },
            swfPath: "http://www.jplayer.org/2.1.0/js",
            supplied: "mp3"
        });</code></pre>
<p>So I assumed by adding ids like <code>#jquery_jplayer_2</code>, <code>#jquery_jplayer_3</code>, etc. would make it work. But still all instances play simultaneously. Do you think the solution would be to use if statements, and if yes, could you please show me how? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery if / else statements by Travis</title>
		<link>http://css-plus.com/2011/07/jquery-if-else-statements/#comment-5052</link>
		<dc:creator>Travis</dc:creator>
		<pubDate>Wed, 22 Feb 2012 12:00:23 +0000</pubDate>
		<guid isPermaLink="false">http://css-plus.com/?p=240#comment-5052</guid>
		<description>i have a div that toggles up and down and i want it so when you click anywhere outside of the div for it to toggle back up. this is what i got so far.

Any help would be appreciated.
&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;$(document).ready(function() {
		
		$(&quot;a.contact-btn&quot;).toggle(
      		function () {
       			 $(&quot;#contact&quot;).animate( {&quot;top&quot;: &quot;0&quot;}, 900, &quot;linear&quot; );
     		 },
      		function () {
        		$(&quot;#contact&quot;).animate( {&quot;top&quot;: &quot;-400px&quot;}, 900, &quot;linear&quot; );
    	});
    	  

		$(&#039;body&#039;).bind(&#039;click&#039;, function() {
			
			var position = $(&#039;#contact&#039;).css(&#039;marginTop&#039;);

			if ( position == &#039;-400px&#039;) {
				alert(&#039;margin top is equal to -400px&#039;)
			}

		});		
});&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>i have a div that toggles up and down and i want it so when you click anywhere outside of the div for it to toggle back up. this is what i got so far.</p>
<p>Any help would be appreciated.</p>
<pre><code class="language-javascript">$(document).ready(function() {

		$("a.contact-btn").toggle(
      		function () {
       			 $("#contact").animate( {"top": "0"}, 900, "linear" );
     		 },
      		function () {
        		$("#contact").animate( {"top": "-400px"}, 900, "linear" );
    	});

		$('body').bind('click', function() {

			var position = $('#contact').css('marginTop');

			if ( position == '-400px') {
				alert('margin top is equal to -400px')
			}

		});
});</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery if / else statements by cssplus-admin</title>
		<link>http://css-plus.com/2011/07/jquery-if-else-statements/#comment-4919</link>
		<dc:creator>cssplus-admin</dc:creator>
		<pubDate>Mon, 20 Feb 2012 06:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://css-plus.com/?p=240#comment-4919</guid>
		<description>&lt;pre&gt;&lt;code class=&quot;language-javascript&quot;&gt;$(&#039;#form-id&#039;).submit(function(e){
    if ( !$(&#039;#radio-button-id&#039;).is(&#039;:checked&#039;) ){
    	e.preventDefault();
    };
});&lt;/code&gt;&lt;/pre&gt;
Where &#039;form&#039; is your &#039;#form-id&#039; and &#039;#radio-button-id&#039; are the corresponding ID&#039;s.

The code says this:
On submit of the form, check to see if #radio-button-id is checked. If not, prevent the default functionality of the form ( aka don&#039;t submit ).</description>
		<content:encoded><![CDATA[<pre><code class="language-javascript">$('#form-id').submit(function(e){
    if ( !$('#radio-button-id').is(':checked') ){
    	e.preventDefault();
    };
});</code></pre>
<p>Where &#8216;form&#8217; is your &#8216;#form-id&#8217; and &#8216;#radio-button-id&#8217; are the corresponding ID&#8217;s.</p>
<p>The code says this:<br />
On submit of the form, check to see if #radio-button-id is checked. If not, prevent the default functionality of the form ( aka don&#8217;t submit ).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bulletproof full page background images don&#8217;t exist by cssplus-admin</title>
		<link>http://css-plus.com/2012/01/bulletproof-full-page-background-images/#comment-4917</link>
		<dc:creator>cssplus-admin</dc:creator>
		<pubDate>Mon, 20 Feb 2012 06:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://css-plus.com/?p=1393#comment-4917</guid>
		<description>Hi Rochelle, 

Yeah it does work quite nicely. It&#039;s definitely easy enough to create - So I&#039;d do that instead of paying for something like that :) The &quot;fullscreen&quot; background image confusion comes in when different people expect it to work differently. Both the examples you linked to are ones I&#039;ve used before. I&#039;ve also been asked to have one that doesn&#039;t resize the size on browser resize - So it should only show more/less of the image. All of these options are valid. There is just no *specific* way of doing this to please everyone.</description>
		<content:encoded><![CDATA[<p>Hi Rochelle, </p>
<p>Yeah it does work quite nicely. It&#8217;s definitely easy enough to create &#8211; So I&#8217;d do that instead of paying for something like that <img src='http://css-plus.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The &#8220;fullscreen&#8221; background image confusion comes in when different people expect it to work differently. Both the examples you linked to are ones I&#8217;ve used before. I&#8217;ve also been asked to have one that doesn&#8217;t resize the size on browser resize &#8211; So it should only show more/less of the image. All of these options are valid. There is just no *specific* way of doing this to please everyone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Create Accordions with CSS3, HTML5 and jQuery by Mohammad Shahnawaz</title>
		<link>http://css-plus.com/2011/08/create-accordions-with-css3-html5-and-jquery/#comment-4869</link>
		<dc:creator>Mohammad Shahnawaz</dc:creator>
		<pubDate>Sun, 19 Feb 2012 07:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://css-plus.com/?p=1150#comment-4869</guid>
		<description>Nice atricle, i enjoy...</description>
		<content:encoded><![CDATA[<p>Nice atricle, i enjoy&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on jQuery if / else statements by Warren</title>
		<link>http://css-plus.com/2011/07/jquery-if-else-statements/#comment-4774</link>
		<dc:creator>Warren</dc:creator>
		<pubDate>Fri, 17 Feb 2012 19:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://css-plus.com/?p=240#comment-4774</guid>
		<description>How would I use an if else statement to do this. 

If the submit button is clicked when a certain radio button is selected display lightbox.</description>
		<content:encoded><![CDATA[<p>How would I use an if else statement to do this. </p>
<p>If the submit button is clicked when a certain radio button is selected display lightbox.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bulletproof full page background images don&#8217;t exist by Rochelle</title>
		<link>http://css-plus.com/2012/01/bulletproof-full-page-background-images/#comment-4711</link>
		<dc:creator>Rochelle</dc:creator>
		<pubDate>Thu, 16 Feb 2012 20:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://css-plus.com/?p=1393#comment-4711</guid>
		<description>I think this works pretty darned well, http://markgamba.com/wordpress/supersized-example/, as opposed to this, http://markgamba.com/wordpress/test-adventure-slideshow-page/ - a paid theme advertised with full screen photo capabilities - and the admin&#039;s explanation for the second example&#039;s portrait shaped image problem points to this page. I&#039;m trying to weed out their lame excuses for charging for something that doesn&#039;t have to work as poorly as it does. lol</description>
		<content:encoded><![CDATA[<p>I think this works pretty darned well, <a href="http://markgamba.com/wordpress/supersized-example/" rel="nofollow">http://markgamba.com/wordpress/supersized-example/</a>, as opposed to this, <a href="http://markgamba.com/wordpress/test-adventure-slideshow-page/" rel="nofollow">http://markgamba.com/wordpress/test-adventure-slideshow-page/</a> &#8211; a paid theme advertised with full screen photo capabilities &#8211; and the admin&#8217;s explanation for the second example&#8217;s portrait shaped image problem points to this page. I&#8217;m trying to weed out their lame excuses for charging for something that doesn&#8217;t have to work as poorly as it does. lol</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bulletproof full page background images don&#8217;t exist by cssplus-admin</title>
		<link>http://css-plus.com/2012/01/bulletproof-full-page-background-images/#comment-4705</link>
		<dc:creator>cssplus-admin</dc:creator>
		<pubDate>Thu, 16 Feb 2012 17:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://css-plus.com/?p=1393#comment-4705</guid>
		<description>I&#039;m not unsure about what I&#039;m saying, I explain as to why this can&#039;t work any other way.

The supersized plugin is no exception. &lt;a href=&quot;http://css-plus.com/wp-content/uploads/2012/02/live-resolution-example.png&quot; rel=&quot;nofollow&quot;&gt;I&#039;ve taken a screen shot&lt;/a&gt; of the &lt;a href=&quot;http://buildinternet.com/project/supersized/slideshow/3.2/demo.html&quot; rel=&quot;nofollow&quot;&gt;supersized jquery plugin example page&lt;/a&gt; - One with my browser maximized, and next to it is my browser minimized to half the height. You&#039;ll notice in the second browser the legs are cut off a bit, therefore it&#039;s not a perfect full screen solution - and as I&#039;ve mentioned above, there is no bullet-proof full screen solution. There is only a solution for your specific need, therefore there is no plug-and-play solution.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not unsure about what I&#8217;m saying, I explain as to why this can&#8217;t work any other way.</p>
<p>The supersized plugin is no exception. <a href="http://css-plus.com/wp-content/uploads/2012/02/live-resolution-example.png" rel="nofollow">I&#8217;ve taken a screen shot</a> of the <a href="http://buildinternet.com/project/supersized/slideshow/3.2/demo.html" rel="nofollow">supersized jquery plugin example page</a> &#8211; One with my browser maximized, and next to it is my browser minimized to half the height. You&#8217;ll notice in the second browser the legs are cut off a bit, therefore it&#8217;s not a perfect full screen solution &#8211; and as I&#8217;ve mentioned above, there is no bullet-proof full screen solution. There is only a solution for your specific need, therefore there is no plug-and-play solution.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)

Served from: css-plus.com @ 2012-02-22 23:43:31 -->
