Coding-Spot

You are not connected. Please login or register

 
 
 

Category Toggle

Message (Page 1 of 1)

#1

Nathan Adhitya

avatar
 
Advance Member

Posted May 31st 2013, 9:04 pm

 
i need a working category togle like this one
as this forum have fully matched..
i need them...
and the problem is with the Rideem
at that forumotion for PunBB won't work e.e
anyways
i mean Mark can you share what are you using to make this forum toggle?





#2

Mark

Mark
 
Administrator
Administrator

Posted May 31st 2013, 9:41 pm

 
PunBB:
Code:
jQuery(document).ready(function(){var p=0,u='http://i81.servimg.com/u/f81/17/45/75/97/cat_mi10.png',v='http://i81.servimg.com/u/f81/17/45/75/97/cat_ma10.png';jQuery('#main .main .main-head').each(function(){jQuery(this).next().attr('id',p);jQuery(this).next().css('display',my_getcookie('cat-'+jQuery(this).next().attr('id')));jQuery(this).append('<img src="'+u+'" id="abrirf" style="float: right;margin-right: -1px;margin-top: -17px;"/>');jQuery(this).find('#abrirf').click(function(){var i=jQuery(this).closest('.main-head').next();if(i.css('display')=='none'){i.slideToggle();jQuery(this).attr('src',u);my_setcookie('cat-'+jQuery(this).closest('.main-head').next().attr('id'),'block',1,0)}else{i.slideToggle();jQuery(this).attr('src',v);my_setcookie('cat-'+jQuery(this).closest('.main-head').next().attr('id'),'none',1,0)}});p++})});

Just change this images if you want to:
- https://i.servimg.com/u/f81/17/45/75/97/cat_mi10.png
- https://i.servimg.com/u/f81/17/45/75/97/cat_ma10.png



https://coding-spot.darkbb.com


#3

Nathan Adhitya

avatar
 
Advance Member

Posted May 31st 2013, 9:43 pm

 
Thanks God I Need Them :D
/Request To Be Solved + Locked





#4

Mark

Mark
 
Administrator
Administrator

Posted May 31st 2013, 9:45 pm

 
Since the problem is now solved i will locked this and move to archive section. ~Locked and Moved Happy



https://coding-spot.darkbb.com


#5

Sponsored content


 

Posted

 





Message (Page 1 of 1)

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

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None