You are viewing a post by KaNaLiTnUk. View all 338 posts in Script ini berguna untuk meminimizer/maximizer box. Maap, gak tau creditnya untuk siapa, lupa, maklum udah melalui proses tambal sulam. Sebagai referensi untuk mempermudah kita dalam peletakan script.

 1911
 1911 0
 0 1969-12-31
 1969-12-31

 dah 2 hari aku uthak - athik kok ga jadi2....
dah 2 hari aku uthak - athik kok ga jadi2....

 bisa bantuin ga bro....
bisa bantuin ga bro....

 nih urlnya bro...
[quote]http://h1.ripway.com/uchildz/wedew.txt[/quote]
[/quote]
Scriptnya kurang Mr. Uchildz. Ini script yang sudah jadi mudah2an bisa
nih urlnya bro...
[quote]http://h1.ripway.com/uchildz/wedew.txt[/quote]
[/quote]
Scriptnya kurang Mr. Uchildz. Ini script yang sudah jadi mudah2an bisa  [quote]/*CSS INJECTION*/
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";
css.href = "http://h1.ripway.com/uchildz/upgraded.css";
css.media = "screen, print";
document.getElementsByTagName("head")[0].appendChild(css);
//onload handler
function onProfileLoad() {
//addboxes here
}
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);
    }
}
// PHOTOS
   h=document.getElementById("1").getElementsByTagName("h2")[0];
   h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_1'); return false\"><div>"+Uchildz sos+"\'s Photo Gallery</div></a>";
[b]show_hide('content_1');[/b]
// MOREABOUT
   h=document.getElementById("6").getElementsByTagName("h2")[0];
   h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_6'); return false\"><div>More About "+Uchildz sos+"</div></a>";
[b]show_hide('content_6');[/b]
// PUBLICCOMMENTS
   h=document.getElementById("18").getElementsByTagName("h2")[0];
   h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_18'); return false\"><div>Testimonials and Comments for "+Uchildz sos+"</div></a>";
[b]show_hide('content_18');[/b]
function show_hide(the_box) {
   if (document.getElementById(the_box)) {
      if (document.getElementById(the_box).style.display == 'none') {
        document.getElementById(the_box).style.display = 'block';
      }
      else {
        document.getElementById(the_box).style.display = 'none';
      }
   }
}[/quote]
Bagian yang tebal itulah kekurangan script Mr. Uchildz
[quote]/*CSS INJECTION*/
var css = document.createElement("link");
css.type = "text/css";
css.rel = "stylesheet";
css.href = "http://h1.ripway.com/uchildz/upgraded.css";
css.media = "screen, print";
document.getElementsByTagName("head")[0].appendChild(css);
//onload handler
function onProfileLoad() {
//addboxes here
}
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);
    }
}
// PHOTOS
   h=document.getElementById("1").getElementsByTagName("h2")[0];
   h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_1'); return false\"><div>"+Uchildz sos+"\'s Photo Gallery</div></a>";
[b]show_hide('content_1');[/b]
// MOREABOUT
   h=document.getElementById("6").getElementsByTagName("h2")[0];
   h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_6'); return false\"><div>More About "+Uchildz sos+"</div></a>";
[b]show_hide('content_6');[/b]
// PUBLICCOMMENTS
   h=document.getElementById("18").getElementsByTagName("h2")[0];
   h.innerHTML="<a href=\"#\" onClick=\"show_hide('content_18'); return false\"><div>Testimonials and Comments for "+Uchildz sos+"</div></a>";
[b]show_hide('content_18');[/b]
function show_hide(the_box) {
   if (document.getElementById(the_box)) {
      if (document.getElementById(the_box).style.display == 'none') {
        document.getElementById(the_box).style.display = 'block';
      }
      else {
        document.getElementById(the_box).style.display = 'none';
      }
   }
}[/quote]
Bagian yang tebal itulah kekurangan script Mr. Uchildz  
					Last edited by KaNaLiTnUk (2008-02-26 15:13:15)
|  |