Korang tahu ke, aper itu
Button Show-Hide Spoiler???
Okeis~ Cara nyer simple jer. :)
1. Dashboard --> Layout --> Add a Gadget --> Html JavaScript
2. Copy dan paste code di bawah pada JavaScript :
<center><div id="spoiler"><div><input onclick="if (this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = ''; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = 'none'; this.innerText = ''; this.value = 'Hide Spoiler!'; } else { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = 'none'; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = ''; this.innerText = ''; this.value = 'Show Spoiler!'; }" value="YOUR TITTLE" style="width:200px;font-size:12px;background-image:url(URL BACKGROUND);-moz-border-radius: 25px 10px / 10px 25px; border-radius: 25px 10px / 10px 25px;margin:10px;padding:0px;border-style: 2px solid #000000;" type="button" />
<div id="show" style="display: none; background-color:transparent; background-repeat:repeat; margin: 0px;border-width:0px; padding:3px; width:98%">
WRITE ANYTHING YOU WANT
<div id="hide"></div>
EDIT :
ABC : Image Url
ABC : tukar kan dengan perkataan korunk
ABC : korang letak code JavaScript,gambar atau text yang korang nak.
3. Save .! Lihat hasilnya :)
No comments
Terima kasih kerana sudi menulis komen di blog Nurrul, sebarang pertanyaan akan dibalas secepatnya. Jazakallahu khairan