<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Archive'</title>
		<link>http://www.silverstripe.org/archive/rss</link>
		<atom:link href="http://www.silverstripe.org/archive/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: Menu buttons chaning on Hover when button are images</title>
			<link>http://www.silverstripe.org/archive/show/226662?start=0#post229660</link>
			<description>&lt;p&gt;I think you can do this with a javascript easily.&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% control Menu(1) %&amp;gt;&lt;br /&gt;&amp;lt;% if LinkOrSection = section %&amp;gt;&lt;br /&gt;&amp;lt;img src=&quot;themes/purplewine/images/menu/{$URLSegment}navCurrent.gif&quot; alt=&quot;$Title&quot;  id=&quot;{$URLSegment}&quot; onmouseover=&quot;changebg(this, true,'{$URLSegment}navCurrent')&quot; onmouseout=&quot;changebg(this, false,'{$URLSegment}nav')&quot; /&amp;gt;&amp;lt;span&amp;gt;$URLSegment&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;lt;% else %&amp;gt;&lt;br /&gt;&amp;lt;a href=&quot;$Link&quot; title=&quot;Go to the $Title.XML page&quot; &amp;gt;&amp;lt;img src=&quot;themes/purplewine/images/menu/{$URLSegment}nav.gif&quot; alt=&quot;$Title&quot; id=&quot;{$URLSegment}&quot;  onmouseover=&quot;changebg(this, true,'{$URLSegment}nav')&quot; onmouseout=&quot;changebg(this, false,'{$URLSegment}nav')&quot; /&amp;gt;&amp;lt;span&amp;gt;$URLSegment&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;After that add the following code in the header section, between the head tag&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/p&gt;&lt;p&gt;     function changebg(vr img,var mouseup,var image){&lt;br /&gt;          if(mouseup){&lt;br /&gt;                    document.getElementById.(img).src = &quot;themes/purplewine/images/menu/{$URLSegment}navCurrent-mouseup.gif&quot;;&lt;br /&gt;          }&lt;/p&gt;&lt;p&gt;          else{&lt;br /&gt;                    document.getElementById.(img).src = &quot;themes/purplewine/images/menu/{$URLSegment}navCurrent.gif&quot;;&lt;br /&gt;          }&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Menu buttons chaning on Hover when button are images &lt;a href=&quot;http://www.silverstripe.org/archive/show/226662?start=0#post229660&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/226662?start=0#post229660&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 16 Nov 2008 06:26:27 +1300</pubDate>
			<dc:creator>Nivanka</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/226662?start=0#post229660</guid>
		</item>
		
		<item>
			<title>Menu buttons chaning on Hover when button are images</title>
			<link>http://www.silverstripe.org/archive/show/226662#post226662</link>
			<description>&lt;p&gt;Hi &lt;br /&gt;I have a nav script &lt;br /&gt;&amp;lt;% control Menu(1) %&amp;gt;&lt;br /&gt;&amp;lt;% if LinkOrSection = section %&amp;gt;&lt;br /&gt; &amp;lt;img src=&quot;themes/purplewine/images/menu/{$URLSegment}navCurrent.gif&quot; alt=&quot;$Title&quot; /&amp;gt;&amp;lt;span&amp;gt;$URLSegment&amp;lt;/span&amp;gt;&lt;br /&gt; &amp;lt;% else %&amp;gt;&lt;br /&gt;&amp;lt;a href=&quot;$Link&quot; title=&quot;Go to the $Title.XML page&quot; &amp;gt;&amp;lt;img src=&quot;themes/purplewine/images/menu/{$URLSegment}nav.gif&quot; alt=&quot;$Title&quot; /&amp;gt;&amp;lt;span&amp;gt;$URLSegment&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;lt;% end_control %&amp;gt; &lt;/p&gt;&lt;p&gt;This changes the image on the button for the current page but I am having problems getting my head around how to make them change with the mouse. I know I could do this by setting up records in the CSS for each individual button but this menu has sub-menus I would prefer not to have to hardcode it all. Can anyone point in the direction of the right documentation or suggest how to solve this?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;MM&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Menu buttons chaning on Hover when button are images &lt;a href=&quot;http://www.silverstripe.org/archive/show/226662#post226662&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/226662#post226662&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 14 Nov 2008 06:38:48 +1300</pubDate>
			<dc:creator>mschiefmaker</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/226662#post226662</guid>
		</item>
		

	</channel>
</rss>