<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>Images and Rollovers | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/</link>
  <description>A Layout forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>01/27/08, 027 39 2008 2008:%i:1201415998 01:39:58</pubDate>
  <lastBuildDate>06/07/13, 158 15 2013 2013:%i:1370585718 02:15:18</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>Anders Wick said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2218</link>
    <description><![CDATA[Hey, does anybody know how to make it so when someone hovers their mouse over a word in my text it will change an image.  For example, i would like to have a product list, of about 10 different products, and instead of making 10 separate pages, i just want to create a div tag, above the list, so when they roll their mouse over each item, that corresponding image appears in the above tag.  I would appreciate any and all help<br />
Thanks!]]></description>
    <pubDate>01/27/08, 027 39 2008 2008:%i:1201415998 01:39:58</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2218</guid>
   </item>
     <item>
    <title>Rick22 Flair said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2231</link>
    <description><![CDATA[i&#39;ve been designing web sites since 3 years now...<br />
but i&#39;ve never learnt this.. i wonder y..?<br />
you can see an excellent example of this on www.netcarshow.com]]></description>
    <pubDate>02/10/08, 041 00 2008 2008:%i:1202623228 01:00:28</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2231</guid>
   </item>
     <item>
    <title>Deb Das said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2421</link>
    <description><![CDATA[Hey - with div tag it is difficult to do this do you need something like our <a href="http://www.webguru-india.com" class="external">website</a> <a class="external" href="http://www.webguru-india.com,">http://www.webguru-india.com,</a> when you mouseover the image will change or go to <a class="external" href="http://www.dynamicdrive.com">http://www.dynamicdrive.com</a> for JavaScript code...]]></description>
    <pubDate>07/08/08, 190 04 2008 2008:%i:1215511440 06:04:00</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2421</guid>
   </item>
     <item>
    <title>Deb Das said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2422</link>
    <description><![CDATA[Hey - with div tag it is difficult to do this do you need something like our <a href="http://www.webguru-india.com" class="external">website</a> <a class="external" href="http://www.webguru-india.com,">http://www.webguru-india.com,</a> when you mouseover the image will change or go to <a class="external" href="http://www.dynamicdrive.com">http://www.dynamicdrive.com</a> for JavaScript code...]]></description>
    <pubDate>07/08/08, 190 30 2008 2008:%i:1215516621 07:30:21</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2422</guid>
   </item>
     <item>
    <title>Scott Haines said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2450</link>
    <description><![CDATA[Hey Guys, this one is easy. <br />
<br />
The best way to trigger one effect from another is like so.<br />
<br />
<br />
<br />
<br />
function switchimg(obj,num){<br />
var theObj = document.getElementById(obj);<br />
var theCurNum = num;<br />
var img1 = "http://www.your-site/images/your-image.jpg";<br />
var img2 = "http://www.your-site/images/your-image2.jpg";<br />
if(num == &#39;1&#39<img src="/images/emoticons/wink.png" class="smiley" />{<br />
theObj.innerHTML = "img src=""+img1+"" border="0" alt="" title=""/>";<br />
} else {<br />
we know num = 2<br />
theObj.innerHTML = "theObj.innerHTML = "img src=""+img2+"" border="0" alt="" title=""/>";";<br />
}<br />
}<br />
<br />
<br />
<br />
<br />
a href="javascript://" onmouseover="switchimg(&#39;theimg&#39;,&#39;2&#39<img src="/images/emoticons/wink.png" class="smiley" />;">roll over me/a><br />
div id="theimg">img src="http://www.your-site/images/your-image.jpg" border="0" alt="" title=""/><br />
/div><br />
<br />
<br />
<br />
-----<br />
<br />
As you can see you are simply doing a re-write of the element via DOM scripting, this can be effective when wanting to change images, or actual page content via a user&#39;s interaction with the page.<br />
<br />
Check out the book DOM Scripting <a href="http://www.amazon.com/DOM-Scripting-Design-JavaScript-Document/dp/1590595335/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1217520774&sr=8-1" class="external">DOM Scripting - Book</a> for more useful tips on dynamic HTML (DHTML)<br />
<br />
Cheers,<br />
Scott Haines<br />
<a href="http://www.newfrontproductions.com" class="external">Bay Area Website Design - Newfront Creative</a>]]></description>
    <pubDate>07/31/08, 213 14 2008 2008:%i:1217517251 11:14:11</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2450</guid>
   </item>
     <item>
    <title>Scott Haines said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2451</link>
    <description><![CDATA[Hey Just a quick update. I keep getting more and more // added to my post and it makes it real hard to get the point across. So basically, you have a roll-over element that triggers function, this function takes 2 parameters, 1st is the id of the image, the 2nd is the number for the image you want to display. When you roll over the image, the 1st parameter (the reference to the image div) is re-written so the image updates.<br />
<br />
- Scott]]></description>
    <pubDate>07/31/08, 213 26 2008 2008:%i:1217517989 11:26:29</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/images_and_rollovers/#p2451</guid>
   </item>
   </channel>
</rss