Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP][HTML]onmouseover
-xxxxxx-
post 29.07.2008, 10:18:13
Post #1





Goście







mam problem z onmouseover a chce zeby jak najedzie na jakis element pokazał się inny 21 wiersz

  1. <?php
  2. $pozycja = 'hidden';
  3. ?>
  4.  
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  9. <title>Sleek Design</title>
  10.  
  11. <link rel="stylesheet" type="text/css" href="style.css" />
  12.  
  13. </head>
  14.  
  15. <body>
  16.  
  17. <div class="gora"><h3>TYTUL</h3></div>
  18.  
  19.  
  20. <div class="menu">
  21. <div class="menu3">START</div><div class="menur" onmouseover='<?php $start = "visible"; ?>'
  22.  
  23. background:url(images/menu.PNG);
  24. position:relative;
  25. width:93px;
  26. text-align:center;
  27. padding-top:11px;
  28. padding-bottom:11px;
  29. font-size:10px;
  30. color:#fff;
  31. margin:0;
  32. visibility:<?php echo $start;?>;
  33. >Pozycja</div>
  34.  
  35.  
  36.  
  37. <div class="menu3">Strona</div>
  38. <div class="menu3">Artykuly</div>
  39. <div class="menu3">Komponenty</div>
  40. <div class="menu3">Moduly</div>
  41. <div class="menu3">Strona</div>
  42. <div class="menu3">Mail</div>
  43. <div class="menu3">System</div>
  44.  
  45.  
  46.  
  47. </div>
  48. <br><br><br>
  49.  
  50.  
  51.  
  52.  <div class="naglowek">
  53.  
  54. <h3> Panel Administratora. Zalogowany jako:</h3>
  55. </div>
  56.  <div class="tresc">
  57. <p>tekst</p>
  58. </div>
  59.  
  60.  
  61.  
  62.  
  63. <div class="dol">
  64. <div class="footerlogo">CREATE BY DAMIAN SZULC</div>
  65.  
  66.  
  67.  
  68. </body>
  69. </html>
Go to the top of the page
+Quote Post
nowotny
post 29.07.2008, 10:50:39
Post #2





Grupa: Zarejestrowani
Postów: 875
Pomógł: 122
Dołączył: 2.02.2008

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


  1. <div class="menu3">START</div><div class="menur" onmouseover='<?php $start = "visible"; ?>'
  2.  
  3. background:url(images/menu.PNG);
  4. position:relative;
  5. width:93px;
  6. text-align:center;
  7. padding-top:11px;
  8. padding-bottom:11px;
  9. font-size:10px;
  10. color:#fff;
  11. margin:0;
  12. visibility:<?php echo $start;?>;
  13. >Pozycja</div>

Co to w ogóle jest za pomieszanie z poplątaniem... onmouseover nie ma żadnej wartości a zaraz potem podajesz sobie jakiś luźny css w ogóle nie związany z niczym... popraw to...
Go to the top of the page
+Quote Post
skowron-line
post 29.07.2008, 10:53:47
Post #3





Grupa: Zarejestrowani
Postów: 4 340
Pomógł: 542
Dołączył: 15.01.2006
Skąd: Olsztyn/Warszawa

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


  1. <div class="menu3">START</div><div class="menur" onmouseover="document.getElementById( 'oDiv').style.visibility= 'visible';" id="oDiv"
  2. style="
  3. background:url(images/menu.PNG);
  4. position:relative;
  5. width:93px;
  6. text-align:center;
  7. padding-top:11px;
  8. padding-bottom:11px;
  9. font-size:10px;
  10. color:#fff;
  11. margin:0;
  12. visibility:hidden"
  13. >Pozycja</div>


Musisz zadeklarować jaki element ma zostać pokazany po najechaniu na niego.
Pisane z palca

Ten post edytował skowron-line 29.07.2008, 10:54:43


--------------------
I'm so fast that last night I turned off the light switch in my hotel room and was in bed before the room was dark - Muhammad Ali.
Peg jeżeli chcesz uprawiać sex to dzieci muszą wyjść, a jeżeli chcesz żeby był dobry ty też musisz wyjść - Al Bundy.

QueryBuilder, Mootools.net, bbcradio1::MistaJam
http://www.phpbench.com/
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 20.06.2025 - 20:10