[quote=robin rianto]maksud na gimana....
saya kagak ngerti neh....
bisa kasih tau contoh na ga....
maklum saya masih newbie[/quote]
[spoiler]wong dah friendsteraddict ngaku'a newbie... LOL[/spoiler]
contoh'a kyk bgini:
[spoiler]float="<div id='divstayTopRight' style='position:absolute;z-index:50;'><a href=\"ymsgr:sendim?[b]YM KAMU[/b]\"><img src=\"http://opi.yahoo.com/online?u=[b]YM KAMU[/b]&t=8\"/></a></div>";
buckz=document.getElementById('flo_wrapper');
null=document.createElement("div");
null.innerHTML=float;
buckz.parentNode.insertBefore(null,buckz);
var verticalpos="frombottom"
function floating(){
var hoax = 40; var hoay = 300;
function then(missed){
if (document.getElementById){
var gangsta=document.getElementById(missed);}
else if (document.all){
var gangsta=document.all[missed];}
else{
var gangsta=document.layers[missed];}
if(document.layers){
gangsta.style=gangsta;}
gangsta.cUih = function(no,yes) {fly(no,yes);};
function fly(no,yes){
gangsta.style.right=no;
gangsta.style.top=yes;}
gangsta.no = hoax;
if (verticalpos=="frombottom"){
gangsta.yes = hoay;}
else{
if (navigator.appName.indexOf("Netscape") != -1) {
gangsta.yes = pageYOffset + innerHeight;}
else{
gangsta.yes = document.body.scrollTop + document.body.clientHeight;
}
gangsta.yes -= hoay;}
return gangsta;}
window.stayTopRight = function () {thug();};
function thug(){
if (verticalpos=="frombottom"){
if (navigator.appName.indexOf("Netscape") != -1) {
var rap = pageYOffset;}
else {
var rap = document.body.scrollTop;}
sneaker.yes += (rap + hoay - sneaker.yes)/8; }
else {
if (navigator.appName.indexOf("Netscape") != -1) {
var rap = pageYOffset + innerHeight; }
else {
var rap = document.body.scrollTop + document.body.clientHeight;
}
sneaker.yes += (rap - hoay - sneaker.yes)/8; }
sneaker.cUih(sneaker.no, sneaker.yes);
oalaH=setTimeout("stayTopRight()", 50); }
sneaker = then("divstayTopRight");
stayTopRight(); }
floating();[/spoiler]
dh gthu doank.... & taro d bag C...
[quote]ksih tw klo script'a gg jlan...[/quote]
[hr][hr][hr][hr]
[quote=B4yu_putra]yg di bwh recent updates z sob..
[/quote]
ni:
[spoiler]var bullshit; try {bullshit = document.createElement("div");}
catch (e) {bullshit = document.createElement("<div>");}
bullshit.innerHTML = "<a href=\"ymsgr:sendim?[b]YM KAMU[/b]\"><img src=\"http://opi.yahoo.com/online?u=[b]YM KAMU[/b]&t=8\"/></a>"; bullshit.setAttribute("style","text-align:center;padding-top:10px;margin-left:32px"); document.getElementById("0").getElementsByTagName("ul")[1].parentNode.appendChild(bullshit);[/spoiler]
taro d bag A....
Last edited by Da BucKz (2008-12-14 06:56:26)