<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>Robert Spangler&#187; Code Snippets</title> <atom:link href="http://www.robspangler.com/blog/category/code-snippets/feed/" rel="self" type="application/rss+xml" /><link>http://www.robspangler.com</link> <description>Design - Web - Creative</description> <lastBuildDate>Sat, 15 May 2010 02:08:01 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>New Blog Posted: Creating a Checkout Progress Bar</title><link>http://www.robspangler.com/blog/new-blog-posted-creating-an-accessible-checkout-progress-bar/</link> <comments>http://www.robspangler.com/blog/new-blog-posted-creating-an-accessible-checkout-progress-bar/#comments</comments> <pubDate>Fri, 07 Dec 2007 14:23:31 +0000</pubDate> <dc:creator>Robert</dc:creator> <category><![CDATA[Code Snippets]]></category> <category><![CDATA[eCommerce]]></category><guid
isPermaLink="false">http://localhost:8888/robspangler.com/blog/new-blog-posted-creating-an-accessible-checkout-progress-bar/</guid> <description><![CDATA[I just posted a new blog over on the "eCommerce Blog":http://www.groovecommerce.com/ecommerce-blog/ at Groove. So if you're interested in "creating an accessible progress bar":http://www.groovecommerce.com/ecommerce-blog/featured/creating-an-accessible-checkout-progress-bar/ for your checkout process this is for you!]]></description> <content:encoded><![CDATA[<p>I just posted a new blog over on the <a
href="http://www.groovecommerce.com/ecommerce-blog/">eCommerce Blog</a> at Groove. So if you&#8217;re interested in <a
href="http://www.groovecommerce.com/ecommerce-blog/featured/creating-an-accessible-checkout-progress-bar/">creating an accessible progress bar</a> for your checkout process this is for you!</p> ]]></content:encoded> <wfw:commentRss>http://www.robspangler.com/blog/new-blog-posted-creating-an-accessible-checkout-progress-bar/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>:hover Pseudo Class Bug Fix for IE6</title><link>http://www.robspangler.com/blog/hover-pseudo-class-bug-fix-for-ie6/</link> <comments>http://www.robspangler.com/blog/hover-pseudo-class-bug-fix-for-ie6/#comments</comments> <pubDate>Thu, 05 Jul 2007 18:55:43 +0000</pubDate> <dc:creator>Robert</dc:creator> <category><![CDATA[Code Snippets]]></category> <category><![CDATA[Web Design]]></category><guid
isPermaLink="false">http://localhost:8888/robspangler.com/blog/hover-pseudo-class-bug-fix-for-ie6/</guid> <description><![CDATA[<p>For those of you familiar with the <a
href="http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes">:hover pseudo class</a>, you probably know that IE6 and below is not.</p><p>A simple example of the :hover pseudo class in action is when you mouse over a Hyperlink and it changes color, or it becomes underlined or something dazzling like that. A more advanced example is applying :hover to other tags such as a &#60;td&#62; to make the data cell of a table change color, this is the example I'm going to talk about today.</p>]]></description> <content:encoded><![CDATA[<p>For those of you familiar with the <a
href="http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes">:hover pseudo class</a>, you probably know that IE6 and below is not.</p><p>A simple example of the :hover pseudo class in action is when you mouse over a Hyperlink and it changes color, or it becomes underlined or something dazzling like that. A more advanced example is applying :hover to other tags such as a &lt;td&gt; to make the data cell of a table change color, this is the example I&#8217;m going to talk about today.</p><p>To get this working in IE6 I have gone through a large amount of resources with javascript fixes, that work—but can be overly complicated. I have also attempted to use some .htc behavior fixes, which can be incredibly finicky and are also invalid CSS according to W3 standards.</p><p>But don&#8217;t worry! There is hope! Finally after wrestling with this issue for a long time and doing some good investigating for a decent fix, I found it through the use of jQuery.</p><p><strong>The Script:</strong></p><pre>&lt;script src="/include/js/jquery.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(function() {
        $('#my-calendar td').hover(function(){
               $(this).addClass('over');
        }, function() {
               $(this).removeClass('over');
        });
});
&lt;/script&gt;</pre><p><strong>The CSS:</strong></p><pre>.over {background-color: #ffff00;}</pre><p><strong>The HTML:</strong></p><pre>&lt;table id="my-calendar"&gt;
    &lt;tr&gt;
        &lt;td&gt;hover over me!&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;</pre><p>Basically—similar to some JavaScript examples you may have seen jQuery uses a mouseover (hover) and adds the “over” class to your &lt;td&gt;. Likewise—when you mouse out it simply removes the class. It&#8217;s that simple and it actually works!</p><p><a
class="popup" title="Very Basic!" href="/downloads/example_ie6-hover-fix.php">View the Example</a><br
/> <a
class="popup" title="Download from JQuery.com" href="http://docs.jquery.com/Downloading_jQuery">Download JQuery</a></p> ]]></content:encoded> <wfw:commentRss>http://www.robspangler.com/blog/hover-pseudo-class-bug-fix-for-ie6/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 8/15 queries in 0.016 seconds using disk

Served from: www.robspangler.com @ 2010-07-31 14:53:49 -->