Advertisement
Guest User

Untitled

a guest
Sep 29th, 2013
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
  2.     </script>
  3.     <script>
  4.  
  5.     $(document).ready(function() {
  6.     $('.spoilertext').before('<a class="spoiler" href="#">[spoiler]</a>')
  7.     $('.spoiler').click(function(e) {
  8.         $(this).next('span').toggle();
  9.         e.preventDefault();
  10.         return false;
  11.     });
  12. });
  13.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement