swf file not getting displayed in chrome
-
Hy, I have shown a swf file inside the object tag which was embedded into an iframe through jaava script .The following code works in IE 8 but is not working in chrome.I have pasted my code below. <script type="text/javascript"> function populateIframe(FilePath) { // var FilePath='../images/suche.swf'; var ifrm = document.getElementById('ucCMSHTML_ifrmCMSHTML'); ifrm = (ifrm.contentWindow) ? ifrm.contentWindow : (ifrm.contentDocument.document) ? ifrm.contentDocument.document : ifrm.contentDocument; ifrm.document.open(); ifrm.document.write('<object height="300px" width="100%" style="border: 0 0 0 0 ; background-color: #FFFFFF;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ><param name="movie" value="'+FilePath+'\" ><param name= wmode value ="opaque"/> </object>'); ifrm.document.close(); contentEditable="true" ; } </script> <table width="100%"> <tr> <td> <%-- <asp:Literal ID="ltrcmsHTML" runat="server"></asp:Literal>--%> <div style='border: 1; width: 100%; height: 100%; overflow: auto; padding: 0px'> <iframe id='ifrmCMSHTML' runat='server' width='100%' height='300' scrolling='no' frameborder='0' style='border: 0 0 0 0; background-color: #FFFFFF;'></iframe> </div> </td> </tr> </table> Please Help.