<?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: A Simple jQuery Stylesheet Switcher</title> <atom:link href="http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/feed/" rel="self" type="application/rss+xml" /><link>http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/</link> <description>Web Development Tutorials, Tips &#38; Techniques</description> <lastBuildDate>Tue, 07 Feb 2012 11:23:26 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>By: pete</title><link>http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/comment-page-2/#comment-13951</link> <dc:creator>pete</dc:creator> <pubDate>Wed, 25 Jan 2012 13:07:58 +0000</pubDate> <guid
isPermaLink="false">http://www.cssnewbie.com/?p=410#comment-13951</guid> <description>Great little tutorial.Was just wondering if there was a way of fading between the different stylesheets?Cheers
Pete</description> <content:encoded><![CDATA[<p>Great little tutorial.</p><p>Was just wondering if there was a way of fading between the different stylesheets?</p><p>Cheers<br
/> Pete</p> ]]></content:encoded> </item> <item><title>By: Shyanaka</title><link>http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/comment-page-2/#comment-13926</link> <dc:creator>Shyanaka</dc:creator> <pubDate>Mon, 09 Jan 2012 07:07:51 +0000</pubDate> <guid
isPermaLink="false">http://www.cssnewbie.com/?p=410#comment-13926</guid> <description>Thanks dude. Was really helpful. Saved lot of time.</description> <content:encoded><![CDATA[<p>Thanks dude. Was really helpful. Saved lot of time.</p> ]]></content:encoded> </item> <item><title>By: Bob Mazzo</title><link>http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/comment-page-2/#comment-13925</link> <dc:creator>Bob Mazzo</dc:creator> <pubDate>Fri, 06 Jan 2012 17:17:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cssnewbie.com/?p=410#comment-13925</guid> <description>Sorry but I noticed my html didn&#039;t show up in my previous post:&lt;!-- Dropdown list of css themes --&gt;
ui-lightness
redmond
vader
ui-lightness </description> <content:encoded><![CDATA[<p>Sorry but I noticed my html didn&#8217;t show up in my previous post:</p><p></p><p> ui-lightness<br
/> redmond<br
/> vader<br
/> ui-lightness</p> ]]></content:encoded> </item> <item><title>By: Bob Mazzo</title><link>http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/comment-page-2/#comment-13924</link> <dc:creator>Bob Mazzo</dc:creator> <pubDate>Fri, 06 Jan 2012 17:16:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cssnewbie.com/?p=410#comment-13924</guid> <description>Great article and very helpful more than two years later !I experimented with using a dropdown list instead of  list, and here&#039;s what I came up with (yes I got it working):My Html inside a  :
&lt;!-- Dropdown list of css themes --&gt;ui-lightness
redmond
vader
ui-lightnessMy Javascript function with some jQuery:function changeTheme() {
var selectedVal = $(&quot;select option:selected&quot;).val();
var selectedTxt = $(&quot;select option:selected&quot;).text();
$(&quot;link&quot;).attr(&quot;href&quot;, selectedVal);
return false;
}Sorry I couldn&#039;t format the code properly here...thanks Rob!Sincerely,
Bob Mazzo</description> <content:encoded><![CDATA[<p>Great article and very helpful more than two years later !</p><p>I experimented with using a dropdown list instead of  list, and here&#8217;s what I came up with (yes I got it working):</p><p>My Html inside a  :<br
/></p><p>ui-lightness<br
/> redmond<br
/> vader<br
/> ui-lightness</p><p>My Javascript function with some jQuery:</p><p>function changeTheme() {<br
/> var selectedVal = $(&#8220;select option:selected&#8221;).val();<br
/> var selectedTxt = $(&#8220;select option:selected&#8221;).text();<br
/> $(&#8220;link&#8221;).attr(&#8220;href&#8221;, selectedVal);<br
/> return false;<br
/> }</p><p>Sorry I couldn&#8217;t format the code properly here&#8230;</p><p>thanks Rob!</p><p>Sincerely,<br
/> Bob Mazzo</p> ]]></content:encoded> </item> <item><title>By: elizabeth</title><link>http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/comment-page-2/#comment-13922</link> <dc:creator>elizabeth</dc:creator> <pubDate>Thu, 05 Jan 2012 21:06:45 +0000</pubDate> <guid
isPermaLink="false">http://www.cssnewbie.com/?p=410#comment-13922</guid> <description>Hey, Don&#039;t know what I am doing, but need your help to use this code to change my style sheets.. Any Ideas??Thanks a Million..</description> <content:encoded><![CDATA[<p>Hey, Don&#8217;t know what I am doing, but need your help to use this code to change my style sheets.. Any Ideas??</p><p>Thanks a Million..</p> ]]></content:encoded> </item> <item><title>By: Añadiendo JQuery &#171; Guías astronómicas</title><link>http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/comment-page-1/#comment-13861</link> <dc:creator>Añadiendo JQuery &#171; Guías astronómicas</dc:creator> <pubDate>Fri, 25 Nov 2011 18:59:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cssnewbie.com/?p=410#comment-13861</guid> <description>[...] conmutador de estilos se basa en el de CSSNewbie, pero con la diferencia de que, de momento, he preferido no usar cookies, y que usaré un solo [...]</description> <content:encoded><![CDATA[<p>[...] conmutador de estilos se basa en el de CSSNewbie, pero con la diferencia de que, de momento, he preferido no usar cookies, y que usaré un solo [...]</p> ]]></content:encoded> </item> <item><title>By: links for 2011-07-20 &#124; axelintu : links</title><link>http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/comment-page-1/#comment-13516</link> <dc:creator>links for 2011-07-20 &#124; axelintu : links</dc:creator> <pubDate>Thu, 21 Jul 2011 05:23:57 +0000</pubDate> <guid
isPermaLink="false">http://www.cssnewbie.com/?p=410#comment-13516</guid> <description>[...] A Simple jQuery Stylesheet Switcher (tags: css jquery design tutorial useful good reverse-ingeniering)     This entry was posted in Links by axelintu. Bookmark the permalink.   LikeBe the first to like this post. [...]</description> <content:encoded><![CDATA[<p>[...] A Simple jQuery Stylesheet Switcher (tags: css jquery design tutorial useful good reverse-ingeniering)     This entry was posted in Links by axelintu. Bookmark the permalink.   LikeBe the first to like this post. [...]</p> ]]></content:encoded> </item> <item><title>By: fabricio</title><link>http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/comment-page-1/#comment-13478</link> <dc:creator>fabricio</dc:creator> <pubDate>Wed, 22 Jun 2011 23:50:30 +0000</pubDate> <guid
isPermaLink="false">http://www.cssnewbie.com/?p=410#comment-13478</guid> <description>great work!</description> <content:encoded><![CDATA[<p>great work!</p> ]]></content:encoded> </item> <item><title>By: Haydur</title><link>http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/comment-page-1/#comment-13442</link> <dc:creator>Haydur</dc:creator> <pubDate>Wed, 18 May 2011 18:32:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cssnewbie.com/?p=410#comment-13442</guid> <description>For Matt and others who are having trouble with this script affecting multiple stylesheets on the same document:You can limit the application of stylesheet switch by using JQuery selectors. For example, if you only want sheets with the common name &quot;main&quot; in them, i.e. &quot;main1.css&quot; and &quot;main_blue.css&quot;, you should change $(&quot;link&quot;).attr(&quot;href&quot;,$.cookie(&quot;css&quot;)); to $(&#039;link[href*=&quot;main&quot;]&#039;).attr(&quot;href&quot;,$(this).attr(&#039;rel&#039;));You can also add custom attribute to your stylesheet tag and change the selector to something like $(&#039;link[custom_attribute=&quot;attribute_val&quot;]&#039;)</description> <content:encoded><![CDATA[<p>For Matt and others who are having trouble with this script affecting multiple stylesheets on the same document:</p><p>You can limit the application of stylesheet switch by using JQuery selectors. For example, if you only want sheets with the common name &#8220;main&#8221; in them, i.e. &#8220;main1.css&#8221; and &#8220;main_blue.css&#8221;, you should change $(&#8220;link&#8221;).attr(&#8220;href&#8221;,$.cookie(&#8220;css&#8221;)); to $(&#8216;link[href*="main"]&#8216;).attr(&#8220;href&#8221;,$(this).attr(&#8216;rel&#8217;));</p><p>You can also add custom attribute to your stylesheet tag and change the selector to something like $(&#8216;link[custom_attribute="attribute_val"]&#8216;)</p> ]]></content:encoded> </item> <item><title>By: CSS3, jQuery(), and musicology: Another &#8220;circle&#8221; for understanding Western notes&#8230;. &#171; Peter Whittaker &#8211; Iconoclasm and irreverence</title><link>http://www.cssnewbie.com/simple-jquery-stylesheet-switcher/comment-page-1/#comment-13435</link> <dc:creator>CSS3, jQuery(), and musicology: Another &#8220;circle&#8221; for understanding Western notes&#8230;. &#171; Peter Whittaker &#8211; Iconoclasm and irreverence</dc:creator> <pubDate>Fri, 13 May 2011 16:23:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cssnewbie.com/?p=410#comment-13435</guid> <description>[...] Bits on switching stylesheets here and here. [...]</description> <content:encoded><![CDATA[<p>[...] Bits on switching stylesheets here and here. [...]</p> ]]></content:encoded> </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)

Served from: www.cssnewbie.com @ 2012-02-08 03:32:59 -->
