<?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: Updated: Hover for non-anchor elements in IE6</title>
	<atom:link href="http://blog.delivi.com/javascript/updated-hover-for-non-anchor-elements-in-ie6/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.delivi.com/javascript/updated-hover-for-non-anchor-elements-in-ie6</link>
	<description></description>
	<lastBuildDate>Fri, 06 May 2011 12:22:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: mr bob</title>
		<link>http://blog.delivi.com/javascript/updated-hover-for-non-anchor-elements-in-ie6/comment-page-1#comment-443</link>
		<dc:creator>mr bob</dc:creator>
		<pubDate>Thu, 21 Apr 2011 11:23:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delivi.com/?p=52#comment-443</guid>
		<description>Thanks for this!  you saved my job today</description>
		<content:encoded><![CDATA[<p>Thanks for this!  you saved my job today</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: livingston</title>
		<link>http://blog.delivi.com/javascript/updated-hover-for-non-anchor-elements-in-ie6/comment-page-1#comment-415</link>
		<dc:creator>livingston</dc:creator>
		<pubDate>Sat, 13 Nov 2010 07:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delivi.com/?p=52#comment-415</guid>
		<description>@Aditya: I agree that event delegation would be much better approach, especially when there are hundreds of nodes and new nodes being added to the DOM after page load. But that would drastically affect the performance as we&#039;d have to listen on body/window for &#039;mouseenter/mouseleave&#039; events, which would be triggered for all the elements on the page.

@Dave Bergschneider  - you can always modify the selector `$(&#039;.hoverable&#039;)` with the elements that you intend to apply the hover fix.

For eg. if you want to apply the hover fix to be applied on li&#039;s within a ul, the modify the selector as `$(&#039;ul li&#039;)`.</description>
		<content:encoded><![CDATA[<p>@Aditya: I agree that event delegation would be much better approach, especially when there are hundreds of nodes and new nodes being added to the DOM after page load. But that would drastically affect the performance as we&#8217;d have to listen on body/window for &#8216;mouseenter/mouseleave&#8217; events, which would be triggered for all the elements on the page.</p>
<p>@Dave Bergschneider  &#8211; you can always modify the selector `$(&#8216;.hoverable&#8217;)` with the elements that you intend to apply the hover fix.</p>
<p>For eg. if you want to apply the hover fix to be applied on li&#8217;s within a ul, the modify the selector as `$(&#8216;ul li&#8217;)`.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Bergschneider</title>
		<link>http://blog.delivi.com/javascript/updated-hover-for-non-anchor-elements-in-ie6/comment-page-1#comment-414</link>
		<dc:creator>Dave Bergschneider</dc:creator>
		<pubDate>Thu, 07 Oct 2010 14:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delivi.com/?p=52#comment-414</guid>
		<description>@livingston - Is there anyway to blanket this functionality to LI&#039;s or all child elements of the element with the class? I ask because in the event you are using a CMS you may not actually be able to touch the markup generated.</description>
		<content:encoded><![CDATA[<p>@livingston &#8211; Is there anyway to blanket this functionality to LI&#8217;s or all child elements of the element with the class? I ask because in the event you are using a CMS you may not actually be able to touch the markup generated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aditya</title>
		<link>http://blog.delivi.com/javascript/updated-hover-for-non-anchor-elements-in-ie6/comment-page-1#comment-412</link>
		<dc:creator>Aditya</dc:creator>
		<pubDate>Sun, 26 Sep 2010 10:48:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delivi.com/?p=52#comment-412</guid>
		<description>Wouldn&#039;t it be better if you used event-delegation instead of attaching handlers to each such node,  to make it work for nodes added later...

&lt;code&gt;
// jquery example... doing in vanilla JS wont be hard either..
$(document).ready(function () {
        /*@cc_on
            @if (@_jscript_version == 5.6 &#124;&#124; (@_jscript_version == 5.7 &amp;&amp; !window.XMLHttpRequest))
                $(&quot;.hoverable&quot;).live(&quot;onmouseenter&quot;,function(){
                    $(this).addClass(&quot;hovered&quot;);
                }).live(&quot;onmouseleave&quot;,function(){
                    $(this).removeClass(&quot;hovered&quot;);
                });
            @end
        @*/
});
&lt;/code&gt;

PS: not recommended if no newer nodes would be added later... delegation is a bit slower than individually attached events</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t it be better if you used event-delegation instead of attaching handlers to each such node,  to make it work for nodes added later&#8230;</p>
<p><code><br />
// jquery example... doing in vanilla JS wont be hard either..<br />
$(document).ready(function () {<br />
        /*@cc_on<br />
            @if (@_jscript_version == 5.6 || (@_jscript_version == 5.7 &amp;&amp; !window.XMLHttpRequest))<br />
                $(".hoverable").live("onmouseenter",function(){<br />
                    $(this).addClass("hovered");<br />
                }).live("onmouseleave",function(){<br />
                    $(this).removeClass("hovered");<br />
                });<br />
            @end<br />
        @*/<br />
});<br />
</code></p>
<p>PS: not recommended if no newer nodes would be added later&#8230; delegation is a bit slower than individually attached events</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xiaopu</title>
		<link>http://blog.delivi.com/javascript/updated-hover-for-non-anchor-elements-in-ie6/comment-page-1#comment-409</link>
		<dc:creator>Xiaopu</dc:creator>
		<pubDate>Tue, 24 Aug 2010 20:50:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delivi.com/?p=52#comment-409</guid>
		<description>This was very helpful! Thank you so much!</description>
		<content:encoded><![CDATA[<p>This was very helpful! Thank you so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: livingston</title>
		<link>http://blog.delivi.com/javascript/updated-hover-for-non-anchor-elements-in-ie6/comment-page-1#comment-408</link>
		<dc:creator>livingston</dc:creator>
		<pubDate>Wed, 18 Aug 2010 15:35:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delivi.com/?p=52#comment-408</guid>
		<description>@poupougnac - I&#039;d strongly recommend not to use that plugin, because it tries to parse the css files and apply fixes based on the selectors with hover defined. As IE 6 has very poor js performance and in any project with css files that have more than a few hundreds of lines this will result in a huge impact on the performance.</description>
		<content:encoded><![CDATA[<p>@poupougnac &#8211; I&#8217;d strongly recommend not to use that plugin, because it tries to parse the css files and apply fixes based on the selectors with hover defined. As IE 6 has very poor js performance and in any project with css files that have more than a few hundreds of lines this will result in a huge impact on the performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: poupougnac</title>
		<link>http://blog.delivi.com/javascript/updated-hover-for-non-anchor-elements-in-ie6/comment-page-1#comment-407</link>
		<dc:creator>poupougnac</dc:creator>
		<pubDate>Wed, 18 Aug 2010 15:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delivi.com/?p=52#comment-407</guid>
		<description>Hi, I encourage you to test this jQuery plugin which definitively implement the :hover functionality on IE6. You don&#039;t have to change anything on your code, just add and load the plugin.
http://plugins.jquery.com/project/ie6hover</description>
		<content:encoded><![CDATA[<p>Hi, I encourage you to test this jQuery plugin which definitively implement the :hover functionality on IE6. You don&#8217;t have to change anything on your code, just add and load the plugin.<br />
<a href="http://plugins.jquery.com/project/ie6hover" rel="nofollow">http://plugins.jquery.com/project/ie6hover</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hover for non-anchor elements in IE6 &#124; Blog de Livi</title>
		<link>http://blog.delivi.com/javascript/updated-hover-for-non-anchor-elements-in-ie6/comment-page-1#comment-163</link>
		<dc:creator>Hover for non-anchor elements in IE6 &#124; Blog de Livi</dc:creator>
		<pubDate>Thu, 29 Apr 2010 16:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.delivi.com/?p=52#comment-163</guid>
		<description>[...] Updated article on Hover for non-anchor elements in IE6 [...]</description>
		<content:encoded><![CDATA[<p>[...] Updated article on Hover for non-anchor elements in IE6 [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

