|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: Dec 2006
Città: Lodi
Messaggi: 588
|
[HTML/Javascript] Simile a tooltip...
Salve a tutti, come posso creare un effetto simile a QUESTO?
In pratica un pezzo nascosto che viene mostrato a seguito del click sulla relativa domanda. Grazie in anticipo a chi risponderà. BeLakor
__________________
HWBot - BeLakor Il mio PC: alimentatore LC POWER Arkangel 850Watt, scheda video Gigabyte GTX 970 4GB OC WF3, SSD Samsung 850 PRO, 2 Velociraptor 300 GB in raid 1, ASRock X99 OC Formula, 16GB G.Skill Ripjaws 4 Series DDR4-2400, I7 5820K |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Nov 2003
Messaggi: 980
|
Codice HTML:
<script type="text/javascript"> function ShowHideDiv(link) { var div = document.getElementById("testo"); if (div.style.display == "none") { div.style.display == ""; link.innerHTML = "Clicca per nascondere"; } else { div.style.display == "none"; link.innerHTML = "Clicca per mostrare"; } } </script> <a href="javascript:void(0)" onclick="ShowHideDiv(this)">Clicca per mostrare</a> <div id="testo" style="display:none"> testo nascosto </div> |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 07:30.