Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Spoiler plugin?


citizenkeith
Participant

@citizenkeith

Ok, I’m giving this a try but it doesn’t seem to be working.

I created a plugin directory that I call “bb-spoiler.” Inside is “spoiler.js” (my renamed enhancedss.js file) and the plugin itself, which I named spoiler.php.

Here’s my spoiler.js file:

<script type='text/javascript' language='Javascript'>
function s_toggleDisplay(his, me, show, hide) {
if (his.style.display != 'none') {
his.style.display = 'none';
me.innerHTML = show;
} else {
his.style.display = 'block';
me.innerHTML = hide;
}
}
</script>

Am I doing something wrong here?

Skip to toolbar