Results 1 to 1 of 1

Thread: Changing table contents

  1. #1
    Join Date
    May 2009
    Thanked 0 Times in 0 Posts

    Question Changing table contents

    I'm going to try to keep this simple.

    I want to have a two-column table where, using javascript, I can click on images in cell 1 and have the contents in cell 2 change. Similar to this:

    <SCRIPT language=JavaScript>
    <!-- Begin
    var description = new Array();
    description[0] = "table one here";
    description[1] = "table two here";
    description[2] = "table three here";
    description[3] = "table four here";
    //  End -->
    <TD width=200>
    <A onmousedown="Words.innerHTML = description[0];">table one</A> <br>
    <A onmousedown="Words.innerHTML = description[1];">table two</A> <br>
    <A onmousedown="Words.innerHTML = description[2];">table three</A> <br>
    <A onmousedown="Words.innerHTML = description[3];">table four</A> </TD>
    <TD width=600><A id=Words>Click a link to the left..</A> </TD></TR></TBODY></TABLE>
    This doesn't support much other than text-manipulation coding.. and I've got little skill if any at all. I found this script on

    In short, I want to put several tables that are very similar to the following code into a single table to save a LOT of space.

    <table border="0" cellpadding="0" cellspacing="0" width="499">	<tbody><tr><td border="0" colspan="2">
    <b>Rune Essence</b></td></tr><tr><td border="0">
    <img src=""></td><td border="0">
    <img src=""></td></tr><tr><td border="0" colspan="2">
    <img src="" width="499"></td></tr></tbody></table>
    I have tried just putting that code into the description in the header, but it doesn't work. Can anyone help?
    Last edited by blue!; 05-31-2009 at 01:51 PM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts