Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [css / swf ] problem z osadzeniem menu flash pod ie
Forum PHP.pl > Forum > Przedszkole
wojtekwro
Witam,

napotkałem się na taki oto problem,

składając stronę dostałem od grafika menu we flashu, wszystko ok umieściłem w odpowiednim divie włączyłem ff i działa, przyszedł czas na coś co ludzie nazywają przeglądarką internet explorer ;]
pod IE pomiędzy menu, a banerem powstaje puste miejsce jakie jest wykorzystywane do rozwinięcia menu oto kod css

  1. html, body {background: #fff;
  2. text-align:center;
  3. padding:0 auto;
  4. margin:0 auto;
  5.  
  6. }
  7. div.id00 {
  8. position: inherit;
  9. text-align:center;
  10. padding:0 auto;
  11. margin:0 auto;
  12. top:15px;
  13. text-align:center;
  14. width:990px;
  15. }
  16.  
  17. div.id02 {
  18. position: relative;
  19. top: -163px;
  20. text-align:center;
  21. padding-top:0px;
  22. margin:0 auto;
  23. width:990px;
  24. height:180px;
  25. background:url("images/pod_menu.jpg");
  26. }
  27.  
  28. div.id03 {
  29. position: relative;
  30. top: -163px;
  31. text-align:center;
  32. padding:0 auto;
  33. margin:0 auto;
  34. width:990px;
  35. height:532px;
  36. background:url("images/pod.jpg");
  37. }


i plik main.php
  1. <? session_start();
  2. if(isset($_GET['lang'])) $_SESSION['lang']=$_GET['lang']; //je?eli jest ustawiona zmienna $_GET['lang'] ustawia sesj?
  3. if(!isset($_SESSION['lang'])) $_SESSION['lang']='pl'; //je?eli nie ma usawionej sesji ustaw defaultowy j?zyk
  4. ?>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  7. <title>Reprin</title>
  8. <link rel="stylesheet" href="../css.css">
  9. <!--[if IE]>
  10. <link rel="stylesheet" href="../hack.css">
  11. <![endif]-->
  12.  
  13. <script type="text/javascript" src="../js.js">
  14.  
  15. </script>
  16.  
  17. <script language="javascript"> AC_FL_RunContent = 0; </script>
  18. <script language="javascript"> DetectFlashVer = 0; </script>
  19. <script src="AC_RunActiveContent.js" language="javascript"></script>
  20. <script language="JavaScript" type="text/javascript">
  21. <!--
  22. // -----------------------------------------------------------------------------
  23. // Globals
  24. // Major version of Flash required
  25. var requiredMajorVersion = 8;
  26. // Minor version of Flash required
  27. var requiredMinorVersion = 0;
  28. // Revision of Flash required
  29. var requiredRevision = 0;
  30. // -----------------------------------------------------------------------------
  31. // -->
  32. </head>
  33. <br />
  34. <body style="background-color:#FFFFFF;">
  35. <div class="id00">
  36. <!--url's used in the movie-->
  37. <!--text used in the movie-->
  38. <script language="JavaScript" type="text/javascript">
  39. <!--
  40. if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
  41. alert("This page requires AC_RunActiveContent.js.");
  42. } else {
  43. var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
  44. if(hasRightVersion) { // if we've detected an acceptable version
  45. // embed the flash movie
  46. AC_FL_RunContent(
  47. 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
  48. 'width', '990',
  49. 'height', '235',
  50. 'src', 'reprin_menu',
  51. 'quality', 'high',
  52. 'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
  53. 'align', 'middle',
  54. 'play', 'true',
  55. 'loop', 'true',
  56. 'scale', 'showall',
  57. 'wmode', 'transparent',
  58. 'devicefont', 'false',
  59. 'id', 'reprin_menu',
  60. 'bgcolor', '#ffffff',
  61. 'name', 'reprin_menu',
  62. 'menu', 'true',
  63. 'allowScriptAccess','sameDomain',
  64. 'allowFullScreen','false',
  65. 'movie', 'reprin_menu',
  66. 'salign', ''
  67. ); //end AC code
  68. } else { // flash is too old or we can't detect the plugin
  69. var alternateContent = 'Alternate HTML content should be placed here.'
  70. + 'This content requires the Adobe Flash Player.'
  71. + '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
  72. document.write(alternateContent); // insert non-flash content
  73. }
  74. }
  75. // -->
  76. // Provide alternate content for browsers that do not support scripting
  77. // or for those that have scripting disabled.
  78. Alternate HTML content should be placed here. This content requires the Adobe Flash Player.
  79. <a href="http://www.macromedia.com/go/getflash/">Get Flash</a>
  80.  
  81. </div>
  82. <div class="id02"></div>
  83. <div class="id03">tutaj jakiś text</div>
  84.  
  85. </body>
  86. </html>


proszę o jakieś wskazówki jak obejść ten problem. Bo kombinowałem już na kilka sposobów i nic mi nie wyszło, wiem jak "dostawić" baner do menu ale wtedy ono rozwija się pod banerem i jest niewidoczne.

Pzdr
Wojtek

jakby komuś było potrzebne

  1. html, body {background: #fff;
  2. text-align:center;
  3. padding:0 auto;
  4. margin:0 auto;
  5.  
  6. }
  7. div.id00 {
  8. position: relative;
  9. text-align:center;
  10. padding:0 auto;
  11. margin:0 auto;
  12. top:15px;
  13. text-align:center;
  14. width:990px;
  15. z-index: 2;
  16. }
  17.  
  18. div.id02 {
  19. position: relative;
  20. top: -163px;
  21. text-align:center;
  22. padding-top:0px;
  23. margin:0 auto;
  24. width:990px;
  25. height:180px;
  26. background:url("images/pod_menu.jpg");
  27. z-index: 1;
  28. }
  29.  
  30. div.id03 {
  31. position: relative;
  32. top: -163px;
  33. text-align:center;
  34. padding:0 auto;
  35. margin:0 auto;
  36. width:990px;
  37. height:532px;
  38. background:url("images/pod.jpg");
  39. }



problem rozwiązany dwa divy na relative
MMX3
Bo IE jest jak HIV w internecie.

spróbuj tak:
  1. <object data="ściezka_do_pliku" type="application/x-shockwave-flash" width="xxx" height="yyy">
  2. <param name="movie" value="sciezka_do_pliku" />
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.