dynamically show text

Discussion in 'JavaScript' started by bumbar, Oct 21, 2008.

  1. #1
    Hallo!

    I have a menu something similar:

    text1
    text2
    text3


    The page is split on two cells. He is the menu in the left cell, the writing must show up in the rights as well

    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><a href="">text1</a></td>
        <td>The writing comes here</td>
      </tr>
    </table>
    
    HTML:

    Does somebody have got an idea? :)

    Thanx!
     
    bumbar, Oct 21, 2008 IP
  2. BrandonGregory

    BrandonGregory Peon

    Messages:
    28
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'm not quite sure what you're trying to do, but try this: Give each table cell (or each one that you need to change content in) an ID, then just use the innerHTML property (or is that an object?) to change it to whatever you want. If you need to change it to a variety of different things, pass that in to the function that changes the text, along with the ID of the target cell.
     
    BrandonGregory, Oct 21, 2008 IP