whats wrong with my sidebar codes. there seems to be a problem. everything else works, except my main add box and the sidebar boxes. please help me.
[code]var css = document.createElement("link");
css
try adding this [b]setTimeout("onProfileLoad()",1000);[/b] to ur onload handler..check the spoiler so u will know where to put the setTimeout..
[spoiler]//onload handler
function onProfileLoad() {
function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0); } } }} Shw(1)
var penyuberenang;
try {penyuberenang = document.createElement("div");}
catch (e) {penyuberenang = document.createElement("<div>");}
penyuberenang.innerHTML = "<a href=\"ymsgr:sendim?berna_2245\"><img src=\"http://opi.yahoo.com/online?u=berna_2245&m=g&t=2&l=us\"></a>";
penyuberenang.setAttribute("style","text-align:center;padding-top:100px");
document.getElementById("controlPanelButtons").parentNode.appendChild(penyuberenang);
var pogidaw ="<h2><a style=\"cursor: pointer;\" title=\"GoooD tImeS..\" onClick=\"javascript:toggle('slide');\"><img src=\"http://h1.ripway.com/xavegoi83/pix/collapsed.gif\" border=\"0\"></a> GoooD tImeS..</h2>";
document.getElementById("1").getElementsByTagName("h2")[0].innerHTML=pogidaw;
var tatay ="<h2><a style=\"cursor: pointer;\" title=\"aLL aBout bErNA..\" onClick=\"javascript:toggle('content_6');\"><img src=\"http://h1.ripway.com/xavegoi83/pix/collapsed.gif\" border=\"0\"></a> aLL aBout bErNA..</h2>";
document.getElementById("6").getElementsByTagName("h2")[0].innerHTML=tatay;
var atnanay ="<h2><a style=\"cursor: pointer;\" title=\"wUT peoPLe THInk oF me??\" onClick=\"javascript:toggle('content_18');\"><img src=\"http://h1.ripway.com/xavegoi83/pix/collapsed.gif\" border=\"0\"></a> wUT peoPLe THInk oF me??</h2>";
document.getElementById("18").getElementsByTagName("h2")[0].innerHTML=atnanay;
var nyahaha ="<h2><a style=\"cursor: pointer;\" title=\"Im WatChinG yoU!!\" onClick=\"javascript:toggle('content_10');\"><img src=\"http://h1.ripway.com/xavegoi83/pix/collapsed.gif\" border=\"0\"></a> Im WatChinG yoU!!</h2>";
document.getElementById("10").getElementsByTagName("h2")[0].innerHTML=nyahaha;
var akoay ="<h1><a style=\"cursor: pointer;\" title=\" ♥ berna [[your l.o.v.e. has got me addicted.]] ♥ \" onClick=\"javascript:toggle('content_0');\"><img src=\"http://h1.ripway.com/xavegoi83/pix/collapsed.gif\" border=\"0\"></a> ♥ berna [[your l.o.v.e. has got me addicted.]] ♥ </h1>";
document.getElementById("controlpanel_header").innerHTML=akoay;
var code="<object width=\"300\" height=\"290\"><param name=\"movie\" value=\"http://media.imeem.com/pl/rrUrwRNL4n/aus=true/\"></param><param name=\"wmode\" value=\"black\"><param name=\"FlashVars\" value=\"backColor=000000&primaryColor=ff0099&secondaryColor=ff0066&linkColor=ff0066 \"></param><embed src=\"http://media.imeem.com/pl/rrUrwRNL4n/aus=true/\" type=\"application/x-shockwave-flash\" width=\"300\" height=\"290\" wmode=\"transparent\"FlashVars=\"backColor=000000&primaryColor=ff0099&secondaryColor=ff0066&linkColor=ff0066 \"></embed></object>";
addBox("RIGHT","my SwEEt escapE..",code,"custombox_702",null);
var code="<p style=\"visibility:visible;\"><object type=\"application/x-shockwave-flash\" data=\"http://widget-92.slide.com/widgets/slideticker.swf\" height=\"200\" width=\"300\" style=\"width:300px;height:200px\"><param name=\"movie\" value=\"http://widget-92.slide.com/widgets/slideticker.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"scale\" value=\"noscale\" /><param name=\"salign\" value=\"l\" /><param name=\"wmode\" value=\"transparent\"/> <param name=\"flashvars\" value=\"cy=ms&il=1&channel=432345564228573074&site=widget-92.slide.com\"/></object><p><a href=\"http://www.slide.com/pivot?cy=ms&ad=0&id=432345564228573074&map=1\" target=\"_blank\"><img src=\"http://widget-92.slide.com/p1/432345564228573074/ms_t001_v000_a000_f00/images/xslide1.gif\" border=\"0\" ismap=\"ismap\" /></a> <a href=\"http://www.slide.com/pivot?cy=ms&ad=0&id=432345564228573074&map=2\" target=\"_blank\"><img src=\"http://widget-92.slide.com/p2/432345564228573074/ms_t001_v000_a000_f00/images/xslide2.gif\" border=\"0\" ismap=\"ismap\" /></a></p></p>";
addBox("RIGHT","my Slide..",code,"custombox_531",null);
var header="my heroes.";
var code="<h20><br><img src=\"http://i18.tinypic.com/6lkc9rc.jpg\" height=110 width=130\"/><br> dadddy-yo.<br> u know that i love you. kahit na im pasaway &&& all that. ur the only one i got.he is the reason i try so hard to do things better to not do it only half way. he is a role model, my coach, and one of my best friends. i love my dad no matter what. i hate it na mashado tayo magkamuka. grr. its okay, everyone knows im the better version of you. harhar.<br><img src=\"http://i11.tinypic.com/8bnwhn4.jpg\" height=110 width=130\"/><br>mommmmy.<br>there are no words for me to describe how much this person means to me. even though shes not here with me, i know shes always watching over me. i wouldnt be here today if it wasnt for her. she is my idol, my best friend, and my life. she pushes me to be the person who she knows i can be. she looks out for me in every single way. i love her to death and i miss her so much!<br><img src=\"http://i16.tinypic.com/6utpvye.jpg\" height=110 width=130\"/><br> cheesecake.<br> This girl right here is the greatest friend anyone could ask for. my main hoe.its crazy how we can go from hating each other to being soo close..but this girl is amazing. but me and her go thru so much shit together its not even funny. but we can still count on each other to be there no matter what is going on. this girl right here has to be the only person that has ever stood by my every decision and was willing to be there for me when i fell. we have become soo close & i love it. this gurl is fucking crazy &&& i love it! hahaha. awesome person to party wit. i miss you! cant wait til our next adventure. saan ba? cebu? bring it! mwwwah .<br>"+
"<img src=\"http://i11.tinypic.com/8eaaqme.jpg\" height=150 width=130\"/><br> antot.<br> this guy is amazing && he doesnt even realize it. when i talk to him i feel like i can just be myself and not have to worry what he thinks. i can always count on him to find a way to make me smile. he has the greatest personality ever. i love him to death. we have been thru so much together. he still means so much to me &&& hell always have my heart.im always yours to hold.<br><img src=\"http://i1.tinypic.com/6ov5jqu.jpg\" height=110 width=130\"/><br> katleeen!<br>feels like its been forever since ive been with this homie! this is my ride er die girl right here. we have our times. huh? so much fun smoking wit &&& to be around. i love this girl. she always knows when something is wrong & always knows when i need her.<br>"+
"<img src=\"http://i17.tinypic.com/7ys3rj4.jpg\" height=110 width=130\"/><br> dominiQue<br> showin sum cuzinly love. I love this gurl 2 death. we went from playing with dolls to talking bout boys. i can always count on her to be here when i need her and same for her. best girl to hang out and get bored with.many more great times to come!<br><img src=\"http://i10.tinypic.com/80q91co.jpg\" height=110 width=130\"/><br> cherry-may<br> gurl, i miss you soooo much! We have known each other for so long and the times have been great. i look at her as someone i can trust with anything && no matter waht she will always be there. Me && her have been through so much its crazy. she is like the sister that i never had and i have always asked for. this gurl is my shawtyy.. and shes a ten!! i love you mucho. take care.<br> <img src=\"http://i3.tinypic.com/6jd38l2.jpg\" height=110 width=130\"/><br> jakikay<br> my gorgeous loka bitch! haha.she has been here for me more than anyone i can think of. things are only getting better.She is amazing in so many different ways && i couldnt thank her enough for everything she has done for me. i can def call her one of my best friends. she can always relate to what i am talking about and its freaking crazy. mad love to ya biatch!<br><img src=\"http://i10.tinypic.com/6t3c6u0.jpg\" height=110 width=130\"/><br> annie-boo<br> Gorgeous! showin sum 2nd cuzinly love. Man this girl is amazing. me and this gurl goo wayyy back. we went from playing to partying. I absolutely love this girl. me and her dont talk as much, but we both know we can always count on each other. we had our times, mostly everything wus great. shes so much fun to be around, not a dull moment. mad love 4 ya cuz.<h20>";
addBox(header,code,"custombox_885","right");
var code="<h4>I want a boy. A nice and a bad boy.I want a boy who would hold my hand in line at the mall & make all the girls jealous. A boy who will give me his favorite shirt. He'll call me at 3am and ask me what i'm doing. He'll tell me he couldn't fall asleep because he was thinking about me, and he needed to hear my voice. He'll text me every morning before school saying \"Have a great day babe I love you!\". And he always whispers something sweet in my ear. He'll take me to a concert to see his favorite band. He'll stay up with me all night when im sick. When we're walking together he'll stop and pick up a flower and put it behind my ear. He'll love everything about me and tell me that I'm perfect. We always end up laughing aboutt silly fights. A boy who would make fun of me just to hear my laugh. I want someone who would sing to me at random moments. Someone who I could share secrets with & lay on a blanket with to count the stars. Who I can talk to about anything. Who calls me unexpectedly.Who can tell me his problems and let me help. Who will listen to me talk about the new nail polish I got.Who wears baseball hats and lets me wear his too. Who gives me his t-shirt to change into and not expect to get it back. Who knows my favorite color, song, car, vegetable, perfume and the color of my toothbrush. A boy who will shake my dad's hand and look my mother in the eye. Who will call me by my full name-first, middle and last. A boy who will kiss me and tell me I'm pretty.Who surprises me and compliments my manicure and plays with my hair. Who knows when I have a math test or when I fail one. A boy who smells like he just stepped out of the shower. Who wears cologne that I can subtly smell when I'm leaning on his shoulder. Who tells me I have a nice laugh and a smile that lights up the room and simply mine to hold.And he wont get embarrassed to tell me he loves me in front of his friends.Even if we're a million years old, butterflies will still go crazy inside of me ... Everytime he kisses me. He'll tell me he'd die without me. He'll surprise me by bringing me over my favorite food when I'm having a bad day. He would think I was beautiful if I dressed so crappy it was classy. he wouldnt be scared to cry in front of me and would hold me when i cry .. he'll introduce me to his friends as the coolest girl he?s ever met.And we'd always take pictures in photo booths. We would play tag and not care whos watching. We'd kiss in the rain. And when I hear him speak, I'll fall in love all over again. I want a boy who can argue over stupid things with me, and than go totally soft when I got sad and apologize.I want someone to be there no matter what ... always and forever * Perfect. I'll be his everything.<br><br>i found him!!<br><h4>";
addBox("LEFT","waNteD! A bOY....",code,"custombox_899","18");
var cbox="<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='90%' height='150' src='http://www3.cbox.ws/box/?boxid=2634166&boxtag=8264&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='cboxmain' style='border:#787878 1px solid;' id='cboxmain'></iframe><br>"+
"<iframe frameborder='0' width='90%' height='75' src='http://www3.cbox.ws/box/?boxid=2634166&boxtag=8264&sec=form' marginheight='2' marginwidth='2' scrolling='no' allowtransparency='yes' name='cboxform' style='border:#787878 1px solid;border-top:0px' id='cboxform'></iframe>"+
"</div>";
addBox("RIGHT","[[: talk to me! :]]",cbox,"ul_cbox_content","14");
var youtube7="<div align='center' id='youtube'>"+
"<object width='300' height='200'><param name='movie' value='http://www.youtube.com/cp/vjVQa1PpcFOBQP3ipvjmL4COGmNfNFLhIIToxhDpmzY='></param><param name='wmode' value='transparent'></params><embed src='http://www.youtube.com/cp/vjVQa1PpcFOBQP3ipvjmL4COGmNfNFLhIIToxhDpmzY=' type='application/x-shockwave-flash' wmode='transparent' width='300' height='200'></embed></object>"+
"</div>";
addBox("RIGHT","[[: My VideoS :]]",youtube7,"ul_youtube_content","15");
//Cuztomized Testi's
document.getElementById('content_18').getElementsByTagName("div")[0].innerHTML=
"<a href=\"/comments.php?uid=2340647\"><span>WrIte me a commeNT! </a>|</span>"+
"<a href=\"/comments.php?uid=2340647\"><span> view all (5347)</span></a>";
document.getElementById('content_18').getElementsByTagName("div")[21].innerHTML=
"<a href=\"/comments.php?uid=2340647\"><span>WrIte me a commeNT! </a>|</span>"+
"<a href=\"/comments.php?uid=2340647\"><span> view all (5347)</span></a>";
}[b]setTimeout("onProfileLoad()",1000);[/b]
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
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
15 = meettrail
2 = friends
14 = googleads
7 = fan
8 = groups
null - appends to last
*/
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
if(type=="LEFT") {
var ul=document.getElementById("0").parentNode.parentNode;
htm="<div class='boxcontent'>"+htm+"</div>";
}
else var ul=document.getElementById("2").parentNode.parentNode;
li.innerHTML="<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
htm+
"</div>"+
"</div>";
if(sibling==null) ul.appendChild(li);
else {
sibling=document.getElementById(sibling).parentNode;
ul.insertBefore(li,sibling);
}
}[/spoiler]