After struggling with this, gave up onclick ”loadpage” script on the THUMBNAILS for a pop-window, and exchanged the “imgOn” onmouseover for http://www.alistapart.com/articles/imagegallery JavaScript Image Gallery by Jeremy Keith to change images and titles:
Code:
<a href="03_CalendarScottPrinting.jpg" onmouseover="return showPic(this)" title="Scott Printing Calendar">
<img name="1" alt="Scott" src="03_CalendarScottPrinting.jpg" /></a>
<a href="04_ManGoat.jpg" onmouseover="return showPic(this)"
title="American Artist cover art">
<img name="2" alt="American Artist" src="04_ManGoat.jpg" /></a>
Adding the onclick “loadpage” still loaded image in pop-window, but – since the href=”imageName” – it also changed document window to display image so dropped the "loadpage" script. Had problem, too, with linking logo image to home page as substitute for CSS Home button.
Results can be viewed at http://jacquimorgan.tripod.com/hist/index.html.
====================================
Even better is .innerHTML (which allows for original script to preload images and pop-window) at http://jacquimorgan.tripod.com/child/index.html#top:
Code:
<a href="#nogo" onclick="javascript:loadpage('LightsAlongPath.jpg')"
onMouseOver="MGOn('MG1'); document.getElementById('text').innerHTML ='cover'"> <img name="1" class="thumb" alt="Lights along Path" title="Lights along the Path" src="LightsAlongPath.jpg" /></a>
<a href="#" onclick="javascript:loadpage('c_06.jpg')"
onMouseOver="MGOn('MG2'); document.getElementById('text').innerHTML ='from Lights along Path'"> <img name="2" class="thumb" alt="from Lights along Path" title="from Lights along Path" src="c_06.jpg"/></a>
Got .innerHTML info at http://javascript.about.com/library/bldom06.htm and http://www.tizag.com/javascriptT/jav...-innerHTML.php . Shame on me making it more complicated.
Now must get captions in pop-window.
Bookmarks