Letakkan Konten Gambar atau Tulisan di Hidden/Sembunyikan di Phrase HIDDEN CONTENT HERE
HTML nya adalah :
VISIBLE CONTENT HERE <div id="spoiler" style="display:none"> HIDDEN CONTENT HERE </div> <button title="Click to show/hide content" type="button" onclick="if(document.getElementById('spoiler') .style.display=='none') {document.getElementById('spoiler') .style.display=''}else{document.getElementById('spoiler') .style.display='none'}">Show/hide</button>
Contoh : klik button :
HTML nya adalah :
VISIBLE CONTENT HERE <div id="spoiler" style="display:none"> HIDDEN CONTENT HERE </div> <button title="Click to show/hide content" type="button" onclick="if(document.getElementById('spoiler') .style.display=='none') {document.getElementById('spoiler') .style.display=''}else{document.getElementById('spoiler') .style.display='none'}">Show/hide</button>
Contoh : klik button :
VISIBLE CONTENT HERE
0 Response to "Create a Spoiler SHOW-HIDE EFFECT"