Help - Search - Members - Calendar
Full Version: Swap Image Text Rollover
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
lindy
I am using Dreamweaver 8 to edit an existing site. On one of the pages, there are thumbnail images which are also rollover links to portfolio pages on the site. When you mouseOver the images, the image Swaps, which I know how to do. The part I can't figure out is how to change the text that comes up with each image. I can't find it anywhere in the file and the only thing that seems relevant in the code is that in that part of the table, it says <em><span id="textRollover"></span></em>.

I have to change out some of the projects and associated images. Do you know where I can input the new text when I place the new images?

http://www.jensenandhalstead.com/portfolio/index.html

Thank you!
pandy
QUOTE
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
if (a[0]=="portfolio1"){document.getElementById("textRollover").innerHTML = "Advocate Illinois Masonic Medical Center, Chicago, IL";}
if (a[0]=="portfolio2"){document.getElementById("textRollover").innerHTML = "Riverside Medical Center, Kankakee, IL";}
if (a[0]=="portfolio3"){document.getElementById("textRollover").innerHTML = "Loyola University Health System, Oakbrook Terrace, IL";}
if (a[0]=="portfolio4"){document.getElementById("textRollover").innerHTML = "The Wish Center, Downers Grove, IL";}
if (a[0]=="portfolio5"){document.getElementById("textRollover").innerHTML = "OAK Surgical Institute, Bradley, IL";}
if (a[0]=="portfolio6"){document.getElementById("textRollover").innerHTML = "Presbyterian Homes, Evanston, IL";}
if (a[0]=="portfolio7"){document.getElementById("textRollover").innerHTML = "Westwood Estates, Kankakee, IL";}
if (a[0]=="portfolio8"){document.getElementById("textRollover").innerHTML = "The Moorings of Arlington Heights, Arlington Heights, IL";}
lindy
I am new to this and didn't look at the right part of the code, but once I scrolled up, there it was. Duh!

Thank you!

pandy
You are welcome. The editor's Find function can be useful. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.