[BBCode]Password Spoiler

Started by xupaulo, March 11, 2011, 10:43:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xupaulo

A password in your spoilers... to restrict access to unwanted people




BBcode


[pswdspoil={TEXT1}]{TEXT2}[/pswdspoil]HTML substitution





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 :[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!!