APE at 21h06
23
Oct
2011
Hi all
i have been trying to get this to work but can't
/t96460-category-toggle-script
i have done as it said and still cant get it to work
can some one help me please
My code i have is
Ape
i have been trying to get this to work but can't
/t96460-category-toggle-script
i have done as it said and still cant get it to work
can some one help me please
My code i have is
- Code:
<script type="text/javascript">
function toggleLTcategory(cat) {
var cid=cat.id;
var button=document.getElementById('b'+cid);
if (cat.style.display=='none') {
cat.style.display='block';
button.className='contract';
my_setcookie('_' + cid, '', true);
}
else {
cat.style.display='none';
button.className='expand';
my_setcookie('_' + cid, '1', true);
}
}
jQuery(function () {
x=jQuery('.topiclist .header').get();
for (i=0; i<x.length; i++) {
x[i].style.position='relative';
var cid='c'+String(i+1);
x[i].parentNode.nextSibling.setAttribute('id',cid);
x[i].parentNode.nextSibling.style.display='block';
var y='<div id="b'+cid+'" class="contract" onclick="toggleLTcategory(this.parentNode.parentNode.nextSibling);"></div>';
x[i].innerHTML=x[i].innerHTML+y;
}
cookies = document (.) cookie.split('; ');
for (i in cookies) {
if (cookies[i].charAt(0) == '_') {
cookie = cookies[i].split('=');
if (cookie[1] == '1') {
cid = cookie[0].substring(1);
if (document.getElementById(cid)) {toggleLTcategory(cid);}
}
}
}
});
</script>
Ape
1 YoshiGM, on 26/10/2011 at 00h09
Have you added the CSS Code after you pasted the Java ?
2 Base, on 26/10/2011 at 10h44
Hi!
Have you followed the other steps correctly? Please also note that this tutorial does not support forums running on version phpBB 2.
Have you followed the other steps correctly? Please also note that this tutorial does not support forums running on version phpBB 2.
3 Guest, on 26/10/2011 at 11h34
Add in the description of the last forum
Exemple: Trash / Garbage
4 APE, on 26/10/2011 at 16h35
ok i have worked it out i have played about with some things and got it working thank you guys
5 Nera., on 26/10/2011 at 16h43
Lock
Similar topics
Hi
i am using this: /t96460-category-toggle-script and it didnt works...help plzz
bye, irian =)
hi, i found this on the russian support forum.. i followed it but it's not working..
pls help me fast....
Replies 1 to 5 on 5 for "Cant get toggle to work"
Search
Informations
5 Replies For the topic :
"Cant get toggle to work"
This topic has been viewed 577 times.
Last message :
23/10/2011 at 21h06 by "APE"





