[quote=Suambogo]plizz pencerahannya
biar Mp3ku nyala lagi...[/quote]
koq gw g liat ada kode mp3 d js lw ya
js ny mnding di jadiin satu az bro, jgn d pish... tkutny mlh bntrok...
@sonic
yg ini
[spoiler]//floating
var currentTime = new Date();
var hours = currentTime.getHours();
var minutes = currentTime.getMinutes();
if (minutes < 10)
minutes = "0" + minutes;
var jamenit = (hours + ":" + minutes + " ");
if(hours > 11){
var ampm = ("PM");
} else {
var ampm = ("AM");
}
dude="<div id='divStayTopRight' style='position:absolute;z-index:50;'><embed src=\"http://assets.myflashfetish.com/swf/mp3/mff-circle.swf\" quality=\"high\" wmode=\"transparent\" flashvars=\"myid=14509505&path=2008/10/28&mycolor=2E2A2A&mycolor2=3D3D3B&mycolor3=594343&autoplay=true&rand=0&f=4&vol=100&pat=0&grad=false\" width=\"110\" height=\"110\" name=\"myflashfetish\" align=\"middle\"type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" border=\"0\" style=\"visibility:visible;width:110px;height:110px;\" /><br><font color='red'>Visitor Time Clock:</font><br><font color='red'> "+jamenit+ampm+" </font><br></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 = 10;
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.right=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.stayTopRight = 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("stayTopRight()", 50);
}
ftlObj = ml("divStayTopRight");
stayTopRight();
}
BoyantDiv();[/spoiler]
coba truh di bag C
trus yg ini
[quote].commonbox{width:[b]800[/b]px}[/quote]
gnt 500/550px
Last edited by h312y_sh (2009-01-25 13:34:41)