[quote=nisfuaje]Bro all,..
ada yang tau gak thread floating mp3?????
gw dah nyari di daftar thread kagak nemu,...
tolong yah arahan nya klo yang tau url nya[/quote]
klo tritnya ga tau gw jg g nmu ..
begini mungkin
[spoiler]// FLOATING OBJECT
dude="<div id='divStayTopLeft' style='position:absolute;z-index:50;'>[color=#ff0000]TARUH SINI EMBED MP3 NYA[/color]</div>";
flow=document.getElementById('flo_wrapper');
river=document.createElement("div");
river.innerHTML=dude;
flow.parentNode.insertBefore(river,flow);
//in this part you can change it into "frombottom" or "fromtop"
var verticalpos="frombottom"
function BoyantDiv()
{
var startX = 304;
var startY = 170;
function ml(id)
{
if (document.getElementById)
{
var wek=document.getElementById(id);
}
else if (document.all)
{
var wek=document.all[id];
}
else
{
var wek=document.layers[id];
}
if(document.layers)
{
wek.style=wek;
}
wek.sP = function(x,y) {shino(x,y);};
function shino(x,y)
{
wek.style.left=x;
wek.style.top=y;
}
wek.x = startX;
if (verticalpos=="fromtop")
{
wek.y = startY;
}
else{
if (navigator.appName.indexOf("Netscape") != -1)
{
wek.y = pageYOffset + innerHeight;
}
else
{
wek.y = document.body.scrollTop + document.body.clientHeight;
}
wek.y -= startY;
}
return wek;
}
window.stayTopLeft = function () {boyant();};
function boyant()
{
if (verticalpos=="fromtop"){
if (navigator.appName.indexOf("Netscape") != -1)
{
var tenten = pageYOffset;
}
else
{
var tenten = document.body.scrollTop;
}
ftlObj.y += (tenten + startY - ftlObj.y)/8;
}
else{
if (navigator.appName.indexOf("Netscape") != -1)
{
var tenten = pageYOffset + innerHeight;
}
else
{
var tenten = document.body.scrollTop + document.body.clientHeight;
}
ftlObj.y += (tenten - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
wakoko=setTimeout("stayTopLeft()", 50);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
BoyantDiv();[/spoiler]
ntar code mp3nya masukin tuh yg saia tandain merah..
jgn lupa klo d embed mp3 nya ada tanda kutip 2 [b][color=#ff0000]"[/color][/b] ubah jadi [b][color=#ff0000]\"[/color][/b]
[quote=michael james way]da yg punya code js window getar ga tapi yg pake mozilla,,
[/quote]
apa ini bro??..
taruh aja di bagian A atau bagian C terserah..
<">[quote=_Qq Gunners_]gimana sih cara bikin nav kayak:
[/quote]
punya imagenya ga buat navigasinya??
Last edited by Co_don SanAdH (2008-09-18 01:55:14)