![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Oct 2007
Posts: 3
Rep Power: 0
![]() |
Changing table cell contents using DHTML
Hi. I hope it's not too presumptuous of me to ask for help in just my second post, but I'm having a little problem here and my understanding of the JavaScript DOM is spotty at best.
What I'm trying to do is have a 2-cell horizontally laid out table that functions thus: The left-hand cell contains an unordered list of links and the right cell contains HTML-formatted content consisting of a single image and some wrapped text. Clicking one of a list of hyperlinks in a left-hand table cell triggers changes to the contents of the right-hand cell. Is there a way to store the HTML for the content cell into a string variable or an array, and then to write the appropriate variable's contents into the right-hand cell when clicking each link? Or maybe just place the html right into the <a> tag for each list item? |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [beginner] how to reverse the contents of a table | mariogarcia | Java | 4 | Nov 4th, 2005 3:12 AM |
| text in a table cell | glevine | JavaScript and Client-Side Browser Scripting | 5 | Jun 12th, 2005 8:37 AM |
| check cell one below - if found add to cell above | crmpicco | Visual Basic | 0 | May 9th, 2005 6:32 AM |
| word wrap in a table cell? | kerriganm | HTML / XHTML / CSS | 4 | May 6th, 2005 5:38 PM |
| Change background on a table row (or cell) | kurifu | Java | 2 | Jan 11th, 2005 6:38 PM |