JS CODE: - Code:
-
if ( ! attachOnLoadHandler(function () { moveBox();}))
window.onload = function () {
moveBox();};
function moveBox() {
var x; var t;
t = document.getElementById("BOX_ID"); //the box to be moved
x = document.getElementById("TARGET_ID").parentNode;
x.parentNode.insertBefore(t,x);
}
BOX ID's(right)
- Code:
-
controlpanel = 0
photos = 1
blog = 13
reviews = 12
moreabout = 6
publiccomments = 18
media box = 10
(left)
- Code:
-
meettrail = 15
friends = 2
fanof = 7
groups = 8
EXAMPLE:TARGET_ID = put what the
BOX_ID you want to move to appear on below of the
TARGET_ID boxBOX_ID =
the box which you want to move
let say if I want to put the controlpanel box
[0] at the below of groups
[8] & at the same time I want to put friends
[2] at the below of moreabout
[6]the code should look like this
- Code:
-
if ( ! attachOnLoadHandler(function () { moveBox();}))
window.onload = function () {
moveBox();};
function moveBox() {
var x; var t;
x = document.getElementById("8").parentNode;
t = document.getElementById("0");
x.appendChild(t);
x = document.getElementById("6").parentNode;
t = document.getElementById("2");
x.appendChild(t);
}