Forum Moderators: open
sample:
function hide_boxes(){
temp=document.form1.menu1.value;
for(i=1;i<=5;i++){
document.getElementById("div"+i).style.position='absolute';
document.getElementById("div"+i).style.visibility='hidden';
}
setTimeout("show_boxes()",100);
}
function show_boxes(){
temp=document.form1.menu1.value;
for(i=1;i<=temp;i++){
document.getElementById("div"+i).style.position='relative';
document.getElementById("div"+i).style.visibility='visible';
}
}
this works fine in NS, It works in IE except it does not change the div box back to visible. Is there some kind of limited access to div style in IE. Any other ways to accomplish this would be great as well.
Is there some kind of limited access to div style in IE.
Not that I've heard of.
Any other ways to accomplish this would be great as well.
That all depends what 'this' is :)
If you want the boxes to disappear and also not take up any space, the standard approach would be not to bother with visibility / position, but toggle the 'display' property instead.