Jump to content


Making expandable tables.


5 replies to this topic

#1 Kicknbeatz

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 05 February 2006 - 09:01 AM

Well, I've seen it on www.twod.co.uk/comp

I've tried doing it but I can't work it out. Anyone know how?

#2 _*spoiled-dezigner_*

  • Guests

Posted 05 February 2006 - 10:34 AM

try to use % (percent) not px..

#3 Stu

    Retired P2L Staff

  • Publishing Betazoids
  • PipPipPipPip
  • 1,761 posts
  • Gender:Male

Posted 05 February 2006 - 12:03 PM

he means when you click a link it expands the table to be visible.

try looking through the javascript tutorials on here for it...

#4 greg

    Jedi In Training

  • Members
  • PipPip
  • 499 posts
  • Location:New York City
  • Interests:Fine art, web and graphic design, naval architecture, chess, and sports.

Posted 05 February 2006 - 01:19 PM

I don't mean to be plugging my site, but you can take a look at the script I use for my navigation: http://www.eeight.com

Instead of making the new content pop up in a different div like I did, you can make it appear in the same cell, thus stretching the cell.

#5 Kicknbeatz

    Young Padawan

  • Members
  • Pip
  • 3 posts

Posted 10 February 2006 - 05:47 AM

Thanks to Jay I found the tutorial, but I know nothing about JavaScript. http://www.netlobo.com/div_hiding.html

It tells me to do something with this, but I don't know what.

function toggleLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}


#6 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 10 February 2006 - 08:45 AM

Dynamicdrive.com has ready to use JS scripts.
This one is pretty cool in my opinion

http://dynamicdrive....switchmenu2.htm





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users