Jump to content


- - - - -

spoiler help


This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 stnl619

stnl619

    Novice

  • Members
  • PipPip
  • 12 posts

Posted 13 March 2010 - 04:56 PM

I am having some spoiler code issue and hope you guys  can help me out with it. The spoiler replacement code itself works in the forum/threads, but once i go into quick edit and full edit mode to edit the CONTENT that is within the code, the tags changed.

For example, I have the tag to be like this: (spoiler={option}){content}{/spoiler}

On the first attempt to make a spoiler content it works perfectly fine, giving me this as a result:
"title" show/hide button

*note, i can have whatever text i want to be in the spot of "title" without changing the code.

Then when I go in and edit the content and hit complete edit, the tags changed itself to this:
(spoiler=title=title)content(/spoiler=title).

i want to be able to use the spoiler effectively without changing the tags each time i edit the content.

below is the replacement code i have for my spoiler, thanks in advance for the help.

<div style="margin:20px; margin-top:5px"><div class="quotetitle"><b>{option}:</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="quotecontent"><div style="display: none;">{content}</div></div></div>


#2 stnl619

stnl619

    Novice

  • Members
  • PipPip
  • 12 posts

Posted 16 March 2010 - 05:01 PM

Anyone know how to fix this problem?