Hi,
Yes I did define theDiv.. its before the if...
So you did. Guess I need new eyeballs.
Can you expand on the document.all problem?
nn4+ = document.layers[...]
ie4+ = document.all[...]
new browsers = document.getElementById(...)
that's why I wrote this earlier:
Code:
var divObj = (document.layers) ? document.layers : ( (document.all) ? document.all : document.getElementById) ;
function showLayer(divID)
{
var divStyleObj = (document.getElementById) ? divObj(divID).style : ( (document.layers) ? document.layers[divID] : document.all[divID].style );
If still confused, see the dHTML tutorials/scripts at my site (GrassBlade).
Vinny
Bookmarks