Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [HTML][CSS][JavaScript]Problem z rozwijanym menu i flashem.
bartekm0
post
Post #1





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 19.07.2009

Ostrzeżenie: (0%)
-----


Robię sobie portfolio i używam galerii we flashu bardzo spodobał mi się jej efekt ale jednocześnie mam problem z moim rozwijanym menu chowa sie pod animacje flash. Trafiłem już na podobny temat na tym forum ale niewiele mi to pomogło. Potrzebuje bardzie dokładnych wytycznych żeby ktoś poprowadził mnie za rączkę. (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)

Kod strony:

  1. <meta name="generator" content="WebSite PRO 4.3" />
  2. <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
  3. <link rel="stylesheet" type="text/css" href="http://webgfx.privacy.pl/portfolio/chromestyle.css" />
  4. <title>Bartłomiej Marchlewicz Portfolio</title>
  5. <script type="text/javascript" src="http://webgfx.privacy.pl/portfolio/chrome.js"></script>
  6. </head>
  7. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  8.  
  9. <!-- SITE -->
  10. <table id="Tabela_01" width="900" height="700" border="0" cellpadding="0" cellspacing="0">
  11.  
  12. <!-- LOGO -->
  13. <tr>
  14. <td colspan="17">
  15. <img src="http://webgfx.privacy.pl/portfolio/images/logo.gif" width="900" height="237" alt=""></td>
  16. </tr>
  17. <!-- KONIEC LOGO -->
  18.  
  19. <!-- MENU -->
  20. <tr class="chromestyle" id="chromemenu">
  21. <td colspan="2">
  22. <img src="http://webgfx.privacy.pl/portfolio/images/menu_1.gif" width="52" height="24" alt=""></td>
  23. <td width="64" height="24" background="http://webgfx.privacy.pl/portfolio/images/chromebg.gif">
  24. <ul>
  25. <li><a href="index.html">GŁÓWNA</a></li>
  26. </ul>
  27. </td>
  28. <td><img src="http://webgfx.privacy.pl/portfolio/images/menu_2.gif" width="2" height="24" alt=""></td>
  29. <td width="65" height="24" background="http://webgfx.privacy.pl/portfolio/images/chromebg.gif">
  30. <ul>
  31. <li><a href="#" rel="dropmenu1">NEWS</a></li>
  32. </ul>
  33. <!--1st drop down menu -->
  34. <div id="dropmenu1" class="dropmenudiv" style="width: 90px;">
  35. <a href="dane.html">Dane Personalne</a>
  36. <a href="zaiteresowania.html">Zaiteresowania</a>
  37. <a href="kwalifikacje">Kwalifikacje</a>
  38. <a href="http://www.codingforums.com">Coding Forums</a>
  39. </div>
  40. </td>
  41. <td><img src="http://webgfx.privacy.pl/portfolio/images/menu_3.gif" width="2" height="24" alt=""></td>
  42. <td width="69" height="24" background="http://webgfx.privacy.pl/portfolio/images/chromebg.gif">
  43. <ul>
  44. <li><a href="#" rel="dropmenu2">GALERIA</a></li>
  45. </ul>
  46. <!--2nd drop down menu -->
  47. <div id="dropmenu2" class="dropmenudiv" style="width: 80px;">
  48. <a href="http://www.cnn.com/">Layouty</a>
  49. <a href="http://www.msnbc.com">Loga</a>
  50. <a href="http://news.bbc.co.uk">Zdjecia</a>
  51. <a href="http://news.bbc.co.uk">Wizytówki</a>
  52. <a href="http://news.bbc.co.uk">Plakaty</a>
  53. <a href="http://news.bbc.co.uk">Bannery</a>
  54. <a href="http://news.bbc.co.uk">Inne</a>
  55. </div>
  56. </td>
  57. <td><img src="http://webgfx.privacy.pl/portfolio/images/menu_4.gif" width="2" height="24" alt=""></td>
  58. <td width="65" height="24" background="http://webgfx.privacy.pl/portfolio/images/chromebg.gif">
  59. <ul>
  60. <li><a href="index.html">OFERTA</a></li>
  61. </ul>
  62. </td>
  63. <td><img src="http://webgfx.privacy.pl/portfolio/images/menu_5.gif" width="2" height="24" alt=""></td>
  64. <td width="89" height="24" background="http://webgfx.privacy.pl/portfolio/images/chromebg.gif">
  65. <ul>
  66. <li><a href="index.html">WSPÓŁPRACA</a></li>
  67. </ul>
  68. </td>
  69. <td><img src="http://webgfx.privacy.pl/portfolio/images/menu_6.gif" width="2" height="24" alt=""></td>
  70. <td width="69" height="24" background="http://webgfx.privacy.pl/portfolio/images/chromebg.gif">
  71. <ul>
  72. <li><a href="index.html">KONTAKT</a></li>
  73. </ul>
  74. </td>
  75. <td><img src="http://webgfx.privacy.pl/portfolio/images/menu_7.gif" width="2" height="24" alt=""></td>
  76. <td width="39" height="24" background="http://webgfx.privacy.pl/portfolio/images/chromebg.gif">
  77. <ul>
  78. <li><a href="index.html">LINKI</a></li>
  79. </ul>
  80. <script type="text/javascript">
  81. cssdropdown.startchrome("chromemenu")
  82. </script>
  83. </td>
  84. <td colspan="2" width="369" height="24" background="http://webgfx.privacy.pl/portfolio/images/menu_8.gif">
  85. </td>
  86. </tr>
  87. <!-- KONIEC MENU -->
  88.  
  89. <!-- MAIN -->
  90. <tr>
  91. <td background="http://webgfx.privacy.pl/portfolio/images/bg_bok.gif"></td>
  92. <td colspan="15" background="http://webgfx.privacy.pl/portfolio/images/bg_center.gif" valign="top" height="450">
  93. <?php include 'index2.html'; ?>
  94.  
  95. </td>
  96. <td background="http://webgfx.privacy.pl/portfolio/images/bg_bok.gif"></td>
  97. </tr>
  98. <!-- KONIEC MAIN -->
  99.  
  100. <!-- FOOTER -->
  101. <tr>
  102. <td colspan="17" background="http://webgfx.privacy.pl/portfolio/images/footer.gif" height="25">
  103. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=white size=2> All rights reserved. BM-Design 2009</font></td>
  104. </tr>
  105. <!-- KONIEC FOOTER -->
  106. <!-- KONIEC SITE -->
  107. <BR><BR>
  108. </body>
  109. </html>


Kod strony od flasha nazwanej index2.html

  1. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  2. <meta name="generator" content="WebSite PRO 4.3" />
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <style type="text/css">
  5. <!--body {
  6. margin-left: 0px;
  7. margin-top: 0px;
  8. margin-right: 0px;
  9. margin-bottom: 0px;
  10.  
  11. }
  12.  
  13. -->
  14. </style>
  15. <script language="javascript">AC_FL_RunContent = 0;</script>
  16. <script src="AC_RunActiveContent.js" language="javascript"></script>
  17. </head>
  18. <!--url's used in the movie-->
  19. <!--text used in the movie-->
  20. <!-- saved from url=(0013)about:internet -->
  21. <script language="javascript">
  22. if (AC_FL_RunContent == 0) {
  23. alert("This page requires AC_RunActiveContent.js.");
  24. } else {
  25. AC_FL_RunContent(
  26. 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
  27. 'width', '100%',
  28. 'height', '100%',
  29. 'src', 'main',
  30. 'quality', 'high',
  31. 'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
  32. 'align', 'middle',
  33. 'play', 'true',
  34. 'loop', 'true',
  35. 'scale', 'noscale',
  36. 'wmode', 'window',
  37. 'devicefont', 'false',
  38. 'id', 'main',
  39. 'bgcolor', '#000000',
  40. 'name', 'main',
  41. 'menu', 'true',
  42. 'allowFullScreen', 'true',
  43. 'allowScriptAccess','sameDomain',
  44. 'movie', 'main',
  45. 'salign', ''
  46. ); //end AC code
  47. }
  48. <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="fullscreen" align="middle">
  49. <param name="allowScriptAccess" value="sameDomain" />
  50. <param name="allowFullScreen" value="true" />
  51. <param name="movie" value="main.swf" />
  52. <param name="quality" value="high" />
  53. <param name="scale" value="noscale" />
  54. <param name="bgcolor" value="#000000" />
  55. <param name="allowscriptaccess" value="samedomain">
  56. <param name="wmode" value="opaque">
  57. <embed src="main.swf"
  58. quality="high"
  59. scale="noscale"
  60. bgcolor="#000000"
  61. width="100%"
  62. height="100%"
  63. name="main"
  64. align="middle"
  65. allowScriptAccess="sameDomain"
  66. allowFullScreen="true"
  67. type="application/x-shockwave-flash"
  68. pluginspage="http://www.macromedia.com/go/getflashplayer"
  69. wmode="opaque"/>
  70. </object>
  71. </body>
  72. </html>



I style css:

  1. .chromestyle{
  2. width: 99%;
  3. font:normal 9px Arial;
  4. }
  5.  
  6. .chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
  7. content: ".";
  8. display: block;
  9. height: 0;
  10. clear: both;
  11. visibility: hidden;
  12. margin:0;
  13. }
  14.  
  15. .chromestyle ul{
  16. border: 0px solid #BBB;
  17. width: 100%;
  18. background: url(images/chromebg.gif) center center repeat-x; /*THEME CHANGE HERE*/
  19. background-height: 100%;
  20. padding: 6px 1px;
  21. margin: 0;
  22. text-align: center; /*set value to "left", "center", or "right"*/
  23. }
  24.  
  25. .chromestyle ul li{
  26. display: inline;
  27. }
  28.  
  29. .chromestyle ul li a{
  30. color: 7061fd;
  31. margin: 0;
  32. text-decoration: none;
  33. border-right: 0px solid #DADADA;
  34. }
  35.  
  36. .chromestyle ul li a:hover, .chromestyle ul li a.selected{ /*script dynamically adds a class of "selected" to the current active menu item*/
  37. background: url(images/chromebg-over.gif) center center repeat-x; /*THEME CHANGE HERE*/
  38. }
  39.  
  40. /* ######### Style for Drop Down Menu ######### */
  41.  
  42. .dropmenudiv{
  43. position:absolute;
  44. top: 0;
  45. border: 1px solid #7061fd; /*THEME CHANGE HERE*/
  46. border-bottom-width: 1;
  47. font:normal 9px Arial;
  48. line-height:18px;
  49. z-index:100;
  50. background-color: black;
  51. width: 200px;
  52. visibility: hidden;
  53. }
  54.  
  55.  
  56. .dropmenudiv a{
  57. width: auto;
  58. display: block;
  59. text-indent: 3px;
  60. border-bottom: 0px solid #BBB; /*THEME CHANGE HERE*/
  61. padding: 2px 0;
  62. text-decoration: none;
  63. font-weight: bold;
  64. color: 7061fd;
  65. }
  66.  
  67. * html .dropmenudiv a{ /*IE only hack*/
  68. width: 100%;
  69. }
  70.  
  71. .dropmenudiv a:hover{ /*THEME CHANGE HERE*/
  72. background-color: 7061fd;
  73. color: black
  74. }



a tutaj adres do tego jak to wygląda. http://webgfx.privacy.pl/portfolio/layouty/index.php


Proszę o pomoc! Z góry dzięki.
Go to the top of the page
+Quote Post
ayeo
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 202
Pomógł: 117
Dołączył: 13.04.2007
Skąd: 127.0.0.1

Ostrzeżenie: (0%)
-----


Witam!

Dodaj to do embed:
Kod
wmode="transparent"


Pozdrawiam!
Go to the top of the page
+Quote Post
wookieb
post
Post #3





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




Tutaj nie poprawiłeś na opaque
Kod
'wmode', 'window',
Go to the top of the page
+Quote Post
bartekm0
post
Post #4





Grupa: Zarejestrowani
Postów: 9
Pomógł: 0
Dołączył: 19.07.2009

Ostrzeżenie: (0%)
-----


wookieb. wielkie dzięki działa idealnie. (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 22:34