From: Matthew B. <mat...@co...> - 2005-07-19 14:15:43
|
Peter Crowther wrote: >>From: [...] Brian Peter Clark >>On IE 6.0 sp 2, running off the Sun app server, when the amazon, >>google boxes in the side frame first appear there is a brief flash of >>the expanded forms before they collapse. Does anyone else get >>this? > > > Yes. Basically, one has a choice: > > 1) Render the content expanded, then use Javascript to collapse the > content. Leads to a brief flash, as the expanded content is shown > before it is collapsed. However, this degrades gracefully if the user > has Javascript switched off. > > 2) Rander the content collapsed. No flash, but no content if the user > has Javascript switched off. > > 3) Make the initial page a test page that detects (for example) whether > the user has Javascript turned on, and use this to choose between > techniques (1) and (2) when rendering. 4) Have JavaScript collapse the items as then come in rather than waiting for the whole page to load. I believe Aggie did this by having an onload for each div that should be colapsed. A different evil hack might be to get some JavaScript in the header to output some CSS that sets the boxes to be colapsed. This way you shouldn't get the flashes as the CSS would get parsed before the page is rendered. -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |