<?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: Change the Style of DIV on Mouseover with jQuery</title>
	<atom:link href="http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/</link>
	<description>Web design tips &#38; tricks plus anything else I want to talk about...</description>
	<lastBuildDate>Mon, 15 Mar 2010 14:51:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tom</title>
		<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/comment-page-1/#comment-28149</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Thu, 28 Jan 2010 17:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1061#comment-28149</guid>
		<description>How would I use this idea to trigger a change of class for a single li element within a list but when doing mouseover on an entirely different object(div) on the page. newbie</description>
		<content:encoded><![CDATA[<p>How would I use this idea to trigger a change of class for a single li element within a list but when doing mouseover on an entirely different object(div) on the page. newbie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Wanless</title>
		<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/comment-page-1/#comment-20848</link>
		<dc:creator>Steve Wanless</dc:creator>
		<pubDate>Wed, 12 Aug 2009 17:03:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1061#comment-20848</guid>
		<description>@BJ why dont you post a link to the page? or send me a link to it - my first name at my website</description>
		<content:encoded><![CDATA[<p>@BJ why dont you post a link to the page? or send me a link to it &#8211; my first name at my website</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BJ</title>
		<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/comment-page-1/#comment-20847</link>
		<dc:creator>BJ</dc:creator>
		<pubDate>Wed, 12 Aug 2009 17:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1061#comment-20847</guid>
		<description>In theory can I put an alert trace in the inmouse over function? Should that fire when I mouse over to see if it&#039;s even getting the event listener applied? I&#039;m just trying to narrow down if it&#039;s a css issue or a js issue or both...</description>
		<content:encoded><![CDATA[<p>In theory can I put an alert trace in the inmouse over function? Should that fire when I mouse over to see if it&#8217;s even getting the event listener applied? I&#8217;m just trying to narrow down if it&#8217;s a css issue or a js issue or both&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Wanless</title>
		<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/comment-page-1/#comment-20846</link>
		<dc:creator>Steve Wanless</dc:creator>
		<pubDate>Wed, 12 Aug 2009 17:00:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1061#comment-20846</guid>
		<description>oops... it stripped out my code. 

div class=&quot;current&quot;    link     end div

I guess I shouldn&#039;t have pasted HTML code into the comment. 

:)</description>
		<content:encoded><![CDATA[<p>oops&#8230; it stripped out my code. </p>
<p>div class=&#8221;current&#8221;    link     end div</p>
<p>I guess I shouldn&#8217;t have pasted HTML code into the comment. </p>
<p> <img src='http://www.stemkoski.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Wanless</title>
		<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/comment-page-1/#comment-20845</link>
		<dc:creator>Steve Wanless</dc:creator>
		<pubDate>Wed, 12 Aug 2009 16:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1061#comment-20845</guid>
		<description>@BJ I use PHP and add a class to the nav item for the current page.

ie.
&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;NAVIGATION ITEM 1&lt;/a&gt;

Is that what you were after?

The upside to a using jQuery is with some minor mods to the above code you can get a rollover here to change some div etc on the other side of the page. 
I&#039;m working on a site where the client wants a rollover on thumbnails to change an image within the header of the page. jQuery is great for stuff like that.</description>
		<content:encoded><![CDATA[<p>@BJ I use PHP and add a class to the nav item for the current page.</p>
<p>ie.<br />
<a href="#" rel="nofollow">NAVIGATION ITEM 1</a></p>
<p>Is that what you were after?</p>
<p>The upside to a using jQuery is with some minor mods to the above code you can get a rollover here to change some div etc on the other side of the page.<br />
I&#8217;m working on a site where the client wants a rollover on thumbnails to change an image within the header of the page. jQuery is great for stuff like that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BJ</title>
		<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/comment-page-1/#comment-20844</link>
		<dc:creator>BJ</dc:creator>
		<pubDate>Wed, 12 Aug 2009 16:56:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1061#comment-20844</guid>
		<description>Understood. I&#039;m using jquery for some other things on my new site but this just isn&#039;t working. I tried it on another page to see if there was a conflict but it was no go. I guess I&#039;ll figure it out eventually. Again...it seems so simple. I&#039;m doing much more complicate things and this just isn&#039;t happening.</description>
		<content:encoded><![CDATA[<p>Understood. I&#8217;m using jquery for some other things on my new site but this just isn&#8217;t working. I tried it on another page to see if there was a conflict but it was no go. I guess I&#8217;ll figure it out eventually. Again&#8230;it seems so simple. I&#8217;m doing much more complicate things and this just isn&#8217;t happening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Stemkoski</title>
		<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/comment-page-1/#comment-20843</link>
		<dc:creator>Ryan Stemkoski</dc:creator>
		<pubDate>Wed, 12 Aug 2009 16:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1061#comment-20843</guid>
		<description>@BJ The theory behind the above code is we&#039;re modifying the CSS style of the DIV on mouseover.  So on mouseover the div class changes from sidenavOff to sidenavOver. So if you created a class for both .sidenavOff and .sidenavOver (They don&#039;t have to be div specific) then it should work sweet.

The other thing I will mention is this solution uses jQuery selectors so you must include the jQuery library for it to work. You can do this by putting the following code in the head section of your HTML document:

&lt;pre lang=&quot;javascript&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;&gt; &lt;/script&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@BJ The theory behind the above code is we&#8217;re modifying the CSS style of the DIV on mouseover.  So on mouseover the div class changes from sidenavOff to sidenavOver. So if you created a class for both .sidenavOff and .sidenavOver (They don&#8217;t have to be div specific) then it should work sweet.</p>
<p>The other thing I will mention is this solution uses jQuery selectors so you must include the jQuery library for it to work. You can do this by putting the following code in the head section of your HTML document:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span><span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: BJ</title>
		<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/comment-page-1/#comment-20842</link>
		<dc:creator>BJ</dc:creator>
		<pubDate>Wed, 12 Aug 2009 16:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1061#comment-20842</guid>
		<description>I can&#039;t get this to work to save my life. I must be doing something silly. Is it a requirement that the style be for a div only ie: div.sidenavOff. Even that isn&#039;t working for me.

@steve This works great but how can you make it stick once that nav item is selected?</description>
		<content:encoded><![CDATA[<p>I can&#8217;t get this to work to save my life. I must be doing something silly. Is it a requirement that the style be for a div only ie: div.sidenavOff. Even that isn&#8217;t working for me.</p>
<p>@steve This works great but how can you make it stick once that nav item is selected?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck</title>
		<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/comment-page-1/#comment-17834</link>
		<dc:creator>Chuck</dc:creator>
		<pubDate>Thu, 11 Jun 2009 13:23:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1061#comment-17834</guid>
		<description>Just what I needed. Short and to the point!</description>
		<content:encoded><![CDATA[<p>Just what I needed. Short and to the point!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bundle</title>
		<link>http://www.stemkoski.com/change-the-style-of-div-on-mouseover-with-jquery/comment-page-1/#comment-14520</link>
		<dc:creator>bundle</dc:creator>
		<pubDate>Wed, 22 Apr 2009 22:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.stemkoski.com/?p=1061#comment-14520</guid>
		<description>Thank you! Thank you! Thank you!</description>
		<content:encoded><![CDATA[<p>Thank you! Thank you! Thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
