Hello,
I am looking for a little assistance. Using the following code, I can click and change images with a brief “title” description…This is great and all but I would like to be able to add HTML to format the image description. When I insert tags it just displays the tags…any recommendations?
Thank you!
[SIZE=2]<script type=”text/javascript” language=”javascript”>
function showPic (whichpic) {
if (document.getElementById) {
document.getElementById(‘placeholder’).src = whichpic.href;
if (whichpic.title) {
document.getElementById(‘desc’).childNodes[0].nodeValue = whichpic.title;
} else {
document.getElementById(‘desc’).childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
}
return false;
} else {
return true;
}
}
</script>
<!–BEGIN LARGE IMAGE DISPLAY–>
<table><TR><TD>
<div id=”desc”>Click A Thumbnail</div>
<img id=”placeholder” src=”place_holder.image.jpg” alt=”” /><BR>
</TD>
<td>
</TD>
<!–THUMBNAIL IMAGES BEGIN–>
<td><a onclick=”return showPic(this)” href=”img1.jpg” title=”Photo1 desc”><img src=”img1_t.jpg” border=0><BR></a>
<a onclick=”return showPic(this)” href=”img2.jpg” title=”Img2 Desc”><img src=”img2_t.jpg” border=0><BR></a>
[SIZE]