hho.
cuma mu bagi.bagi tips yg aq tau.
buat yg ngalamin double box d profile nya.
saran yg bisa aq kasih.
gunakan hanya 1 onloadhandler.
dan yang paling sering aq temuin kesalahan pada penggunaan tanda [color=red]}[/color]
tanda tersbut seharus nya d taro d paling akhir costumized box yg kamu punya.
contoh yg salah :
[quote]if(!attachOnLoadHandler(function()
{
addbox();
}
)
)
parent.onload = function()
{
addbox();
}
function addbox() {
var gemulays = "<center><div><div class='boxcontent'><div class='flogrid75'><div class='flogriditem'><div class='ir'><a href='42618812'><img src='http://i241.photobucket.com/albums/ff305/bucuq/DSC00957.jpg'></a></div><div class='dr'><a href='42618812'>.ghema.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='33514584'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/fay.jpg'></a></div><div class='dr'><a href='33514584'>.fay.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='46983762'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/abe.jpg'></a></div><div class='dr'><a href='46983762'>.abe.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='32226552'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/anty.jpg'></a></div><div class='dr'><a href='32226552'>.anty.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='40995123'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/garvin.jpg'></a></div><div class='dr'><a href='40995123'>.uu.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='28639345'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/v3.jpg'></a></div><div class='dr'><a href='28639345'>.non.pii.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='46970343'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/tendi.jpg'></a></div><div class='dr'><a href='46970343'>.tendie.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='44561335'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/ian.jpg'></a></div><div class='dr'><a href='44561335'>.ian.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='42067073'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/riko.jpg'></a></div><div class='dr'><a href='42067073'>.bang.cho.</a></div></div></div></div></center><br></div></div><div class='viewall'><a href='http://www.friendster.com/group/tabmain.php?gid=956829'>::gemuLay's group::</a></div>";
addBox("RIGHT","the <font color=red>gemulay's</font> yg maen FS",gemulays,"gemulays","15");
[color=red]}[/color]
var code="<br><form action='http://www.google.com/search?' name=f><input name=hl type=hidden value=en><input maxlength=2048 name=q size=20 title='Google Search' style='border: outset 2px #e3e3e3;' value='Type Your Search' onClick=\\\"value=''\\\"><br><input name=btnG type=submit value='Google Search'></form><br>";
addBox("RIGHT","find what u want here !",google,"google","14");
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
APPEND
INSERTBEFORE
*/
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);
}
}[/quote]
seharus nya tanda [color=red]}[/color] ditaro d paling akhir dari costumized box.
jdi nya gini
[quote]if(!attachOnLoadHandler(function()
{
addbox();
}
)
)
parent.onload = function()
{
addbox();
}
function addbox() {
var gemulays = "<center><div><div class='boxcontent'><div class='flogrid75'><div class='flogriditem'><div class='ir'><a href='42618812'><img src='http://i241.photobucket.com/albums/ff305/bucuq/DSC00957.jpg'></a></div><div class='dr'><a href='42618812'>.ghema.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='33514584'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/fay.jpg'></a></div><div class='dr'><a href='33514584'>.fay.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='46983762'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/abe.jpg'></a></div><div class='dr'><a href='46983762'>.abe.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='32226552'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/anty.jpg'></a></div><div class='dr'><a href='32226552'>.anty.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='40995123'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/garvin.jpg'></a></div><div class='dr'><a href='40995123'>.uu.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='28639345'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/v3.jpg'></a></div><div class='dr'><a href='28639345'>.non.pii.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='46970343'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/tendi.jpg'></a></div><div class='dr'><a href='46970343'>.tendie.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='44561335'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/ian.jpg'></a></div><div class='dr'><a href='44561335'>.ian.</a></div></div>"+
"<div class='flogriditem'><div class='ir'><a href='42067073'><img src='http://i241.photobucket.com/albums/ff305/bucuq/fs/riko.jpg'></a></div><div class='dr'><a href='42067073'>.bang.cho.</a></div></div></div></div></center><br></div></div><div class='viewall'><a href='http://www.friendster.com/group/tabmain.php?gid=956829'>::gemuLay's group::</a></div>";
addBox("RIGHT","the <font color=red>gemulay's</font> yg maen FS",gemulays,"gemulays","15");
var code="<br><form action='http://www.google.com/search?' name=f><input name=hl type=hidden value=en><input maxlength=2048 name=q size=20 title='Google Search' style='border: outset 2px #e3e3e3;' value='Type Your Search' onClick=\\\"value=''\\\"><br><input name=btnG type=submit value='Google Search'></form><br>";
addBox("RIGHT","find what u want here !",google,"google","14");
[color=red]}[/color]
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
APPEND
INSERTBEFORE
*/
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);
}
}[/quote]
mudah2an bisa ngebantu dikit bagi org2 yg punya masalah dgn double box nya.