Pages: 12

  2008-09-08 09:29:33

sliprock
» n00b
FTalk Level: zero
17
0
1969-12-31

I'm pretty sure you've already seen this Show/Hide box trick, when you click on the header of the box it will toggle the box closed when it s open, vice versa. This 3 simple lines of codes will do the

help ..not working in my addbox...just wanna ask what is the addbox id of whos right click and wvmcbox..?? maybe im wrong in addbox id..how about the tracker ?? is this are correct?? var tracker_Slide = new Fx.Slide('content_tracker'); $('tracker').getFirst().addEvent('click',function(){tracker_Slide.toggle();}); tracker_Slide.toggle(); [spoiler]// Make 1st group (Left Side Box) var a = ['0', '1', '6', '18','WVMCBOX']; var b = ['content_0', 'content_1', 'content_6', 'content_18','content_WVMCBOX']; var c = []; // default, 'click' event - don't forget 2 click the close box header tflAccordion(a,b,c); var x = ['2', '8','div_327', 'clock','4600', 'box_ke2','tracker','SPAWNPIC','WHORC']; var y = ['content_2', 'content_8','content_div_327', 'content_clock', 'content_4600','content_box_ke2', 'content_tracker', 'content_SPAWNPIC','content_WHORC']; var z = []; tflAccordion(x,y,z,'mouseenter'); //do not edit below this line function tflAccordion(iel,eli,lei,eil){ iel.each(function(el,i){lei.push(new Fx.Slide(eli[i]));eil=eil||'click';$(iel[i]).getFirst().addEvent(eil,function(){if(!$(iel[i]).getFirst().hasClass('tflTglS')){iel.each(function(el,i){if($(iel[i]).getFirst().hasClass('tflTglS')){lei[i].slideOut();$(iel[i]).getFirst().removeClass('tflTglS')}});lei[i].slideIn();$(iel[i]).getFirst().addClass('tflTglS')}});(i==0)?$(iel[0]).getFirst().addClass('tflTglS'):lei[i].slideOut()})} // end tflAccordion[/spoiler]

Last edited by sliprock (2008-09-08 13:27:45)

Pages: 12

Board footer

© 2025 F Talk

Current time is 05:41

[ 12 queries - 0.008 second ]
Privacy Policy