Show & Hide Button Stylish
Itu yang aku maksud dan Sasya request like that |
Langsung aja, yaa!
- Dashboard > Tata Letak > Add A Gadget > HTML Javascript
- Copy kode ini
<center><div id="spoiler"><div><input value="Your Title" style="width:150px ;font-size:12px; font-family: short stack; background-image: url(Your BG);-moz-border-radius: 7px; border-radius: 7px;margin:13px;padding:0px;border-style: 2px solid #A8E4FF;" type="button" 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!'; }" />
<div id="show" style="display: none; text-align: left; background-color:transparent; font-family: short stack; font-size:11px;background-repeat:repeat; border-radius:10px; border: 1px dashed #A8E4FF; background:url(YOUR BG); margin: 0px; border-width:2px;padding:3px; width:250px">
Replace Anything Here!</div></div></div><br />
</center>
- Lalu, pastekan kode ini di kolom HTML Javascript yaa!
- Save!
Selamat mencoba!
Kalo mau repost, tolong kasih credit namaku + link blogku, yaa! Ini aku sendiri yang edit!
Makasih loh kakkk ... hehehe ..maaf kepo lohhh dan maaf ngerepotin. x_x
ReplyDeleteNggak kok. Sama-samaa :)
Delete