> what you mean when you say > that the javascript is hiding divs based on "the order on which they are > found in the divs array."
Your code: divs=document.getElementsByTagName("div") for (i=5;i<15;i++){ divs[i].style.display="none"; } is grabbing every div on the page, and then setting display="none" on the sixth through 15th . But if you were add or remove divs before the current sixth one, it would wreck your page. Better would be to wrap just those divs in another wrapper (or they may already be in a perfectly usable wrapper) and use this instead: var wrapper=document.getElementById("mywrappername"); var divs=wrapper.getElementsByTagName("div"); for (var i=0,len=divs.length;i<len;i++){ divs[i].style.display="none"; } Now you can make edits to your page, and no matter, the divs within (and only those within) your wrapper div will be made to disappear. Hope that helps. -- E. Michael Brandt www.divaHTML.com divaPOP : standards-compliant popup windows divaGPS : you-are-here menu highlighting divaFAQ : FAQ pages with pizazz www.valleywebdesigns.com JustSo PictureWindow JustSo PhotoAlbum -- ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/