[quote=teguh0203]var iSlide2 = new Fx.Slide(iCons.getElement('#content_tracker'), { duration: 3000, transition: Fx.Transitions.Bounce.easeInOut });
iCons.getElement('.tracker h2').addEvent('click', function() {iSlide2.toggle()});[/quote]
humm..
jdi mksd'a, klo kita naro kode ini d onload handler:
[quote]var odchat = "Chat Wit Me Here"+
"<br><br><div id=\"cboxdiv\" style=\"text-align: center; line-height: 0\"><div><iframe frameborder=\"0\" width=\"360\" height=\"230\" src=\"http://www4.cbox.ws/box/?boxid=3609092&boxtag=9550&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"cboxmain\" style=\"border:#00CCDC 1px solid;\" id=\"cboxmain\"></iframe></div><div><iframe frameborder=\"0\" width=\"360\" height=\"117\" src=\"http://www4.cbox.ws/box/?boxid=3609092&boxtag=9550&sec=form\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"no\" allowtransparency=\"yes\" name=\"cboxform\" style=\"border:#00CCDC 1px solid;border-top:0px\" id=\"cboxform\"></iframe></div></div>";
addBox("LEFT","<a href=\"javascript:()\"><div><img src=\"http://i36.tinypic.com/jj7910.jpg\"/></div></a>",odchat,"chat",18);[/quote]
berarti kode'a yg d kopas d bagian A'a, jdi kyk bgini yh:
[quote]var iSlide2 = new Fx.Slide(iCons.getElement('#content_chat'), { duration: 3000, transition: Fx.Transitions.Bounce.easeInOut });
iCons.getElement('.odchat h2').addEvent('click', function() {iSlide2.toggle()});[/quote]
Last edited by odloc (2008-10-26 11:12:49)