Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Give the <code>h4</code> tag in the "description" div an <code>id</code>; something like:</p> <pre><code>&lt;div id="Description"&gt; &lt;h4 id="caption"&gt;Porcelain. 14.5" H x 8" W.&lt;/h4&gt; &lt;/div&gt; </code></pre> <p>Then give each <code>a</code> a <code>title</code> with whatever you want that image's caption to be. For example:</p> <pre><code>&lt;div id="Thumb1"&gt; &lt;a href="javascript:;" title="This is my sweet caption." onClick="MM_swapImage('main','','images/MaryChatham_01.png',1)"&gt; &lt;img src="images/MaryChatham_Thumbnail_01.png" alt="Por" name="t1" id="t1" border="0"&gt; &lt;/a&gt; &lt;/div&gt; </code></pre> <p>Then, instead of using the <code>MM_swapImage</code> thing you're using, use this:</p> <pre><code>onClick = "document.getElementById('main').src = 'images/MaryChatham_01.png'; document.getElementById('caption').innerHTML = this.title;" </code></pre> <p>You also don't need that <code>href="javascript:;"</code> thing; just <code>href=""</code> is preferable. So each thumb will look something like this:</p> <pre><code>&lt;div id="Thumb1"&gt; &lt;a href="" title="This is my sweet caption." onClick="document.getElementById('main').src = 'images/MaryChatham_01.png'; document.getElementById('caption').innerHTML = this.title;"&gt; &lt;img src="images/MaryChatham_Thumbnail_01.png" alt="Por" name="t1" id="t1" border="0"&gt; &lt;/a&gt; &lt;/div&gt; </code></pre> <p>This is actually a very simple thing to do if you know some super-basic Javascript. I really recommend taking the time to learn some of the basics; you'll be amazed at what you can accomplish.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload