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?
Making expandable tables.
Started by Kicknbeatz, Feb 05 2006 09:01 AM
5 replies to this topic
#1
Posted 05 February 2006 - 09:01 AM
#2 _*spoiled-dezigner_*
Posted 05 February 2006 - 10:34 AM
try to use % (percent) not px..
#3
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...
try looking through the javascript tutorials on here for it...
#4
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.
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
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.
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
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
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
