dark illusions19 » Newbie
Honors : 12 Age : 35 Warnings : Honors : 58770 Registration date : 2008-10-19
| Subject: Reduce Comment Script Tue Oct 28, 2008 10:13 pm | |
| paste the code along with your compiled js codes... - Spoiler:
if ( ! attachOnLoadHandler(function () { rComm();})) window.onload = function () { rComm();}; function rComm() { CHOOSECOMM.init(); }
if (typeof CHOOSECOMM == "undefined") { CHOOSECOMM = {}; } CHOOSECOMM = { comm: [],
elements: { mainid: document.getElementById("content_18"), maintag: "DIV", mainclass: "fitem1wrapper" },
init: function() { this.comm = this.getElementsByClassName(this.elements.mainid,this.elements.maintag,this.elements.mainclass); for(var x=4; x<this.comm.length;x++) { if(this.comm[x].innerHTML) { this.comm[x].parentNode.removeChild(this.comm[x]); } } },
getElementsByClassName: function(oElm,sTag,sClass) { var elm = []; if (oElm === null)oElm = document; if (sTag === null)sTag = "*"; var els = oElm.getElementsByTagName(sTag) || document.all; for (var j=0,k=els.length;j<k;j++) { if (new RegExp(sClass).test(els[j].className))elm.push(els[j]); } return elm; } };
effect of the code: usually there are 10 comments displayed on your comment box...this code will just reduce it into 5 to sa ve space hehe | |
|
rezza » Newbie
Honors : 61 Age : 38 Warnings : Honors : 58770 Registration date : 2008-10-19
| Subject: Re: Reduce Comment Script Fri Oct 31, 2008 1:35 am | |
| i still cofiuse.??
what the effect if i use that code.??
and where i must paste that code.?? | |
|
dark illusions19 » Newbie
Honors : 12 Age : 35 Warnings : Honors : 58770 Registration date : 2008-10-19
| Subject: Re: Reduce Comment Script Mon Nov 10, 2008 1:14 am | |
| paste the code on your compiled js codes...=) | |
|
_jaris_ » V.I.P.
Honors : 343 Age : 32 Warnings : FW Mood: : Honors : 58810 Registration date : 2008-10-15
| Subject: Re: Reduce Comment Script Mon Nov 10, 2008 4:13 am | |
| these are for js fomat layouts? darn it.. do u have the one for simple css? or crossovers? | |
|
amiick Admin
Honors : 142 Age : 34 Location : cavite Warnings : FW Mood: : Honors : 57864 Registration date : 2009-01-15
| Subject: Re: Reduce Comment Script Thu Jan 15, 2009 9:53 am | |
| i'm confused btw thanks for sharin' | |
|
Sponsored content
| Subject: Re: Reduce Comment Script | |
| |
|