PDA

View Full Version : Spoiler tag with 3.5.4


Krika
08-06-2006, 01:37 PM
Hi everybody,

I used this BB Code for spoiler tags with version 3.0.7, it worked.

But now, after i installed 3.5.4 it dosen't work anymore.

See pictures below to see BB code.

Can someone help me out, i'm not good in Javascript.

Dilmah
08-06-2006, 02:58 PM
I'm not sure, but you don't look to have anything defined for ShowSpoiler(). Was that the only code you added in 3.0.7? When you overwrote the files, you may have overwritten the ShowSpoiler declaration.

Krika
08-06-2006, 03:15 PM
yeah, that was the problem. I found the old script and now it's working.

<script type="text/javascript">

function showSpoiler(block) {

block.nextSibling.nextSibling.style.display ="block";
block.parentNode.removeChild(block);
}
</script>

Thank You!!!