jquery - width and height of a swf based on screen resolution -


my swf effect appears on div if press button. problem div has size in %, need swf have same width , height. here code tried( show code swf size, because jquery code appear on button press works):

    <div id="be2">     <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"     id="border-effect2" align="middle">                 <param name="movie" value="img/border-effect.swf" />                 <param name="quality" value="high" />                 <param name="bgcolor" value="transparent" />                 <param name="play" value="true" />                 <param name="loop" value="true" />                 <param name="wmode" value="transparent" />                 <param name="scale" value="showall" />                 <param name="menu" value="true" />                 <param name="devicefont" value="false" />                 <param name="salign" value="" />                 <param name="allowscriptaccess" value="samedomain" />                 <!--[if !ie]>-->                 <object type="application/x-shockwave-flash" data="img/border-effect.swf" width="100%" height="100%">                     <param name="movie" value="img/border-effect.swf" />                     <param name="quality" value="high" />                     <param name="bgcolor" value="transparent" />                     <param name="play" value="true" />                     <param name="loop" value="true" />                     <param name="wmode" value="transparent" />                     <param name="scale" value="showall" />                     <param name="menu" value="true" />                     <param name="devicefont" value="false" />                     <param name="salign" value="" />                     <param name="allowscriptaccess" value="samedomain" />                 <!--<![endif]-->                     <a href="http://www.adobe.com/go/getflash">                         <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="get adobe flash player" />                     </a>                 <!--[if !ie]>-->                 </object>                 <!--<![endif]-->             </object>         </div> <script language="javascript" type="text/javascript"> document.getelementbyid("border-effect2").style.width = "40%" ; document.getelementbyid("border-effect2").style.height ="90%" ; </script> 

however, didn't work. ideas?


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -