PDA

View Full Version : how do you put a dhtml menu in a table?


ineedanswers
10-09-2007, 06:45 PM
i know it's not as simple as just putting the code into the table tags, i've tried it. so how do you do it? anybody know?

deltawing1
10-09-2007, 06:57 PM
Actually, it should be the same as putting any other code into table tags.

If you've gotten the dHTML menu script from online somewhere, chances are that there are 2 parts to it.

First, there could some code wrapped in <script type="text/javascript"> tags. This needs to go in between the <head> </head> tags.

Then you have the snippet of code that actually displays the menu. You can past this into your table's <td> tags.

As a side note, it's probably not a good time to start using tables for layout, because they are being phased out. CSS for layout is generally considered the accepted practice.