[quote=bangsubur]lho kok scriptna cuma segitu ja bos...[/quote]
yap..
klo CSS, emang cma segitu doank..
tpi msih ad fits laen'a, kyk one kolom versi feruzz atw versi nophatz (JS)...
dri feruzz (taro bagian C)[spoiler]if (!attachOnLoadHandler(function () {
oColumn.init();
})) {
window.onload = function () {
oColumn.init();
};
}
(function () {
oColumn = {
$width: "630px", //Default width
$IE: /*@cc_on!@*/false, //IE
init: function () {
var tableleft = oColumn.$$("ltd", "td")[0].getElementsByTagName("ul")[0];
var tableright = oColumn.$$("rtd", "td")[0].getElementsByTagName("ul")[0];
var ctrlpnl = oColumn.$$("commonbox controlpanel", "div")[0];
if (!oColumn.$IE) {
tableleft.parentNode.parentNode.parentNode.appendChild(tableright);
} else { //Fixed for IE
ctrlpnl.parentNode.parentNode.appendChild(tableright);
}
var tabledata = document.getElementsByTagName("td")[0].getElementsByTagName("img"), x = 0;
while (x < tabledata.length) {
if (tabledata[x].src === "http://images.friendster.com/images/spacer.gif") {
tabledata[x].style.display = "none";
}
x += 1;
}
var tableparent = oColumn.$$("commonbox", "div"), y = 0;
while (y < tableparent.length) {
tableparent[y].style.width = oColumn.$width;
y += 1;
}
try {
var removeads = oColumn.$$("standalonebox ads", "div")[0];
removeads.style.display = "none";
var banner = document.getElementById("banneradrow");
banner.style.display = "none";
} catch (e) {}
},
$$: function (strClass, nodeName, pElem) {
nodeName = nodeName || "*";
pElem = pElem || document;
var objElm = pElem.getElementsByTagName(nodeName);
if (!objElm.length && nodeName === "*" && pElem.all) {
objElm = pElem.all;
}
var results = [];
var delim = strClass.indexOf("|") !== -1 ? "|": " ";
var rClass = strClass.split(delim);
for (var i = 0, j = objElm.length; i < j; i += 1) {
var rObjClass = objElm[i].className.split(" ");
if (delim === " " && rClass.length > rObjClass.length) {
continue;
}
var c = 0;
comparisonloop:
for (var k = 0, l = rObjClass.length; k < l; k += 1) {
for (var m = 0, n = rClass.length; m < n; m += 1) {
if (rClass[m] === rObjClass[k]) {
c += 1;
}
if ((delim === "|" && c === 1) || (delim === " " && c === rClass.length)) {
results.push(objElm[i]);
break comparisonloop;
}
}
}
}
return results;
}
};
})();[/spoiler]
dri nophatz (taro bagian A)[spoiler]document.getElementById("shimrow").style.display="none";
getElementByClassName("rtd")[0].style.display="none";
getElementByClassName("ltd")[0].getElementsByTagName("ul")[0].innerHTML+=getElementByClassName("rtd")[0].getElementsByTagName("ul")[0].innerHTML;
get_nextsibling(getElementByClassName("ltd")[0]).style.display="none";
function get_nextsibling(n)
{
x=n.nextSibling;
while (x.nodeType!=1)
{
x=x.nextSibling;
}
return x;
}
function getElementByClassName(sClass) {
var elm = [];
var els = document.getElementsByTagName("*") || 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;
}[/spoiler]
Last edited by Da BucKz (2008-10-27 13:12:22)