Author Topic: [BBCode]Password Spoiler  (Read 2866 times)

0 Members and 1 Guest are viewing this topic.

Offline xupaulo

  • Newbie
  • *
  • Posts: 24
  • Karma: 10
    • View Profile
[BBCode]Password Spoiler
« on: March 11, 2011, 10:43:54 am »
A password in your spoilers... to restrict access to unwanted people




BBcode


Code: [Select]
[pswdspoil={TEXT1}]{TEXT2}[/pswdspoil]HTML substitution



Code: [Select]


Spoiler:  if (password=='{TEXT1}')
{
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';
}
}
">



{TEXT2}




Helpline

Password Spoiler :
Code: [Select]
[pswdspoil=[COLOR=Red]the password here[/COLOR]]your menssage[/pswdspoil]See an example here: http://claroquenaosomosbroncos.freeforum.ca/ver-a-sua-mensagem-enviada-vt215.html


Hope youŽll enjoy it!!
« Last Edit: March 11, 2011, 01:23:53 pm by MaT »