View Single Post
  #6  
Old 3rd January 2013, 03:34
ndbj ndbj is offline
Senior Member
 
Join Date: Dec 2012
Portugal
Posts: 35
Default
Many thanks to both.

@rabtb: joeroberts code is a clever way to show/hide spoiler content.
you should try it.

@joeroberts: I only changed <a href=\"#\" onclick= to <a class=altlink href=\"#\" onclick= but i would like also to add those small icons (minus/plus) before the spoiler link.
my knowledge at java sucks, can you help me on how to add those pics in that function?


Bump: this one here
http://www.bvlist.com/mods-themes/865-spoiler-tag.html
was almost installed with success in my old source.
the function at global.php - ok
the default.css - ok
creation and upload to server of jquery-1.1.1.pack.js - ok
upload of minus/plus.gifs - ok

the only thing i couldn't do was this code here
Quote:
<script language="javascript" type="text/javascript" src="js/jquery-1.1.1.pack.js"></script> <script type="text/javascript"> $(document).ready( function(){ $('div.news-head') .click(function() { $(this).toggleClass('unfolded'); $(this).next('div.news-body').slideToggle('fast'); }); }); </script>
when i put this at my inc/bittorrent.php it gives me error of header already sent...
any guess to solve this?

Last edited by ndbj; 3rd January 2013 at 04:23.
Reply With Quote