Berlin Property - vBulletin - Debt Consolidation - WoW Gold - Wordpress Themes

PDA

View Full Version : dynamically show text


bumbar
Oct 21st 2008, 6:43 am
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>



Does somebody have got an idea? :)

Thanx!

BrandonGregory
Oct 21st 2008, 3:10 pm
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.