2007-10-19 06:13:46

sickofyou
» FTalker
FTalk Level: zero
234
0
1969-12-31

Re: [b]Friendster Div IDs[/b] [quote][b]/*-- Control Panel --*/[/b] 0[/quote] [quote][b]/*-- Photo Gallery --*/[/b] 1[/quote] [quote][b]/*-- Featured Friends--*/[/b] 2[/quote] [quote][b]/*-- More About -

@ famous i look at the bold text, i changed it from content_publiccomments_1_7 to content_18...here, use this: [quote]if ( ! attachOnLoadHandler(function () { rComm();})) window.onload = function () { rComm();}; function rComm() { CHOOSECOMM.init(); } if (typeof CHOOSECOMM == "undefined") { CHOOSECOMM = {}; } CHOOSECOMM = { comm: null, elements: { mainid: document.getElementById("[b]content_18[/b]"), maintag: "DIV", mainclass: "fitem1wrapper" }, init: function() { this.comm = this.getElementsByClassName(this.elements.mainid,this.elements.maintag,this.elements.mainclass); for(var x=1; x<this.comm.length;x++) { if(this.comm[x].innerHTML) { this.comm[x].parentNode.removeChild(this.comm[x]); } } }, getElementsByClassName: function(oElm, strTagName, strClassName) { var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName); var arrReturnElements = new Array(); strClassName = strClassName.replace(/\-/g, "\\-"); var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)"); var oElement; for(var i=0; i<arrElements.length; i++) { oElement = arrElements[i]; if(oRegExp.test(oElement.className)) { arrReturnElements.push(oElement); } } return (arrReturnElements); } };[/quote]

Last edited by sickofyou (2007-10-19 06:15:48)

Board footer

© 2024 F Talk

Current time is 15:27

[ 12 queries - 0.029 second ]
Privacy Policy