PDA

View Full Version : Animated Collapsible Div and animated gifs



flangeway
01-22-2008, 02:18 AM
1) Script Title: Animated Collapsible Div

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm

3) Describe problem: Running the script has the effect of freezing animated gifs. Apart from refreshing the page, is there a way of 'reactivating' the gifs after running the script?

4) The script can be seen at http://www.clag.org.uk (where the default position of the script is expanded). Great script, btw.

P.S. The script works only in an XHTML doc type declared page, and doesn't seem to work in an HTML4 declaration. I'm not too bothered about this, but I'd be interested in knowing why.

ddadmin
01-22-2008, 03:57 AM
I just tested the demo on DD by adding an animated gif inside a DIV that's collapsed by default. In IE7 and FF2, the gif animates correctly after expanding the DIV.

Regarding the HTML4 doctype, that should work fine as well, as long as the syntax is valid (ie: contains a full URI), such as:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">