maximillianw
25th May 2011, 07:01 PM
Dari Admincp > BB Code manager > Add New BB Code
Title : spoiler
BB Code Tag Name : spoiler
Replacement : isi dengan ini
HTML Code:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b> for <i>{option}</i>: <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName(' div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
{param}
</div>
</div>
</div>
Example :
Code:
Cloud kills Sepiroth
Description : isi terserah, misalnya ini
Code:
Used to hide spoilers. Don't ruin the ends of movies, games, etc for those who haven't seen it yet!
Use {option} : yes
Button Image (Optional) : kosongi gpp
Remove Tag If Empty : yes
Option sisanya : no http://static.kaskus.us/images/smilies/sumbangan/14.gif
Save
Title : spoiler
BB Code Tag Name : spoiler
Replacement : isi dengan ini
HTML Code:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b> for <i>{option}</i>: <input type="button" value="Show" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName(' div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
{param}
</div>
</div>
</div>
Example :
Code:
Cloud kills Sepiroth
Description : isi terserah, misalnya ini
Code:
Used to hide spoilers. Don't ruin the ends of movies, games, etc for those who haven't seen it yet!
Use {option} : yes
Button Image (Optional) : kosongi gpp
Remove Tag If Empty : yes
Option sisanya : no http://static.kaskus.us/images/smilies/sumbangan/14.gif
Save