[b]y4sir[/b] gue coba bantu sob, minta 3 embed code youtube kamu donk,ntar aku kombinasiin
[spoiler]liar="<table><tr><td id='free' style='background:#000000;visibility:hidden;position:absolute;top:0px;left:0px;width:100%;height:0px;z-index:500;'><center><b><font color='#cccccc'><a href='javascript:void(0)' onclick='refresh();fullscreen(); return false;' style='font-family:Lucida Console;color:#ffffff;text-transform:uppercase;'>Reload Video</a> | <a href='javascript:void(0)' onclick='shuffle();fullscreen(); return false;' style='font-family:Lucida Console;color:#ffffff;text-transform:uppercase;'>Change Video</a> | <a href='javascript:void(0)' onclick='CloseScreen(); return false;' style='font-family:Lucida Console;color:#ffffff;text-transform:uppercase;'>Close Screen</a></font></b><br><div id='here' style='z-index:300;'></div></center></td></tr></table>";
function fullscreen(){
window.self.scrollTo(0,0);
document.getElementById('free').style.visibility="visible";
document.getElementById('free').style.width=document.body.clientWidth;
document.getElementById('free').style.height=document.body.clientHeight;
t1 = document.getElementById('sndboxdiv');
pb = document.getElementById('here');
pb.parentNode.insertBefore(t1,pb);
document.getElementById('shakembed').style.width=document.body.clientWidth;
document.getElementById('shakembed').style.height=document.body.clientHeight - 19;
document.getElementById('sndboxdiv').style.width=document.body.clientWidth;
document.getElementById('sndboxdiv').style.height=document.body.clientHeight - 19;
document.getElementById('there').style.visibility="hidden";
document.getElementById('there').style.height="0px";
document.getElementById('flo_wrapper').style.visibility="hidden";
}
function CloseScreen(){
document.getElementById('flo_wrapper').style.visibility="visible";
document.getElementById('there').style.visibility="visible";
document.getElementById('there').style.height="100%";
document.getElementById('shakembed').style.width="299px";
document.getElementById('shakembed').style.height="247px";
document.getElementById('sndboxdiv').style.width="299px";
document.getElementById('sndboxdiv').style.height="218px";
document.getElementById('free').style.visibility="hidden";
document.getElementById('free').style.width="40px";
document.getElementById('free').style.height="40px";
t2 = document.getElementById('sndboxdiv');
ptb = document.getElementById('there');
ptb.parentNode.insertBefore(t2,ptb);
document.getElementById('controls').innerHTML="<input type='button' name='button5' value='Show Controls' onclick='showcontrols(); return false;' />";
}
function showcontrols(){
document.getElementById('sndboxdiv').style.height="247px";
document.getElementById('controls').innerHTML="<input type='button' name='button5' value='Hide Controls' onclick='hidecontrols(); return false;'>";
}
function hidecontrols(){
document.getElementById('sndboxdiv').style.height="218px";
document.getElementById('controls').innerHTML="<input type='button' name='button4' value='Show Controls' onclick='showcontrols(); return false;'>";
}
function shuffle(){
mtv = new Array();
mtv[0]="[b]
http://www.youtube.com/v/xxxxxxx&autoplay=[/b]1";
mtv[1]="[b]
http://www.youtube.com/v/xxxxxxx&autoplay=[/b]1";
mtv[2]="[b]
http://www.youtube.com/v/xxxxxxx&autoplay=[/b]1";
pokedex=Math.floor(Math.random() * mtv.length);
document.getElementById('sndboxdiv').innerHTML="<embed id='shakembed' src="+mtv[pokedex]+" width='299px' height='247px' allowfullscreen='true' showfsbutton='true' type='application/x-shockwave-flash' scale='scale' wmode='transparent'></embed>";
}
function refresh()
{
document.getElementById('sndboxdiv').innerHTML=document.getElementById('sndboxdiv').innerHTML;
}[/spoiler]
itu dijadiin js injek, trus taro ini d bagian B Paling bawah [quote]flow=document.getElementById('flo_wrapper');
cash=document.createElement("div");
cash.innerHTML=liar;
flow.parentNode.insertBefore(cash,flow);
var embedder="<div align='center' id='sndboxdiv' style='width:299;height:218px;overflow:hidden;'><center><br><br><br>Video Loading...</center></div><div id='there' align='center'><form id='wala' onsubmit='javascript:void(0);' action=''><br>"+
"<input type='button' name='button1' value='Change Video' onclick='shuffle(); return false;'> "+
"<br><br><input type='button' name='button2' value='Full Screen' onclick='fullscreen(); return false;' />"+
"<br><br><input type='button' name='button3' value='Reload Video' onclick='refresh(); return false;'/><br><br>"+
"<span id='controls'>"+
"<input type='button' name='button4' value='Show Controls' onclick='showcontrols(); return false;'>"+
"</span><br><br></form></div>";
addBox("RIGHT","video box",embedder,"embedder","2");
shuffle();[/quote]
[b]fuefuefue[/b] kenap tu dim, kamu pake shoutout vers apa ?
Last edited by teguh0203 (2008-08-01 02:52:11)