<?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: JQuery powered lights off effect</title>
	<atom:link href="http://www.emanueleferonato.com/2009/10/12/jquery-powered-lights-off-effect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2009/10/12/jquery-powered-lights-off-effect/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Thu, 09 Sep 2010 01:38:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Courtney</title>
		<link>http://www.emanueleferonato.com/2009/10/12/jquery-powered-lights-off-effect/#comment-602538</link>
		<dc:creator>Courtney</dc:creator>
		<pubDate>Mon, 12 Jul 2010 23:54:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1735#comment-602538</guid>
		<description>Hey great ideas you&#039;ve put into this. I modified your work a bit. The blank div was covering all my content because it had a higher z index so none of the links on the page worked. I tweaked it to fix that little bug and also to use jquery&#039;s functions instead of raw javascript functions here&#039;s the moded css and js, the div&#039;s are all the same.

      
                           
			   #the_lights{
	              background-color:#000;
	              height:1px;
	              width:1px;
	              position:absolute;
	              top:0;
	              left:0;
	              display:none;
               }
               #standout{
                    padding:5px;
                    background-color:white;
                    position:relative;
                    z-index:1000;
               }
          

           
								   function getHeight()
						{
						   if($.browser.msie)
						   {
							   var $temp = $(&quot;&quot;)
									 .css(&quot;position&quot;,&quot;absolute&quot;)
									 .css(&quot;left&quot;,&quot;-10000px&quot;)
									 .append($(&quot;body&quot;).html());
						
							   $(&quot;body&quot;).append($temp);
								var h = $temp.height();
								$temp.remove();
								return h;
							}
							return $(&quot;body&quot;).height();
						}

               $(document).ready(function(){
                    $(&quot;#the_lights&quot;).fadeTo(1,0);
                    $(&quot;#turnoff&quot;).click(function () {
						 $(&quot;#the_lights&quot;).css(&quot;width&quot;,&quot;100%&quot;);
						  $(&quot;#the_lights&quot;).css(&quot;height&quot;,getHeight()+&quot;px&quot;);
                         $(&quot;#the_lights&quot;).css({&#039;display&#039; : &#039;block&#039;});
                         $(&quot;#the_lights&quot;).fadeTo(&quot;slow&quot;,1);
                    });
                    $(&quot;#soft&quot;).click(function () {
						 $(&quot;#the_lights&quot;).css(&quot;width&quot;,&quot;100%&quot;);
						  $(&quot;#the_lights&quot;).css(&quot;height&quot;,getHeight()+&quot;px&quot;);
						$(&quot;#the_lights&quot;).css(&quot;display&quot;,&quot;block&quot;);
                         $(&quot;#the_lights&quot;).fadeTo(&quot;slow&quot;,0.8);
                    });
                    $(&quot;#turnon&quot;).click(function () {
						 $(&quot;#the_lights&quot;).css(&quot;width&quot;,&quot;1px&quot;);
						  $(&quot;#the_lights&quot;).css(&quot;height&quot;,&quot;1px&quot;);
							$(&quot;#the_lights&quot;).css(&quot;display&quot;,&quot;block&quot;);
                         $(&quot;#the_lights&quot;).fadeTo(&quot;slow&quot;,0);
                    });
               });
            

thanks for your work BTW</description>
		<content:encoded><![CDATA[<p>Hey great ideas you&#8217;ve put into this. I modified your work a bit. The blank div was covering all my content because it had a higher z index so none of the links on the page worked. I tweaked it to fix that little bug and also to use jquery&#8217;s functions instead of raw javascript functions here&#8217;s the moded css and js, the div&#8217;s are all the same.</p>
<p>			   #the_lights{<br />
	              background-color:#000;<br />
	              height:1px;<br />
	              width:1px;<br />
	              position:absolute;<br />
	              top:0;<br />
	              left:0;<br />
	              display:none;<br />
               }<br />
               #standout{<br />
                    padding:5px;<br />
                    background-color:white;<br />
                    position:relative;<br />
                    z-index:1000;<br />
               }</p>
<p>								   function getHeight()<br />
						{<br />
						   if($.browser.msie)<br />
						   {<br />
							   var $temp = $(&#8220;&#8221;)<br />
									 .css(&#8220;position&#8221;,&#8221;absolute&#8221;)<br />
									 .css(&#8220;left&#8221;,&#8221;-10000px&#8221;)<br />
									 .append($(&#8220;body&#8221;).html());</p>
<p>							   $(&#8220;body&#8221;).append($temp);<br />
								var h = $temp.height();<br />
								$temp.remove();<br />
								return h;<br />
							}<br />
							return $(&#8220;body&#8221;).height();<br />
						}</p>
<p>               $(document).ready(function(){<br />
                    $(&#8220;#the_lights&#8221;).fadeTo(1,0);<br />
                    $(&#8220;#turnoff&#8221;).click(function () {<br />
						 $(&#8220;#the_lights&#8221;).css(&#8220;width&#8221;,&#8221;100%&#8221;);<br />
						  $(&#8220;#the_lights&#8221;).css(&#8220;height&#8221;,getHeight()+&#8221;px&#8221;);<br />
                         $(&#8220;#the_lights&#8221;).css({&#8216;display&#8217; : &#8216;block&#8217;});<br />
                         $(&#8220;#the_lights&#8221;).fadeTo(&#8220;slow&#8221;,1);<br />
                    });<br />
                    $(&#8220;#soft&#8221;).click(function () {<br />
						 $(&#8220;#the_lights&#8221;).css(&#8220;width&#8221;,&#8221;100%&#8221;);<br />
						  $(&#8220;#the_lights&#8221;).css(&#8220;height&#8221;,getHeight()+&#8221;px&#8221;);<br />
						$(&#8220;#the_lights&#8221;).css(&#8220;display&#8221;,&#8221;block&#8221;);<br />
                         $(&#8220;#the_lights&#8221;).fadeTo(&#8220;slow&#8221;,0.8);<br />
                    });<br />
                    $(&#8220;#turnon&#8221;).click(function () {<br />
						 $(&#8220;#the_lights&#8221;).css(&#8220;width&#8221;,&#8221;1px&#8221;);<br />
						  $(&#8220;#the_lights&#8221;).css(&#8220;height&#8221;,&#8221;1px&#8221;);<br />
							$(&#8220;#the_lights&#8221;).css(&#8220;display&#8221;,&#8221;block&#8221;);<br />
                         $(&#8220;#the_lights&#8221;).fadeTo(&#8220;slow&#8221;,0);<br />
                    });<br />
               });</p>
<p>thanks for your work BTW</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Daniel</title>
		<link>http://www.emanueleferonato.com/2009/10/12/jquery-powered-lights-off-effect/#comment-593371</link>
		<dc:creator>Jose Daniel</dc:creator>
		<pubDate>Wed, 23 Jun 2010 03:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1735#comment-593371</guid>
		<description>i would change a little bit the code to be able to select text again:

			document.getElementById(&quot;the_lights&quot;).style.display=&quot;block&quot;;
			$(&quot;#the_lights&quot;).fadeTo(&quot;slow&quot;,0, function() {
				document.getElementById(&quot;the_lights&quot;).style.display=&quot;none&quot;;
			});</description>
		<content:encoded><![CDATA[<p>i would change a little bit the code to be able to select text again:</p>
<p>			document.getElementById(&#8220;the_lights&#8221;).style.display=&#8221;block&#8221;;<br />
			$(&#8220;#the_lights&#8221;).fadeTo(&#8220;slow&#8221;,0, function() {<br />
				document.getElementById(&#8220;the_lights&#8221;).style.display=&#8221;none&#8221;;<br />
			});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.emanueleferonato.com/2009/10/12/jquery-powered-lights-off-effect/#comment-529472</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Tue, 08 Dec 2009 08:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1735#comment-529472</guid>
		<description>it there any way to auto turn off the light want the page loaded? thank you.</description>
		<content:encoded><![CDATA[<p>it there any way to auto turn off the light want the page loaded? thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bishwajit Maitra</title>
		<link>http://www.emanueleferonato.com/2009/10/12/jquery-powered-lights-off-effect/#comment-529336</link>
		<dc:creator>Bishwajit Maitra</dc:creator>
		<pubDate>Mon, 07 Dec 2009 13:22:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1735#comment-529336</guid>
		<description>It&#039;s good for &quot;MOZILLA&quot; but it does not work in &quot;IE, Opera, Google Chrome&quot;</description>
		<content:encoded><![CDATA[<p>It&#8217;s good for &#8220;MOZILLA&#8221; but it does not work in &#8220;IE, Opera, Google Chrome&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://www.emanueleferonato.com/2009/10/12/jquery-powered-lights-off-effect/#comment-525657</link>
		<dc:creator>George</dc:creator>
		<pubDate>Mon, 23 Nov 2009 21:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1735#comment-525657</guid>
		<description>Great Mod... only question whem this is posted what is the link to activate it...

Which link will show on the actual webpage?</description>
		<content:encoded><![CDATA[<p>Great Mod&#8230; only question whem this is posted what is the link to activate it&#8230;</p>
<p>Which link will show on the actual webpage?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.emanueleferonato.com/2009/10/12/jquery-powered-lights-off-effect/#comment-517771</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 03 Nov 2009 15:09:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1735#comment-517771</guid>
		<description>Great tutorial, Emanuele!  This worked really well for me.  Thanks.</description>
		<content:encoded><![CDATA[<p>Great tutorial, Emanuele!  This worked really well for me.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jack</title>
		<link>http://www.emanueleferonato.com/2009/10/12/jquery-powered-lights-off-effect/#comment-512176</link>
		<dc:creator>Jack</dc:creator>
		<pubDate>Thu, 22 Oct 2009 13:31:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1735#comment-512176</guid>
		<description>@jake you can get jQuery here http://jquery.com/ !
Great tutorial dude ! I love jQuery it makes javascript and ajax stuff really fun and easy.</description>
		<content:encoded><![CDATA[<p>@jake you can get jQuery here <a href="http://jquery.com/" rel="nofollow">http://jquery.com/</a> !<br />
Great tutorial dude ! I love jQuery it makes javascript and ajax stuff really fun and easy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jake</title>
		<link>http://www.emanueleferonato.com/2009/10/12/jquery-powered-lights-off-effect/#comment-510391</link>
		<dc:creator>jake</dc:creator>
		<pubDate>Sun, 18 Oct 2009 19:51:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1735#comment-510391</guid>
		<description>And the path to jquery-1.3.2.min.js... is?</description>
		<content:encoded><![CDATA[<p>And the path to jquery-1.3.2.min.js&#8230; is?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yarden Refaeli</title>
		<link>http://www.emanueleferonato.com/2009/10/12/jquery-powered-lights-off-effect/#comment-508655</link>
		<dc:creator>Yarden Refaeli</dc:creator>
		<pubDate>Tue, 13 Oct 2009 06:55:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1735#comment-508655</guid>
		<description>Why do you use primitive &quot;document.getElementById&quot; when you can use the powerful jQuery selector?
$(&quot;#id&quot;);

Thank you!</description>
		<content:encoded><![CDATA[<p>Why do you use primitive &#8220;document.getElementById&#8221; when you can use the powerful jQuery selector?<br />
$(&#8220;#id&#8221;);</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
