uhm?i try diz codes?but i can't move friends below to my cntrl panel
[quote]if ( ! attachOnLoadHandler(function () { moveBox();}))
window.onload = function () {
moveBox();};
function moveBox() {
var x; var t;
x = document.getElementById("controlpanel_1_1").parentNode;
t = document.getElementById("friends_2_2");
x.appendChild(t);
}[/quote]
[quote]/*global MOVEIT*/
MOVEIT = {};
(function () {
MOVEIT = {
box: null,
appendbox: null,
init: function () {
MOVEIT.box = MOVEIT.getClass(/controlpanel/i)[0].parentNode;
MOVEIT.appendbox = MOVEIT.getClass(/friends/i)[0];
MOVEIT.box.appendChild(MOVEIT.appendbox);
},
getClass: function (sClass) {
var elm = [];
var els = document.getElementsByTagName("*") || document.all;
for (var j = 0, k = els.length; j < k; j += 1) {
if (new RegExp(sClass).test(els[j].className)) {
elm.push(els[j]);
}
}
return elm;
}
};
})();
MOVEIT.init();[/quote]
Last edited by natal_angelz (2008-07-24 04:07:10)