Welcome, Guest
  • Author Topic: Mozilla,javascript, flash  (Read 1641 times)

    Elena

    • Server what's that
    • *
    • Posts: 50
      • View Profile
      • Email
    Mozilla,javascript, flash
    « on: 02/12/04, 04:08 »
    Hi,

    I'm trying to change the size of a certain layer from flash calling a javascript function, it works fine for explorer, but mozilla goes crazy  :P


    this is the code:
    Code: [Select]

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>"test"</title>
    <script type="text/javascript">

    function newSize(sX,sY) {


       if(document.all && !document.getElementById) {
          document.all['myFlashLayer'].style.pixelWidth = sX;
          document.all['myFlashLayer'].style.pixelHeight = sY;
       
       }else{
          document.getElementById('myFlashLayer').style.width = sX;
          document.getElementById('myFlashLayer').style.height = sY;
       
       }
    }

    </script>


    </head>
    <BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0">
    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td align="center" valign="top"><div id="myFlashLayer">
     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="100%" id="myFlashMovie" align="">
       <param name=movie value="myFlashMovie.swf">
       <param name=salign value="lt">
       <param name=quality value="high">
       <param name=scale value="noscale">
       <param name=bgcolor value="#FFFFFF">
       <embed src="myFlashMovie.swf" quality="high" scale="noscale" bgcolor="#FFFFFF"  width="100%" height="100%" name="myFlashMovie" Salign="lt" type="application/x-shockwave-flash" pluginspmyFlashLayere="http://www.macromedia.com/go/getflashplayer"></embed>
     </object>
    </div> </td>
     </tr>
    </table>

    </body>
    </html>




    can anyone see the problem?

    thanks

    :)

    vesa kortelainen

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 3450
      • View Profile
    Re:Mozilla,javascript, flash
    « Reply #1 on: 03/01/04, 03:23 »
    just a wild guess, but mozilla may not support layer's as IE does.