bos repositioning script=mhae™

Go down

wlangmuka. bos repositioning script=mhae™

Post by mhae™ on Sat Aug 15, 2009 5:34 am

mhae™️ wrote:REPU PLEASE


Title: Box Repositioning Script
Description: This short script will enable you to move your profile's modules to anywhere you want them to.
Tested With: IE7, Fx2, O9

TEST IT HERE look at the photo gallery, BTW it's my profile

childDiv1=document.getElementById("2")
document.getElementById("0").parentNode.appendChild(childDiv1)
function rePosition(){
childDiv1=document.getElementById("2")
document.getElementById("0").parentNode.appendChild(childDiv1)
}
setTimeout("rePosition()",500)

  • Legend:

    • Red = The variable name for the box you will reposition.
    • Orange = The id of the box you will reposition.
    • Green = The id of the box where you will append the box you want to move.
    </li>
  • Important Notes:

    • Just use one of the two codes above. If the first code didn't work for you, you still have the second code to try.
    • The yellow parts of the code must be the same.
    • The box that you will reposition will position itself below the box in the green part of the code.
    • If you want to reposition more boxes, just repeat the code. Make sure that the yellow parts must be the same and numbered accordingly. Refer to the sample below for repositioning more boxes.
      childDiv1=document.getElementById("2")
      document.getElementById("0").parentNode.appendChild(childDiv1)
      childDiv2=document.getElementById("7")
      document.getElementById("0").parentNode.appendChild(childDiv2)
      childDiv3=document.getElementById("8")
      document.getElementById("0").parentNode.appendChild(childDiv3)
    • You may notice that I only used one main box (the green) to append all the three boxes. That sample code above will position the friends, fan of and groups boxes accordingly under the control panel module. You will see how that will be in the preview page. You can also append the boxes to anywhere you want, ok?

    </li>


♠️ Box ID
Spoiler:
/*-- Control Panel --*/
0

/*-- Photo Gallery --*/
1

/*-- Featured Friends--*/
2

/*-- More About --*/
6

/*-- Fan of Box --*/
7

/*-- Groups --*/
8

/*-- Media Box --*/
10

/*-- Reviews --*/
12

/*-- Blogs --*/
13

/*-- Google Ads--*/
14

/*-- Meettrail Box--*/
15

/*-- Testi & Comments*--/
18

These are the div ids which works but only for content boxes..
CSS :

/*-- Control Panel --*/
content_0

/*-- Photo Gallery --*/
content_1

/*-- Featured Friends--*/
content_2

/*-- More About --*/
content_6

/*-- Fan of Box --*/
content_7

/*-- Groups --*/
content_8

/*-- Media Box --*/
content_10

/*-- Reviews --*/
content_12

/*-- Blogs --*/
content_13

/*-- Google Ads--*/
content_14

/*-- Meettrail Box--*/
content_15

/*-- Testi & Comments*--/
content_18

credit: teppeimhae

fs cueh====>teppeimhae@yahoo.com
avatar
mhae™
IFB noob :)

Posts : 36 Join date : 2009-07-06

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum