Pages: 12

  2008-05-11 07:01:26

D_Dying
» FTalker
FTalk Level: zero
187
0
1969-12-31

Sebelum saya membuka thread ni, saya mohon izin dulu kepada para mods, apabila trick ini sudah pernah di bahas di FTI dan tidak berguna Lg. maka sata mohon thread ni close aja ya =) =) KEyy..!!!! Cre

Sebelum saya membuka thread ni, saya mohon izin dulu kepada para mods, apabila trick ini sudah pernah di bahas di FTI dan tidak berguna Lg. maka sata mohon thread ni close aja ya =) =) KEyy..!!!! CredIts :arrow: http://dynamicdrive.com wiTh Me :arrow: PREVIEW :thumbsdown: http://h1.ripway.com/dying002/baru/atred.html Key LAngsung ja neh script'a :thumbsdown: [quote]//menus var menus="<div class=\"footerx\">"+ "<iframe frameborder=\"0\" width=\"100%\" height=\"30\" src=\"http://h1.ripway.com/dying002/baru/atred.html\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"menu\" style=\"border:#000000 1px solid;\" id=\"menus\"></iframe></div>"; addBox("LEFT","Navigasi DYING",menus,"mns", "0");[/quote] jadikan script diatas sebagai external JS dan letakan pada Bagian B sesuai Referensi Bang Kanal :arrow:: http://theftalk.com/t15339-%7BTUT … 08%29.html Jadinya seperti ini :thumbsdown: [quote]//BAGIAN A //onload handler function onProfileLoad() { //addboxes here //BAGIAN B //menus var menus="<div class=\"footerx\">"+ "<iframe frameborder=\"0\" width=\"100%\" height=\"30\" src=\"http://h1.ripway.com/dying002/baru/atred.html\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"menu\" style=\"border:#000000 1px solid;\" id=\"menus\"></iframe></div>"; addBox("LEFT","Navigasi DYING",menus,"mns", "0"); } 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); } } //BAGIAN C[/quote] [b]Mengatur Posisi[/b] Nah apabila teman2 ingin memindahkan posisi box navigasi tersebut, perhatikan bagian yang di [b]BOLD[/b] dibawah ini :thumbsdown: [quote]addBox("[b]LEFT[/b]","Navigasi DYING",menus,"mns", "[b]0[/b]");[/quote] Tinggal Rubah RIGHT ke LEFT atau sebaliknya tapi sesuaikan pula dengan div ID box serta lokasi box tersebut :) Kalau melihat script aku diatas, aku menaruh box aku di kanan ([b]LEFT[/b]) dan posisinya ada di posisi no [b]0 [/b]yaitu kolom Controlpanel. OK !!!! :thumbsup: :thumbsup: :arrow: Cukup sekian dan terima kasih for ALL :thumbsup: :thumbsup:

Last edited by Jirichi Ryunashira (2008-11-22 07:13:27)

Pages: 12

Board footer

© 2025 F Talk

Current time is 06:01

[ 10 queries - 0.016 second ]
Privacy Policy