If you are seeing this message, it is possible the page did not load properly. Please hit reload/refresh on your browser.
If you still see this message, you probably do not have a browser that supports web standards, although its content is accessible to any browser or Internet device.

Cool Tips & Tricks Cool Tips & Tricks

Help Communities:
Help Forums Bug Base
<< Prev Topic | Next Topic >>
Cool Tips & Tricks ::: Javascript FAQ ::: Spoiler Button
New Topic    Add Reply
Topic: Spoiler Button  (?)  Click to receive email notification of replies Click to stop receiving email notification of replies email this topic to a friend
Nutrocker

ezboard Moderator
ezSupporter
Posts: 15898
Posted: 6/16/05 2:31 pm    
Spoiler Button
This script will add a button to the insertcodes to make the spoiler script easier to use.

Box 1:
 
<script type="text/javascript">
/*APPEND SPOILER INSERTBUTTON*/
function AddSpoilerButton () {
        var InsDiv = document.getElementById("insertcodes");
        InsDiv.innerHTML=InsDiv.innerHTML + "<input type=\"button\" value=\"spoiler\" class=\"insertbutton\" onclick=\"encloseText(this.form.body,\'hidden as a spoiler\',\'[link=http:\/\/spoiler]\',\'[\/link]\');\"><br />";
}
/*END APPEND SPOILER INSERTBUTTON*/
</script>

Box 4:
 
<script type="text/javascript">
/*CALL SPOILER*/
if (ezPage == "showAddTopicScreenFromWeb" | ezPage == "showAddReplyScreenFromWeb" | ezPage =="showEditScreen") {
        AddSpoilerButton();
}
/*END CALL SPOILER*/
</script>

It requires Phalen's ezURL and (of course the spoiler script).       

Author :: Gaucho Don

Edited by: Nutrocker at: 6/16/05 2:33 pm

  reply to this message

Click to receive email notification of replies Click to stop receiving email notification of replies email this topic to a friend

New Topic    Add Reply

jump to:
Topic Control Image::: Topic Commands
<< Prev Topic | Next Topic >>

Icon Legend

reply button:::Reply to Post Button   edit button:::Edit Post Button  delete button:::Delete Post Button (Moderator Only)

subscribe/unsubscribe to thread button:::Subscribe to Thread Button   email to friend button:::Email to Friend Button  



- Cool Tips & Tricks - Javascript FAQ -

Communitiesezboard Help Communities:

Help Forums Help Forums Bug Base Bug Base





Powered By ezboard® Ver. 7.32
Copyright ©1999-2007 ezboard, Inc.