This page requires a Javascript enabled browser
<< Back | Main Menu | FAQ | [?]

Spoiler codes

Create movie/data spoilers easily!

Local: CSS/JS files (add code to <HEAD> section):

1
2
3
4
5
6
<!-- DC Spoiler Codes CSS -->
<link type="text/css" rel="stylesheet" href="dcodes/spoiler_codes/css/dc_spoiler_code.css" />
<!-- jQuery Library (skip this step if already called on page ) -->
<script type="text/javascript" src="dcodes/jquery.min.js"></script> <!-- (do not call twice) -->
<!-- DC Spoiler Codes JS -->
<script type="text/javascript" src="dcodes/spoiler_codes/js/dc_spoiler_code.js"></script>

Hosted: CSS/JS files (add code to <HEAD> section):

1
2
3
4
5
6
<!-- DC Spoiler Codes CSS -->
<link type="text/css" rel="stylesheet" href="http://cdn.dcodes.net/2/spoiler_codes/css/dc_spoiler_code.css" />
<!-- jQuery Library (skip this step if already called on page ) -->
<script type="text/javascript" src="http://cdn.dcodes.net/2/jquery.min.js"></script> <!-- (do not call twice) -->
<!-- DC Spoiler Codes JS -->
<script type="text/javascript" src="http://cdn.dcodes.net/2/spoiler_codes/js/dc_spoiler_code.js"></script>

Sample Spoiler

James Cameron's epic motion picture, Avatar grossed over View Spoiler >>


View code:

1
2
3
<!-- DC Spoiler Codes Start -->
<p>James Cameron's epic motion picture, Avatar grossed over <span class="dc_spoiler">$2.8 billion dollars worldwide!</span></p>
<!-- DC Spoiler Codes End -->


© TemplateAccess