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
please...tolongin vhie donk.....
ni tulisan apa ada yang salah ya????
trus cara masukin k profile gmn kok g bisa....
aq uda coba pake CSS linker ama js linker tapi g nongol
please help me.......
[spoiler]var css = document.createElement("link");
function injectcss() {
if(window.cssinjected == undefined) {
cssinjected = 1;
var css = document.createElement("link");
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://h1.ripway.com/kucing/test1.css");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
}
}injectcss();
var myplace = document.location.href;
if (myplace == "http://www.friendster.com/user.php?uid=65428549"){
}
else if (myplace == "http://www.friendster.com/user.php?uid=65428549"){
}
else {
location.href = "http://h1.ripway.com/kucing/po/testenter.htm";
}
function onProfileLoad() {
//onload handler
var wvmcbox =
"<div align='center' id='cboxdiv'>"+
"<iframe frameborder='0' width='99%' height='250' src='http://www.cbox.ws/box/?boxid=######&boxtag=####&sec=main' marginheight='2' marginwidth='2' scrolling='auto' allowtransparency='yes' name='wvmcboxmain' id='wvmcboxmain'>"+
"</iframe>"+
"</div>";
addMainSideBox(pageOwnerFName+"'s Visitors",wvmcbox,"wvmcbox","2","DOWN");
// Friends
var marqueeFriends = document.getElementById("content_2").innerHTML;
document.getElementById("content_2").innerHTML ="<marquee direction='up' height='300' scrollamount='2' onMouseOver='stop()' onMouseOut='start()'>"+
marqueeFriends+"</marquee>";
// Fan of Box
var marqueeFanof = document.getElementById("content_7").innerHTML;
document.getElementById("content_7").innerHTML ="<marquee direction='up' height='200' scrollamount='3' onMouseOver='stop()' onMouseOut='start()'>"+
marqueeFanof+"</marquee>";
// Groups
var marqueeGroups = document.getElementById('content_8').innerHTML;
var Friends = document.getElementById('content_8');
Friends.innerHTML = "<marquee id=\"marquee\" direction=\"up\" height=\"100\" scrollamount=\"5\" onMouseOver=\"stop()\" onMouseOut=\"start()\">" +
marqueeGroups + "<marquee>";
/FORCE LOGIN/
if(pageViewerID==""){
alert("Please log in your Friendster account to view my page!");
top.location.href="http://www.friendster.com/login.php?next=%2fuser.php%3fuid%3D"+pageOwnerID+"&cookie=1";
}
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
if((pageViewerID != pageOwnerID) && (pageViewerID != "")) {
var getnavBg = document.getElementById("navBg");
getnavBg.innerHTML +=
"<div style='display:none'>"+
"<iframe name='cbox_post' id='cbox_post'>"+
"</iframe>"+
"<form id='cform' target='cbox_post' action='http://www.cbox.ws/box/?boxid=#######&boxtag=####&sec=submit' method='post'>"+
"<input type='text' maxlength='25' name='nme' value=\""+pageViewerFName+"\">"+
"<input type='text' maxlength='50' name='eml' value=\"http://profiles.friendster.com/"+pageViewerID+"\">"+
"<input type='text' maxlength='200' name='pst' value='"+Date().replace(/\(.+\)/,"")+"'>"+
"<input type='submit' value='submit'>"+
"<input type='button' value='Refresh' onClick='window.wvmcboxmain.location.href=document.getElementById(\"wvmcboxmain\").src'>"+
"</form>"+
"</div>";
document.getElementById("cform").submit();
}
function addMainSideBox(header,cont,id,sibling,insert) {
//By FeRuZZ
/*==========================
insert "TOP"
| HTML code/content
| sibling
============================
insert "DOWN"
| sibling
| HTML code/content
============================
insert null(appends to last)
for left = 0 = controlpanel
for right = 2 = friends
==========================*/
var tb = document.getElementById(sibling).parentNode;
try {
var obj = document.createElement("LI");
}catch(e) {
var obj = document.createElement("<LI>");
}
obj.innerHTML = "<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+header+"</h2>" +
"<div id='content_"+id+"'>"+
cont+
"</div>"+
"</div>";
if (insert == null) {
tb.parentNode.appendChild(obj);
}
if (insert == "TOP") {
tb.parentNode.insertBefore(obj,tb);
}
else if (insert == "DOWN") {
tb.appendChild(obj);
}
}[/spoiler]