BEST MOVIES

marți, 25 octombrie 2011

Buton Show/ Hide

In acest tutorial voi scire despre cum poti ascunde un link, un text sau o imagine in spatele unui buton.
Exemplu:


Codul este urmatorul:


<div id="hide" style="display:none"> 
CONTINUTUL CARE DORITI SA FIE ASCUNS IN SPATELE BUTONULUI
</div> 
<button title="Show/ Hide" type="button" onclick="if(document.getElementById('hide') 
.style.display=='none') {document.getElementById('hide')
 .style.display=''}else{document.getElementById('hide') 
.style.display='none'}">Titlul butonului</button>

0 comentarii

Trimiteți un comentariu

lucru

Grab the widget  IWeb Gator