2008-05-25 17:25:23

Andy_99990
» FTalkManiac
FTalk Level: zero
608
0
1969-12-31

Re: [align=justify][b]bagi member yang ingin bertanya seputar tweaking FS, silahkan bertanya dan posting disini, tapi jangan lupa,,sebelum itu tolong [url=http://theftalk.com/t2744-%5BImportant%5D-

[quote=catur]mas2 q msh bngung nie cara buat foto dikiri ngikutin kursor?? da yg bsa bntu ga..[/quote] [quote]//floating image dude="<div id='divStayTopLeft' style='position:absolute;z-index:50;'><img src='[b]http://img184.imageshack.us/img184/8022/thankyoumdwhtbr9.gif[/b]' width='[color=#FF0000][b]100[/b][/color]px' height='[color=#FF0000][b]100[/b][/color]px' style='filter:none;-moz-opacity:1.0'/></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="fromtop" function BoyantDiv() [b]{ var startX = 30; var startY = 170; function ml(id) {[/b] 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();[/quote] kl mau letak nya di kanan.. ganti bagian code yg tebal sama yg ini..:thumbsdown: dengan ini...:thumbsdown: [quote]{ var startX = 880; var startY = 270; function ml(id) {[/quote] :D [b]edit :[/b] save bagian B...:thumbsup:

Last edited by Andy_99990 (2008-05-25 17:42:47)

Board footer

© 2024 F Talk

Current time is 18:29

[ 12 queries - 0.466 second ]
Privacy Policy