Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne]Obrazek na strone
Adams911
post
Post #1





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 29.10.2010

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


Chciałbym dowiedzieć jak nazywają się takie obrazek jak jest na dole tej strony tu. Dokładnie chodzi o te choinki i śnieg i jak zrobić aby nie przeszkadzały one w klikaniu na linki itp ale aby nadal były na innych elementach
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 7)
Wicepsik
post
Post #2





Grupa: Zarejestrowani
Postów: 1 575
Pomógł: 299
Dołączył: 26.03.2009

Ostrzeżenie: (20%)
X----


  1. <div id="swieta"></div>


  1. #swieta { margin: auto; height: 276px; width: 100%; background: url(bottom.png) no-repeat bottom center; border: 0px; position: fixed; bottom: 0; left: 0; z-index: 1000; }
Go to the top of the page
+Quote Post
Damonsson
post
Post #3





Grupa: Zarejestrowani
Postów: 2 355
Pomógł: 533
Dołączył: 15.01.2010
Skąd: Bydgoszcz

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


Lektura kursów CSS i 2 pojęcia:
'Position'- w Twoim przypadku 'fixed'
'z-index'
Go to the top of the page
+Quote Post
Adams911
post
Post #4





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 29.10.2010

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


no tak ale na co mam zmienić aby było dobrze
Go to the top of the page
+Quote Post
Damonsson
post
Post #5





Grupa: Zarejestrowani
Postów: 2 355
Pomógł: 533
Dołączył: 15.01.2010
Skąd: Bydgoszcz

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


Twój obrazek jest prostokątem, to że nie ma choinek i śniegu, nie znaczy, że obrazka tam nie ma, on jest tylko przezroczysty w tamtym miejscu.

Co możesz zrobić? Podzielić ten obrazek na 100 mniejszych i nadawać im takie wymiary do których wizualnie sięgają dane puzzle.

Odpuść sobie, wywal tego diva, bo już niedługo śnieg i tak stopnieje (IMG:style_emoticons/default/winksmiley.jpg)


Możesz dodadać do:

#main {
position: relative;
z-index: 99999;
}

uzyskasz bardziej usability efekt.

Ten post edytował Damonsson 5.01.2011, 19:31:25
Go to the top of the page
+Quote Post
Adams911
post
Post #6





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 29.10.2010

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


tu jest kod tej strony co mam to umieścić nie ja robiłem więc jej trochę nie ogarniam z kodami

  1. /* CSS Document */
  2. * {
  3. margin: 0;
  4. padding: 5;
  5. }
  6.  
  7. body {
  8. margin:0;
  9. padding:0;
  10. font: normal 12px Verdana, Arial, Helvetica, sans-serif;
  11. border-top: 2px solid #036;
  12. background-image: url("backgrou.gif");
  13. }
  14. h1 {
  15. padding-right: 15px;
  16. padding-top: 15px;
  17. font-size: 15px;
  18. color: #003399;
  19. font-family: Georgia, sans-serif;
  20. text-align: right;
  21. background: #99CCFF;
  22.  
  23. }
  24.  
  25. #swieta { margin: auto; height: 276px; width: 100%; background: url(bottom.png) no-repeat bottom center; border: 0px; position: fixed; bottom: 0; left: 0; z-index: 1000; }
  26.  
  27.  
  28. #content {
  29. width: 980px;
  30. margin-left: auto;
  31. margin-right: auto;
  32. text-align:left;
  33. }
  34. #sidebar {
  35. float: left;
  36. width: 200px;
  37. height: 824px;
  38. background: #99CCFF;
  39. text-align: center;
  40. }
  41.  
  42.  
  43. #main {
  44. margin:0 0 0 200px;
  45. padding:0;
  46. }
  47.  
  48.  
  49. A.MENUITEM:LINK { font-size: 9pt;
  50. color: #003399;
  51. text-decoration: none;
  52. font-weight: bold; }
  53. A.MENUITEM:VISITED { font-size: 9pt;
  54. color: #003399;
  55. text-decoration: none;
  56. font-weight: bold; }
  57. A.MENUITEM:HOVER { color: #003399;}
  58.  
  59. P.MENUITEM { margin: 2 0 0 0;
  60. padding: 5 16 5 16;
  61. border-style: solid;
  62. border-width: 0;
  63. background-color: #F0F8FF;
  64. }
  65. A.przetarg:LINK { font-size: 9pt;
  66. color: #FF0000;
  67. text-decoration: none;
  68. font-weight: bold; }
  69. A.przetarg:VISITED { font-size: 9pt;
  70. color: #FF0000;
  71. text-decoration: none;
  72. font-weight: bold; }
  73. A.przetarg:HOVER { color: #FF0000;}
  74.  
  75. P.przetarg { margin: 3 0 0 0;
  76. padding: 5 16 5 16;
  77. border-style: solid;
  78. border-width: 0;
  79. border-color: #0033CC;
  80. background-color: #F0F8FF;
  81. }


  1.  
  2. <META name="description" content="Parafia w Skrzatuszu">
  3. <meta name="keywords" content="skrzatusz, koszalin, sanktuarium, parafia, diecezja koszalińsko-kołobrzeska, ">
  4. <meta http-equiv="content-language" content="pl">
  5. <link rel="stylesheet" type="text/css" media="all" href="pliki/style.css">
  6.  
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8.  
  9. <title>Parafia rzymskokatolicka pw. Wniebowzięcia NMP w Skrzatuszu - sanktuarium Matki Bożej Bolesnej</title>
  10.  
  11. <script language="JavaScript1.2">
  12.  
  13. </head>
  14.  
  15. <script LANGUAGE= "JavaScript" type= "text/javascript">
  16. var speedTableY = new Array();
  17. var posX = new Array();
  18. var smooth = new Array();
  19. var amplitude = new Array();
  20. var tabB = new Array();
  21. var speed = 50;
  22. var speedLevelsY = 5;
  23. var layersCount = 10;
  24. function ustaw()
  25. {
  26. clWidth = document.body.clientWidth - 50;
  27. for (i = 0; i < layersCount; i++){
  28. posX[i] = Math.ceil(Math.random() * clWidth);
  29. speedTableY[i] = Math.ceil(Math.random() * speedLevelsY);
  30. amplitude[i] = Math.ceil(Math.random() * 40 + 20);
  31. smooth[i] = Math.ceil(Math.random() * 48) + 10;
  32. tabB[i] = Math.random() * 4;
  33. }
  34. }
  35. var b = 0;
  36. function start()
  37. {
  38. clWidth = document.body.clientWidth - 50;
  39. clHeight = document.body.clientHeight;
  40. for (i = 0; i < layersCount; i++){
  41. y = parseInt(document.getElementById('el' + i).style.top);
  42. y += speedTableY[i];
  43.  
  44. tabB[i] += Math.PI / smooth[i];
  45. x = parseInt(Math.sin(tabB[i]) * amplitude[i]) + posX[i];
  46. if (x >= clWidth){
  47. x = clWidth;
  48. }
  49. document.getElementById('el' + i).style.left = x;
  50.  
  51. if (y >= clHeight - 45){
  52. y = -50;
  53. posX[i] = Math.ceil(Math.random() * clWidth);
  54. speedTableY[i] = Math.ceil(Math.random() * speedLevelsY);
  55. amplitude[i] = Math.ceil(Math.random() * 100 + 20);
  56. smooth[i] = Math.ceil(Math.random() * 48) + 48;
  57. }
  58. document.getElementById('el' + i).style.top = y;
  59. }
  60. setTimeout('start()', speed);
  61. }
  62. -->
  63. <BODY onLoad='ustaw();start();'>
  64. <script LANGUAGE= "JavaScript" type= "text/javascript">
  65. <!--
  66. for (i = 0; i < layersCount; i++){
  67. str = '<DIV ID="el' + i + '" ';
  68. str += 'style = "visibility: visible; ';
  69. str += 'width=50px; ';
  70. str += 'heigth=45px; ';
  71. str += 'position: absolute; ';
  72. str += 'top: 1; ';
  73. str += 'left: 1;">';
  74. str += '<IMG SRC="http://kamilscheicht.com/udostepnione/snow7.gif">';
  75. str += '</DIV>';
  76. document.write(str);
  77. }
  78.  
  79. </SCRIPT>
  80. <center>
  81.  
  82.  
  83.  
  84. <tr>
  85. <div id="content">
  86.  
  87. <div id="sidebar">
  88. <div id="logo"><img src="pliki/mb.jpg" /></a>
  89. </div>
  90.  
  91. <div id="sidebar-content">
  92.  
  93.  
  94.  
  95. <img src="pliki/pattern5.jpg" height=250 width=1 align=left><P class="MENUITEM" align=left><A class="MENUITEM" target=go href="strony/glowna.htm">Strona główna</a></IMG></P>
  96.  
  97. <P class="MENUITEM" align=left><A class="MENUITEM" target=go href="strony/nab.htm">Msze św.</a></P>
  98.  
  99. <P class="MENUITEM" align=left><A class="MENUITEM" target=go href="strony/fil.htm">Kościoły filialne</a></P>
  100.  
  101. <P class="MENUITEM" align=left><A class="MENUITEM" target=go href="strony/ks.htm">Duszpasterze</a></P>
  102.  
  103. <P class="MENUITEM" align=left><A class="MENUITEM" target=go href="strony/hist.htm">Historia</a></P>
  104.  
  105. <P class="MENUITEM" align=left><A class="MENUITEM" target=go href="strony/galeria_dom.htm">Dom Pielgrzyma &nbsp;Galeria</a></P>
  106.  
  107. <P class="MENUITEM" align=left><A class="MENUITEM" target=go href="strony/bud.htm">Linki</a></P>
  108.  
  109. <FONT color=#003399><b><script type="text/javascript" src="http://www.edycja.pl/ext/dzien.js.php"> </script></b>
  110. </FONT>
  111. </div></div>
  112. <div id="swieta"></div>
  113. <div id="main">
  114.  
  115.  
  116. <h1>
  117.  
  118. <CENTER><B>DIECEZJALNE SANKTUARIUM MATKI BOŻEJ BOLESNEJ<BR><BR>
  119. Parafia rzymskokatolicka pw. Wniebowzięcia NMP w Skrzatuszu<br>Skrzatusz 31<BR>
  120. 78-930 Szydłowo<BR>
  121. tel. (67) 216 11 30
  122. <br> <br><br>
  123. </A></CENTER></h1>
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. <IFRAME name=go align=left
  131. src="strony/glowna.htm" frameborder=0 width=760 height=650>
  132. </IFRAME></TD></TR></TBODY></TABLE>
  133.  
  134.  
  135.  
  136.  
  137.  
  138. </html>
Go to the top of the page
+Quote Post
gigzorr
post
Post #7





Grupa: Zarejestrowani
Postów: 652
Pomógł: 47
Dołączył: 6.02.2010
Skąd: Radom

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


Tak jak Damonsson napisał.Te choinki i ten snieg to jest obrazek , w a cssie robisz np. cos takiego:
  1. .klasa/#id position: fixed;
  2. bottom: 1px; - zawsze bedzie na dole.


jeszcze mozesz uzyc z-index(odkrywanie,przykrywanie) zalezy czy zaslania ten obrazek cos i nie da sie na to kliknac.

ps. na tej stronie ten obrazek na dole lepiej by sie komponowal jakby mial nadana przezroczystosc bo troche denerwuje.

Ten post edytował gigzorr 5.01.2011, 21:10:21
Go to the top of the page
+Quote Post
Adams911
post
Post #8





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 29.10.2010

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


a co bym musiał zrobić aby ten obrazek był po prostu na dole pod wszystkim aby nie na chodził na nic
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: 20.09.2025 - 17:09