Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript][HTML][CSS]Tekst po najechaniu
Sebastian003
post 27.07.2016, 20:12:15
Post #1





Grupa: Zarejestrowani
Postów: 282
Pomógł: 2
Dołączył: 22.03.2007

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


Jak zrobić aby po najechaniu myszka ten tekst sie rozwijał ?

  1. <h2>
  2. <div class="bms" onclick="ne('o1')">pokaż/ukryj</div>
  3. <div id="o1" style="display:none;">
  4. <p>
  5. tekst
  6. </p>
  7. </div>
  8. </h2>
  9.  
  10. <script type="text/javascript">
  11.  
  12. function ne(o){
  13. if(document.getElementById(o).style.display=='') document.getElementById(o).style.display = 'none';
  14. else document.getElementById(o).style.display='';
  15. }
Go to the top of the page
+Quote Post

Posty w temacie


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: 14.08.2025 - 04:07