kk...kk...sekalian..
aku mo minta tolong dong...
TV di profil ku mo ku taruh di tengah..
gimana caranya yah.....
biar profil ku ngga lebar ke samping..
tapi aku
nda mo mix max k...
aku mo na standar ja profil ku
tapi ada TV na..
isa di bantu ngga k..
kaya na strip JS na ada yang salah deh..
atau ada yang kurang...
ini JS ku k...
[spoiler]// BAGIAN A diatas
//gambar di box foto
/***************************
* ICON UNDER RECENT UPDATE *
***************************/
var heinz;
try {
heinz = document.createElement("div");
}
catch (e) {
heinz = document.createElement("<div>");
}
heinz.innerHTML = "<br><center><img src='http://i236.photobucket.com/albums/ff120/sakurainohinata234/dance.gif' border='0'></center>";
heinz.setAttribute("style","padding-top:10px");
document.getElementById("0").getElementsByTagName("ul")[1].parentNode.appendChild(heinz);
//----------------------------------------
function onProfileLoad() {
// BAGIAN B (onload handler)
// masukan code hasil generate di sini
}
//----------------------------------------
// Nonton Tv
var tvdee="<div align='center'>"+
"<iframe src='http://h1.ripway.com/bodbehel/oby/TV.html' width='508' height='470' scrolling='no' marginwidth='0' marginheight='0' allowTransparency='true' frameborder='0'></iframe>"+
"</div>";
addBox("..:: Online TV ::..",tvdee,"tvbox",/commonbox[\s]*?moreabout/i);
//css injection
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/kidsipencuri/A_code.CSS ");
css.setAttribute("media","screen, print"); document.getElementsByTagName("head")[0].appendChild(css);
}
}injectcss();
// BAGIAN C
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);
}
}
if (typeof MARQUEE == "undefined") { MARQUEE = {}; }
MARQUEE = {
content: null,
init: function() {
//friends
MARQUEE.content = document.getElementById("content_2").innerHTML;
document.getElementById("content_2").innerHTML = "<marquee direction=\"up\" height=\"300\" scrollamount=\"2\" onMouseOver=\"stop()\" onMouseOut=\"start()\">"+MARQUEE.content+"</marquee>";
//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>";
//shoutoutbox
MARQUEE.content = document.getElementById("cpShoutoutBox").innerHTML;
document.getElementById("cpShoutoutBox").innerHTML = "<marquee direction=\"left\" height=\"100%\" scrollamount=\"2\" onMouseOver=\"stop()\" onMouseOut=\"start()\">"+MARQUEE.content+"</marquee>";
//groups
MARQUEE.content = document.getElementById("content_8").innerHTML;
document.getElementById("content_8").innerHTML = "<marquee direction=\"up\" height=\"200\" scrollamount=\"2\" onMouseOver=\"stop()\" onMouseOut=\"start()\">" +MARQUEE.content+"</marquee>";
}
};MARQUEE.init();[/spoiler]
ini FS ku k..
http://profiles.friendster.com/kidsipencuri
tolong yah k...
makasih kk FTI...
Last edited by aby_bingung (2008-11-21 11:15:38)