vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: > Nav Tree In Table

Nav Tree In Table - Posted By Marc (cr0w) on 16th Mar 08 at 5:01pm
Saw this in Wrighty's to-do list and thought I'd steal it. {Tongue Out}

Simply puts your nav tree in a table. {Smile}

Code:
 
  1. <script type="text/javascript">
  2. <!--
  3. /* Nav Tree In Table by Cr0w */
  4.  
  5. var ntree = get('nav_tree','id');
  6. ntree.innerHTML = '<table align="center" cellpadding="3" cellspacing="1" width="'+vf_width+'" class="border"><tr><td class="window1">'+ntree.innerHTML+'</td></tr></table><br />';
  7. //-->
  8. </script>
 


Global footer. {Wink}

Re: Nav Tree In Table - Posted By Michael (wrighty) on 16th Mar 08 at 5:08pm
I now officially hate you!

Re: Nav Tree In Table - Posted By Marc (cr0w) on 16th Mar 08 at 5:25pm
 
I now officially hate you!


I Smiley you too, Lefty. {Tongue Out}

Re: Nav Tree In Table - Posted By Vanquish (scott1707) on 7th Aug 10 at 2:41pm
Bump an old topic {Cheesy}
Wouldnt CSS do the job too {Smile}

Re: Nav Tree In Table - Posted By Michael (wrighty) on 7th Aug 10 at 2:55pm
Css wouldn't put it in a table no... CSS would allow you to put a border around it, yes {Smile}