2007-10-19 06:54:16

famous02
» n00b
FTalk Level: zero
89
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 -

[quote=sickofyou]@ 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] [/quote] @sick it doesnt work... all my comments appear in my profile :crybaby: i want to appear just only one..and then the others must be hide.. urgh

Board footer

© 2024 F Talk

Current time is 23:57

[ 12 queries - 0.027 second ]
Privacy Policy