View Single Post
Old 12-03-2012, 07:10 PM   PM User | #7
attackmac
New to the CF scene

 
Join Date: Nov 2012
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
attackmac is an unknown quantity at this point
Quote:
Originally Posted by waxdoc View Post
JavaScript is not JAVA. It would be helpful if you can give online example of your page. Now noting your "thumbnail" code, wonder if subsequent page at http://www.jacquimorgan.com/hist/index.html might be closer to your requirements. The code used is outdated and messy, but basically used innerHTML -- which is not an "elegant" solution. I'm not a JavaScript pro; hopefully one will step forward.

Code:
<div id="thumbnails">

<a href="#nogo" onclick="javascript:loadpage('03_CalendarScottPrinting.jpg')" 
onMouseOver="MGOn('MG1'); document.getElementById('text').innerHTML ='Scott Printing Calendar'" title="Scott Printing Calendar">   
	<img name="1" alt="Scott Printing calendar" src="03_CalendarScottPrinting.jpg"  title="Scott Printing Calendar" /></a>

<a href="#"  onclick="javascript:loadpage('04_ManGoat.jpg')" 
onMouseOver="MGOn('MG2'); document.getElementById('text').innerHTML ='American Artist Cover art'" title="American Artist Cover art"> 

     <img name="2" alt="American Artist Cover art" src="04_ManGoat.jpg" title="American Artist Cover art" /></a>
The HTML, as follows, uses the TEXT id referenced in document.getElementById('text').innerHTML ='__'
Code:
<div id="space" class="scaler">
<img src="04_AmericanArtist.jpg" alt="MGholder" id="MGholder" name="MGholder" hspace=0 vspace=0 border=1 class="MGholder" /> 
<br />
<p id="text"> American Artist cover</p>
</div> <!--closeSPACE-->
Do I have to change my other coding to support this code? Reason I ask is because just a copy paste is not working.
attackmac is offline   Reply With Quote