2008-10-08 14:24:37

Co_don SanAdH
» FTalkAgent
FTalk Level: zero
2289
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]@ andre[/b] klo yg ku pake ini dre [spoiler]<">[/spoiler] klo yg persi mootools by feruzz ini dre [spoiler]function addBox(head, code, id, sibling) { var h = $type(head) ? "<h2>" + head + "</h2>" : "", sb = new Element("div", { "id": id, "class": "commonbox " + id }); sb.setHTML(h + "<div id=\"content_" + id + "\">" + code + "</div>"); if (/left/i.test(sibling)) { sb.inject($("0").getParent().getParent(), "after"); } else if (/right/i.test(sibling)) { sb.inject($("2").getParent().getParent(), "after"); } else { sb.inject($(sibling).getParent(), "before"); } return sb; } //Addbox code here // example 1 window.addEvent('domready', function () { var [color=green]VARIABLE_NAME[/color] = "[color=purple]HTML CODE HERE[/color]"; addBox("[color=#ff33ff]HEADER NAME[/color]", [color=green]VARIABLE_NAME[/color], "[color=#0000ff]CONTENT_ID[/color]", "[color=#ff0000]SIBLING[/color]"); });[/spoiler] [b]@ oby[/b] siap by :D :thumbsup:

Last edited by Co_don SanAdH (2008-10-08 14:27:17)

Board footer

© 2024 F Talk

Current time is 23:37

[ 12 queries - 0.269 second ]
Privacy Policy