<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1021957" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1021957</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/javascript-rollovers#comment-1135584</link>
    <description> &lt;p&gt;Well if you have ever noticed most of the professionals have gotten away from frames.&lt;/p&gt;
&lt;p&gt;They have too many qwuirks and issues when you are trying to get a project done quickly and efficiently. The look great from a pure HTML aspect, I mean what other way can you update one file to change the site right...well I think most other designers will agree server scripts have made frames pretty much un-needed.&lt;/p&gt;
&lt;p&gt;That said,your image thing, is rather simple with JS and the DOM&lt;/p&gt;
&lt;p&gt;For an image swap, you need some JS actions, and a few functions&lt;/p&gt;
&lt;p&gt;OnMouseOver&lt;br /&gt;
OnMouseOut&lt;br /&gt;
OnClick&lt;/p&gt;
&lt;p&gt;(you could use CSS is I am not mistaken, because of the A:link, A:active A:hover, but I will use JS to make sure it works)&lt;/p&gt;
&lt;p&gt;Here is an example&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;foo.jpg&quot; id=&quot;switch&quot; /&gt; (I know the needed tags are missing, just an example)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;cad.html&quot; taget=&quot;contentFRAME&quot;&gt;Cad&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Alright lets assume the header load with an image already, that foo.jpg, and I gave it the id of switch.&lt;/p&gt;
&lt;p&gt;&amp;lt;script language=&quot;JavaScript&quot;&amp;gt;&lt;br /&gt;
var default;&lt;/p&gt;
&lt;p&gt;SwitchImage(image){&lt;br /&gt;
   default = document.getElementById(&#039;switch&#039;).src; //might need .value added after src&lt;br /&gt;
   document.getElementById(&#039;switch&#039;).src= &quot;new.jpg&quot;;&lt;br /&gt;
}&lt;br /&gt;
DefaultImage(){&lt;br /&gt;
   document.getElementById(&#039;switch&#039;).src = default;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 04 Aug 2003 14:43:45 +0000</pubDate>
 <dc:creator>ShaneS</dc:creator>
 <guid isPermaLink="false">comment 1135584 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
