[quote][b]michellealaba wrote:[/b] hey shak, how would I know the ID of my upper-most part of the sidebar?[/quote]
example of my codes that i'm using & it really works 2 my page
hope this can help u...
u see the bold part?
that's the ID of upper-most part of the side bar
[quote]function addBox (type,head,htm,id,sibling) {
//by marfillaster
//type "LEFT" | "RIGHT"
//head header string
//htm innerHTML string
//id css_id string
//sibling css_id_insertbefore string | null
/* Available default Siblings
LEFT
0 = controlpanel
1 = photos
13 = blogs
12 = reviews
6 = moreabout
18 = publiccomments
10 = scrapbook
RIGHT
[b]15[/b] = meettrail
2 = friends
14 = googleads
7 = fan
8 = groups
null - appends to last
*/[/quote]
codes given by shakiro214...thanks 2 him
it works 2 my page
[quote]fanboy="<div id='fanboy' class='commonbox fanboy' style='width:300px;height:65px;filter:none;-moz-opacity:1.0'><div id='content_fanboy' style='width:300px;height:65px;filter:none;-moz-opacity:1.0'><a href='http://www.friendster.com/fanprofiles.php' id='getyourown' title='Get Your Own ...' target='_blank' border='0'><div id='badgebg' style='width:300px;height:65px;background:url(http://images.friendster.com/images/mt_badge_2.jpg);border:0px;filter:none;-moz-opacity:1.0;'><div class='badgetext' style='font-family:arial;text-transform:none;color:#000000'><center><b><big><br><br>cute friendsterTalk Member</big></b></center></div></div></a></div></div>";
var hb = document.getElementById('[b]15[/b]');
var jbx = document.createElement("li");
jbx.innerHTML=fanboy;
hb.parentNode.insertBefore(jbx,hb);[/quote]
[align=center]only want is 2 help[/align]
Last edited by mabuhay (2008-04-30 01:15:46)