Take a look at this example link I'm doing. Wait till the page load to se the floating flash (Spiderman Flash Test).
http://www.pulsorock.com/index-dhtml.php
If you see the floating flash gets behind the other flash elements on the page. Will there be a way to preventing this? I want that the floating flash get on the top of all the content of the page, but haven't been successful on that. Here is the code I'm using for displaying the floating flash on the page (it can also be seeing on the source code at the bottom). If anyone know of a better code to do this and prevent the floating flash to get behind other flash elements, please let me know... I would be very appreciated.
Code:<script language="JavaScript"> <!-- document.write(''); function onepixal() { document.all.object1.style.pixelTop=(-1000); } function moveback() { document.all.object1.style.pixelTop=(-1); } var ShockMode = 0; // checking for flash 5 var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0; if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 1) { ShockMode = 0; } else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) { document.write('<S' + 'CRIPT LANGUAGE=VBScript\> \n'); document.write('on error resume next \n'); document.write('ShockMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n'); document.write('<\/S' +'CRIPT\> \n'); } if ( ShockMode ) { document.write('<DIV id="object1" style="position:absolute; width:750; height:600; visibility:show; left:0px; top:85px; z-index:2">'); document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'); document.write(' codebase="http://active.macromedia.com/flash/cabs/swflash.cab"'); document.write(' ID=banner WIDTH=740 HEIGHT=450>'); document.write(' <PARAM NAME=movie VALUE="http://www.pulsorock.com/banners/demos/demo_spiderman.swf">'); document.write(' <PARAM NAME=wmode VALUE=transparent> '); document.write(' <PARAM NAME=quality VALUE=autohigh> '); document.write('</OBJECT></DIV>'); } else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){ } document.write(''); //--> </script>




Bookmarks