Your page is invalid, you cannot have two opening <html> tags. If the page is made valid, IE behaves like FF. If however you remove the height specifications and make the page valid, things work out in both (and other) browsers:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Ani-Collapse Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
img {
border: none;
}
</style>
<script type="text/javascript" src="jquery-1.2.2.pack.js"></script>
<script type="text/javascript" src="animatedcollapse.js">
/***********************************************
* Animated Collapsible DIV v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
animatedcollapse.addDiv('jason')
animatedcollapse.addDiv('kelly')
animatedcollapse.addDiv('michael')
animatedcollapse.init()
</script>
</head>
<body>
<div>
<p><b>Example 1 (individual):</b></p>
<a href="javascript:animatedcollapse.toggle('jason')"><img src="http://i25.tinypic.com/wa0img.jpg" alt=""></a>
<div id="jason" style="width: 300px; background: #FFFFCC; display:none">
<b>Content inside DIV!</b><br>
<b>Note: Fade effect enabled. Height programmically defined. DIV hidden using inline CSS.</b><br>
<p><b>Example 2 (individual):</b></p>
<a href="javascript:animatedcollapse.toggle('kelly')"><img src="http://i25.tinypic.com/wa0img.jpg" alt=""></a>
<div id="kelly" style="width: 300px; background: #D2FBFF; display:none">
<b>Content inside DIV!</b><br>
<b>Note: Fade effect enabled. Height programmically defined. DIV hidden using inline CSS.</b><br>
<p><b>Example 3 (individual):</b></p>
<a href="javascript:animatedcollapse.toggle('michael')"><img src="http://i25.tinypic.com/wa0img.jpg" alt=""></a>
<div id="michael" style="width: 300px; background: #E7FFCC; display:none">
<b>Content inside DIV!</b><br>
<b>Note: Fade effect enabled. Height programmically defined. DIV hidden using inline CSS.</b><br>
</div>
</div>
<p><b>Bottom Text</b></p>
</div>
</div>
</body>
</html>
Bookmarks