PASSWORD SPOILER
Napísal: Uto Mar 27, 2012 7:10 pm
Heslo na spoilery
BBCode
HTML
Ukážka :
BBCode
- Kód: Vybrať všetko
[pswdspoil={SIMPLETEXT}]{TEXT}[/pswdspoil]
HTML
- Kód: Vybrať všetko
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">
<b>Spoiler</b>: <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="password=prompt('Please enter password to view this message...',' ');
if (password=='{SIMPLETEXT}')
{
alert('Password Accepted!');
if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '')
{
this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';
this.innerText = '';
this.value = 'Hide'; }
else
{
this.parentNode.parentNode.getElementsByTagName('div')[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;">
{TEXT}
</div>
</div>
</div>
Ukážka :
- Kód: Vybrať všetko
[pswdspoil=1234]Funguje to[/pswdspoil]
Spoiler: