Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q642 How can I make a thumbnail image selected show a full-size image in another table cell on the same page?

You are here: irt.org | FAQ | JavaScript | Image | Q642 [ previous next ]

Try something like:

<SCRIPT LANGUAGE="JavaScript"><!--
function show(name,src) {
    if (document.images)
        document.images[name].src = src;
}
//--></SCRIPT>

<TABLE>
  <TR>
    <TD>
      <A HREF="javascript:show('myimagename','myimage.gif')"><IMG SRC="smallmyimage.gif" WIDTH="50" HEIGHT="50" BORDER="0"></A>
    </TD>
  </TR>
  <TR>
    <TD>
        <IMG SRC="blank.gif" NAME="myimagename" HEIGHT="200" WIDTH="200">
    </TD>
  </TR>
</TABLE>

Feedback on 'Q642 How can I make a thumbnail image selected show a full-size image in another table cell on the same page?'

©2018 Martin Webb