2008-10-19 07:11:45

teguh0203
» FTalkAgent
FTalk Level: zero
2408
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

[b]thekuro_08[/b] emang bisa y cookies stealer di injek d profil? =D ni pindahin ke bawah aja [spoiler]//======ganti nama link friends=========// var replaceLink = document.createElement("a"); replaceLink.href = "http://www.friendster.com/friends/"+pageOwnerID; replaceLink.appendChild(document.createTextNode("View All (0o0o...banyak sekali...o0o0)")); var viewall = getElementsByClassName(document.getElementById("content_2"),"div","viewall")[0].getElementsByTagName("a")[0]; //if exist if (viewall !== null) { viewall.parentNode.replaceChild(replaceLink,viewall); } function getElementsByClassName(oElm,sTag,sClass) { var elm = []; if (!oElm)oElm = document; if (!sTag)sTag = "*"; var els = oElm.getElementsByTagName(sTag) || document.all; for (var j=0,k=els.length;j<k;j++) { if (new RegExp(sClass).test(els[j].className)) { elm.push(els[j]); } } return elm; } //======Moving box=========// if (typeof MARQUEE == "undefined") { MARQUEE = {}; } MARQUEE = { content: null, init: function() { //photos MARQUEE.content = document.getElementById("content_1").innerHTML; document.getElementById("content_1").innerHTML = "<marquee direction=\"left\" height=\"100%' scrollamount=\"2\" onMouseOver=\"stop()\" onMouseOut=\"start()\">"+MARQUEE.content+"</marquee>"; } };MARQUEE.init();[/spoiler] trus ini fungsi addbox kamu versi 3 sedangkan addbox kamu versi 2 , ganti script ini [spoiler]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); } }[/spoiler] ama ini[spoiler]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]

Last edited by teguh0203 (2008-10-19 07:18:28)

Board footer

© 2024 F Talk

Current time is 08:30

[ 12 queries - 0.229 second ]
Privacy Policy