The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

[PunBB] Categories toogle script

View previous topic View next topic Go down

Solved [PunBB] Categories toogle script

Post by Omu on December 19th 2011, 5:08 pm

I need the script for categories toogle Smile
Can any one help me? Very Happy


Last edited by Gyzmo on December 19th 2011, 6:20 pm; edited 1 time in total

Omu
Active Poster

Male Posts : 1019
Reputation : 86
Language : Romanian, English, French
Location : Romania

http://supportdrops.com/

Back to top Go down

Solved Re: [PunBB] Categories toogle script

Post by Guest on December 19th 2011, 5:51 pm

Hi Gyzmo! What about this:
Code:
<script src="http://code.jquery.com/jquery-1.6.1.min.js" type="text/javascript"></script>

  <script type="text/javascript">
$(function() {
  $('#clickme').click(function() {
      $('#book').fadeToggle("slow", "linear");
  });
});
  </script>
  <style type="text/css">
  #book{display:none;}
  </style>
 
<div id="clickme">Click here</div>
<img id="book" src="http://i86.servimg.com/u/f86/11/96/49/61/blank_10.gif"/>
Smile

Guest
Guest


Back to top Go down

Solved Re: [PunBB] Categories toogle script

Post by svanirox on December 19th 2011, 5:52 pm

Gassy

where to put the script ?

svanirox
Forumember

Male Posts : 78
Reputation : 0
Language : English
Location : Kolkata

http://cwforums.forumotions.in/

Back to top Go down

Solved Re: [PunBB] Categories toogle script

Post by Omu on December 19th 2011, 5:54 pm

But for categories?

Omu
Active Poster

Male Posts : 1019
Reputation : 86
Language : Romanian, English, French
Location : Romania

http://supportdrops.com/

Back to top Go down

Solved Re: [PunBB] Categories toogle script

Post by Guest on December 19th 2011, 5:56 pm

@svanirox wrote:Gassy

where to put the script ?
In the index_box template. Like this:
This code put before all codes you have there:
Code:
<script src="http://code.jquery.com/jquery-1.6.1.min.js" type="text/javascript"></script>
 
  <script type="text/javascript">
$(function() {
  $('#clickme').click(function() {
      $('#book').fadeToggle("slow", "linear");
  });
});
  </script>
  <style type="text/css">
  #book{display:none;}
  </style>
and this, on the category title:
Code:
<div id="clickme">Click here</div>
<img id="book" src="http://i86.servimg.com/u/f86/11/96/49/61/blank_10.gif" />
Wink

Guest
Guest


Back to top Go down

Solved Re: [PunBB] Categories toogle script

Post by Omu on December 19th 2011, 6:18 pm

I solved the problem from another site . Thank you anyway Gassy. Wink

Omu
Active Poster

Male Posts : 1019
Reputation : 86
Language : Romanian, English, French
Location : Romania

http://supportdrops.com/

Back to top Go down

Solved Re: [PunBB] Categories toogle script

Post by Sanket on December 19th 2011, 7:21 pm

Solved | Archived

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum