<!DOCTYPE html>
<html>
<head>
<title>Expanding flash example</title>
<style>
* {
padding: 0px;
margin: 0px;
border: 0px;
}
html, body {
height: 100%;
width: 100%;
overflow: hidden;
}
#adContainer {
position: relative;
height: 200px;
z-index: 1;
overflow: hidden;
}
#div2 {
position: relative;
background-color: #FFEE66;
border: 1px #CC0000 solid;
z-index: 100000;
margin: 5px;
padding: 5px;
}
</style>
<!-- Load jQuery -->
<script type="text/javascript" src="[URL unfurl="true"]http://code.jquery.com/jquery-1.6.4.min.js"></script>[/URL]
<script type="text/javascript" src="include/swfobject.js"></script>
<script type="text/javascript">
function showFlash(mode) {
if (mode=="show") {
$('#adContainer').animate({height: "400px"},500);
} else {
$('#adContainer').animate({height: "200px"},500);
}
}
$(document).ready(function(){
$('.show').click(function() {
showFlash("show");
return false;
});
$('.hide').click(function() {
showFlash("hide");
return false;
});
});
var flashvars = {},
params = {wmode:"opaque"},
attributes = {};
swfobject.embedSWF("include/expanding_ad.swf", "expanding_ad", "800", "400", "9.0.0","include/expressInstall.swf", flashvars, params, attributes);
</script>
</head>
<body>
<a class="show" href="#">Show Animation</a>
<br/>
<a class="hide" href="#">Hide Animation</a>
<div id="adContainer">
<div id="expanding_ad">
You will need <a href="[URL unfurl="true"]http://store.adobe.com/go/getflashplayer">Flash[/URL] Player 9</a> or above to view this page.<br />
</div>
</div>
<div id="div2">Text underneath</div>
</body>
</html>