Stránka 1 z 1

na windows a linux OK, SAFARI 3+4 na OSX ne

Napsal: 23 úno 2010 19:40
od simPod
mam tenhle kod:

Kód: Vybrat vše

<html>
   <head>
      <title>web</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css">
            html {
   height: 100%;
   margin: 0;
   padding: 0;
   background-color: #000000;
   overflow: scroll;
   overflow-x: hidden;
   -ms-overflow-x: hidden;
}
body {
   height: 100%;
   margin: 0;
   padding: 0;
   background-color: #000000;
}
#content {
   position: relative;
   background: #000;
   height: 100%;
   margin: 0;
   padding: 0;
}
#myAlternativeConent {
   height: 100%;
   background-color: #000000;
}
img.bg {
   height: 100%;
   width: 100%;
   position: fixed;
   top: 0;
   left: 0;
}
    </style>   
<script type="text/javascript" src="swfobject.js"></script>   
  </head>
  <body>
    <div id="content">
<script type="text/javascript">
         var flashvars = {};
         var params = {};
         params.menu = "false";
         params.allowscriptaccess = "always";
         var attributes = {};
         attributes.id = "main";
         swfobject.embedSWF("flash.swf", "content", "100%", "800", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
    </script>
    </div>
    <div id="myAlternativeContent">         
      <a href="http://www.adobe.com/go/getflashplayer">            
        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player">         </a>   
    </div>
    <div>
    <img src="bg.jpg" class="bg">
    </div>
  </body   
</html>


to by melo udelat, ze se zobrazi flashovy objekt, roztahne se na 100% width, 800px height a pod nim se zobrazi div s obrazkem roztazenym na 100% width a height, aby to vyplnilo zbytek stranky

na windows to jede ve vsech browserech, ale na Macu to zlobi. obrazek bg.jpg se roztahne pres celou obrazovku a zakryje flash. problem je, ze nemuzu moc experientovat, protoze mac nemam dostupny

nejake rady?

Re: na windows a linux OK, SAFARI 3+4 na OSX ne  Vyřešeno

Napsal: 24 úno 2010 07:43
od CZechBoY

Re: na windows a linux OK, SAFARI 3+4 na OSX ne

Napsal: 24 úno 2010 21:42
od simPod
GRATZ!