Spoiler title..

jayjayjay

New Member
Hi guys, another question..

I set up a BB code for a spoiler:

<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="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;"> message </div> </div> </div>

And could you please help where I can add something so that members can add a title for the spoiler, so it reads:

Spoiler of my latest sig...
(Spoiler)

Many thanks in advance.
 
jayjayjay said:
Hi guys, another question..

I set up a BB code for a spoiler:



And could you please help where I can add something so that members can add a title for the spoiler, so it reads:

Spoiler of my latest sig...
(Spoiler)

Many thanks in advance.

Your coding hurts my eyes >.< Is clean coding a thing of the past? If no one handles this by the time I get home, I will take care of it.

For a simple fix, couldn't you just add an editable text field? ORRRRR!!!! Better yet! Just have your member write -

My title here
Spoiler:

I really see no reason to create a BB code to add editable text area's right after "Spoiler". Just seems rather wasteful O_O
 
Haha, yeah I guess it would be more helpful. Not really a wizzard on here with php etc.. So don't really know what I'm doing.

I've seen it done like that on another forum, and it works great. Just wanted to see if I could get it like theirs...

Spoiler: For .... etc lol :P

Pleaseeeeee
 
I really love to be able to still do it like this:

Spoiler for big boobs:
Instead of just Spoiler
How can I add this so there is a title for each spoiiler?
 
jayjayjay said:
I really love to be able to still do it like this:

Spoiler for big boobs:
Instead of just Spoiler
How can I add this so there is a title for each spoiiler?

I am just having trouble understanding where a user will be able to enter this title...

If I am not mistaken, the BBcode works as follows:

<Spoiler> Content in spoiler </spoiler>

Where in that tag would be an option for a user to add a title? I just don't see it being worth the work.
 
GgAcE said:
I am just having trouble understanding where a user will be able to enter this title...

If I am not mistaken, the BBcode works as follows:

<Spoiler> Content in spoiler </spoiler>

Where in that tag would be an option for a user to add a title? I just don't see it being worth the work.

Ah ok I see, well i've seen it before like something like this:

<Spoiler=Spoiler title> Content in spoiler </spoiler>

Something like that...

Any ideas mate?
 
Back
Top