Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS][HTML][JavaScript]Pomoc css js
Salur
post
Post #1





Grupa: Zarejestrowani
Postów: 179
Pomógł: 0
Dołączył: 28.12.2014

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


Witam, jak zrobić aby powoli się wyświetlał ukryty div a potem powoli znikał?

JS:

  1. <script language="javascript">
  2. function toggle5(showHideDiv, switchImgTag) {
  3. var ele = document.getElementById(showHideDiv);
  4. var imageEle = document.getElementById(switchImgTag);
  5. if(ele.style.display == "block") {
  6. ele.style.display = "none";
  7.  
  8. }
  9. else {
  10. ele.style.display = "block";
  11.  
  12. }
  13. }
  14.  
  15. <div id="headerDivImg">
  16.  
  17. <div id="titleTextImg"></div>
  18.  
  19. <a id="imageDivLink" href="java script:toggle5('contentDivImg', 'imageDivLink');"><img src="img/kontakt.png"></img></a>
  20.  
  21. </div>
  22.  
  23. <div id="contentDivImg" style="display: none;">Dynamicznie działa?<br><br><br><br><br><br><hr>Działa!</div>
  24.  
  25. </div>
Go to the top of the page
+Quote Post

Posty w temacie


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 - 11:53