<body onLoad="setTimeout('hideSuperPict()',2000)"> <div id="superHolder"> <embed src="image/super.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="735" height="300" /> </div> <div id="text">test</div> </body>
<script language="javascript" type="text/javascript"> function hideSuperPict() { var hideElement = document.getElementById("superHolder"); var childs = hideElement.childNodes; for (var loop=0; loop < childs.length; loop++) { if ("EMBED" != childs[loop].tagName) { continue; } else childs[loop].style.cssText="display:none;"; } hideElement.style.cssText="display:none;"; } </script>