2008-11-25 10:53:44

Da BucKz
» FTalkManiac
FTalk Level: zero
641
0
1969-12-31

Re: Bagi para member yang ingin bertanya seputar tweaking FS. Silahkan bertanya dan posting disini. Sebelum itu harap membaca dan mengikuti [url=http://theftalk.com/t23371-FORUM-RULES.html][b]FORUM

[quote=irwan_syah]all da yg tau cara buat box ndiri g'?_? aku mau buat box ntuk foto slide show foto nih[/quote] prtma, u hrus pnya kode ini d bag C.: [quote]if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()}; function addBox (type,head,htm,id,sibling) { 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] lalu bwt addbox, taro kode ini d bagian B (onload handler): [quote]var buckz="[color=red][b]HTML KODE KAMU DISINI[/b][/color]"; addBox("LEFT","<div>[color=orange][b]NAMA HEADER[/b][/color]</div>",buckz,"[color=green][b]DIV-ID BOX[/b][/color]","[color=blue][b]ID BOX[/b][/color]");[/quote] yg wrna merah, gnti dngn kode keinginan kamu (eg. slide) orange, gnti dngn nma header kamu.. hijau, gnti dngn DIV-ID box bwt addbox yg satu ini... & yg biru, gnti dngn box ID bwt menentukan posisi box kita... klo mw generator'a, bsa lwt sni: [url]http://h1.ripway.com/fti/nopzgen.html[/url] :thumbsup:

Board footer

© 2024 F Talk

Current time is 03:38

[ 12 queries - 0.286 second ]
Privacy Policy