<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1002938" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1002938</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/image-rollover#comment-1012983</link>
    <description> &lt;p&gt;You better change the following line:&lt;/p&gt;
&lt;p&gt;var image = new Image;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;var image = new Image();&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
Lloyd Hassell&lt;br /&gt;
   &lt;a href=&quot;mailto:lloydhass@hotmail.com&quot; class=&quot;bb-email&quot;&gt;lloydhass@hotmail.com&lt;/a&gt;&lt;br /&gt;
 &lt;a href=&quot;http://go.to/hass&quot; class=&quot;bb-url&quot;&gt;http://go.to/hass&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 29 Feb 2000 14:11:00 +0000</pubDate>
 <dc:creator>Lloyd Hassell</dc:creator>
 <guid isPermaLink="false">comment 1012983 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/image-rollover#comment-1012982</link>
    <description> &lt;p&gt;Here is a fairly lightweight version.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;code:&lt;/p&gt;
&lt;pre&gt;
&amp;lt;!--Put this in the head of your html file--&amp;gt;
&amp;lt;script language=&quot;JavaScript&quot;&amp;gt;&amp;lt;!--
if(document.images) {
 var &lt;strong&gt;image&lt;/strong&gt; = new Image;
 var &lt;strong&gt;image_over&lt;/strong&gt; = new Image;
 &lt;strong&gt;image&lt;/strong&gt;.src = &quot;&lt;strong&gt;URL&lt;/strong&gt;&quot;;
 &lt;strong&gt;image_over&lt;/strong&gt;.src = &quot;&lt;strong&gt;URL&lt;/strong&gt;&quot;;
}

 function over(name) { swap(name, &quot;_over&quot;); }
 function out(name) { swap(name, &quot;&quot;); }
 function swap(name, state) {
  if(document.images) {
   eval(&quot;document.images[&#039;&quot; + name + &quot;&#039;].src = &quot; + name + state + &quot;.src;&quot;); }
 }
//--&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;!--And this where you want the rollover--&amp;gt;
&amp;lt;a href=&lt;strong&gt;URL&lt;/strong&gt; onmouseover=&quot;over(&#039;&lt;strong&gt;image&lt;/strong&gt;&#039;);&quot;
            onmouseout=&quot;out(&#039;&lt;strong&gt;image&lt;/strong&gt;&#039;)&quot;&amp;gt;
&amp;lt;img src=&quot;images/image.gif&quot; border=0 name=&quot;&lt;strong&gt;image&lt;/strong&gt;&quot;&amp;gt;&amp;lt;/a&amp;gt;
[/code]

Just replace &lt;strong&gt;image&lt;/strong&gt; with an appropriate name for your button and URL with the appropriate URL.

For each button you need to make another pair of &lt;strong&gt;image&lt;/strong&gt; and &lt;strong&gt;image-over&lt;/strong&gt; vars.


------------------
&quot;The way that can be told is not the eternal,
 it cannot be defined or explained,
 it can only be experienced...&quot; Ashida Kim

[This message has been edited by joshuac (edited 28 February 2000).] &lt;/pre&gt;&lt;/blockquote&gt;</description>
     <pubDate>Mon, 28 Feb 2000 19:38:00 +0000</pubDate>
 <dc:creator>joshuac</dc:creator>
 <guid isPermaLink="false">comment 1012982 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
