[quote=b-boy_dimaz]aq kan mw mnta yg sebelah kanan
spti pnya bro
pleasee share 4 me[/quote]
ganti aja semua [b]LEFT[/b] jadi [b]RIGHT[/b]...
jadi kayak ini nih...
[spoiler]/* FLOATING OBJECT (SHAKIRO214) ----------------------------- */
dude="<div id='divStayTop[b]Right[/b]' style='position:absolute;z-index:50;'><div id='mainpic'></div></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 = [b]15[/b];
var startY = [b]170[/b];
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.[b]right[/b]=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.stayTop[b]Right[/b] = 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("stayTop[b]Right[/b]()", 50);
}
ftlObj = ml("divStayTop[b]Right[/b]");
stayTop[b]Right[/b]();
}
BoyantDiv();[/spoiler]
asalnya[b] Left [/b]semua tuh...
kalo ada yang belum diganti left ganti right sendiri ya...
Last edited by oby_nagnar (2008-11-28 06:14:25)