Ceriwis

Ceriwis (https://forum.ceriwis.com/forum.php)
-   Templates & Scripts (https://forum.ceriwis.com/forumdisplay.php?f=61)
-   -   Cara buat kode Spoiler(Vbuletin) (https://forum.ceriwis.com/showthread.php?t=295009)

maximillianw 25th May 2011 07:01 PM

Cara buat kode Spoiler(Vbuletin)
 
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:
    [spoiler="End of the Game"]Cloud kills Sepiroth[/spoiler]
  • 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


All times are GMT +7. The time now is 11:58 AM.