OK, change your doPic() function to:
Code:
function doPic(imgName, theText) {
if (ns3up || ie4up) {
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
if (document.getElementById&&typeof theText!=='undefined')
document.getElementById('maintext').innerHTML=theText
else if (document.getElementById)
document.getElementById('maintext').innerHTML=''
}
}
Change the 'landing area' HTML to:
HTML Code:
<td colspan="5"><img src="images/writing.gif" name="mainpic" id="mainpic"/><div id="maintext" style="text-align:center;font-size:.75em;margin-top:3px;"></div></td>
Use this type of syntax for the thumbnail links (this is an actual working example for your first thumbnail):
Code:
<a href="images/ediddiv/1/large/d1.jpg" onclick="doPic(this.href, '“Golden Hills#1”<br /><span class=\'hilite\'>Anne Specht</span>');return false;"><img src="images/ediddiv/1/thumbs/d1.jpg" alt="At The End" border=0 /></a>
Notes: doPic() now accepts two parameters. doPic(imgName, theText). You can still use your old thumbnail links as doPic() will detect if there is no text and display none in those cases. I switched the image to the href attribute so that non-javascript enabled browsers will be able to see the large image loaded into the window and can use their back button to return to the gallery.
Bookmarks