[spoiler="Exemplu Spoiler (apasa aici)"]Mesajul DVS[/spoiler]
Mai intai salvati fisieru http://maxrom.ucoz.com/js/bspoiler.js la dvs. in calculator dupa il incarcati in File menager cu calea /js/.
In General appearance of forum pages dupa $BODY$ punem Scriptu:
Cod
<script type="text/javascript" src="/js/bspoiler.js"></script>
In New message form inainte de tegul $_MESSAGE$ punem codul:
Cod
<input title="Spoiler" value="Spoiler" onclick="tag_spoiler('message','')" class="codeButtons" style="width: 60px;" name="url" type="button">
Atentie!!! Acest spoiler nu-l inlocuieste pe cel standart. Diferenta dintre ele e urmatoarea:
[spoiler="Spoiler (apasa aici)"]Mesajul DVS[/spoiler]
In CSS adaugati stilu:
Cod
/* Site Spoiler */
a.bspoiler:link {text-decoration:none; color:#000; font-weight: bold;}
a.bspoiler:visited {text-decoration:none; color:#000; font-weight: bold;}
a.bspoiler:hover {text-decoration:none; color:#000; font-weight: bold;}
a.bspoiler:active {text-decoration:none; color:#000; font-weight: bold;}
.bspoilerdiv {height: 18px; padding-left: 3px; padding-top: 3px; border: 1px solid #a79f72;border-left-width:3px;background:#e9e9e6;}
.bspoilerdtw {margin: 3px; margin-top:1px; solid #4e4e4e;}
/* ----End Spoiler---- */
Sursa: sinners Traducere RO MaxRom