> On Behalf Of [EMAIL PROTECTED] > > If you use JS to write specific styles to the document, there > > should be > > nothing "popping in and out". > > How do you work that one out? Javascript cannot run until the page has > (mostly) loaded, so I can vouch for getting a 'flash of extra content' > on many of my pages. Since the hidden content cannot be re-enabled > without JS on, I have to make the default appearance to be 'visible', > then hide it asap.
The idea is not to parse the tree looking for an element to hide, but rather use document.write() to write CSS declaration(s) that'll hide that element right from the start. Check the solution below to see that there is a lateral jump due to links that are added once the document is done loading, but that there is no vertical jump due to the hiding of the DDs. http://www.tjkdesign.com/articles/toggle_elements.asp --- Regards, Thierry | www.TJKDesign.com ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
