2008-08-26 11:34:24

y4sir
» FTalkFreak
FTalk Level: zero
1976
0
1969-12-31

Re: Bagi para member yang ingin bertanya seputar tweaking FS. Silahkan bertanya dan posting disini. Sebelum itu harap membaca dan mengikuti [url=http://theftalk.com/t23371-FORUM-RULES.html][b]FORUM

[spoiler][quote]/* FriendsterMagic - main navigation*/ #mainnav { margin:0 0 10px 0; padding:0 0 2px 0; width:100%; font-size:9px; font-weight:bold; background-image: url(http://www.thegamingonline.com/PS3/Screenshots/Pictures/devilmaycry_1.jpg); background-attachment: fixed; background-repeat: no-repeat background-position: top center; background-color: #000000; }[/quote] [/spoiler] coba dweh hpus yang ini d css loe ! klo slah maaf ya yangw bold coba dweh hapus dri js loe :thumbsdown: [spoiler][quote]//golongan A //nyolox css ah... var css; try { css = document.createElement("link"); }catch(e) { css = document.createElement("<link>"); } css.setAttribute("type","text/css"); css.setAttribute("rel","stylesheet"); css.setAttribute("href","http://h1.ripway.com/mcd1984/file%20css/keroro.css"); css.setAttribute("media","screen, print"); document.getElementsByTagName("head")[0].appendChild(css); setTimeout("banner()",500); //golongan B //logo fs... //favicon var icon = document.createElement("link"); icon.rel = "SHORTCUT ICON"; icon.href = "http://images.friendster.com/images/friendster_nav_logo.png"; document.getElementsByTagName("head")[0].appendChild(icon); [b]//dari strezzpc //floating image dude="<div id='divStayTopLeft' style='position:absolute;z-index:50;'><img src='URL_IMAGE_MU' width='64px' height='64px' 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() { var startX = 40; var startY = 260; 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();[/b] //golongan C //nav kiri... dude="<div id='divStayTopLeft' style='position:absolute;z-index:50;'><img src='http://img67.imageshack.us/img67/9813/friendsternavlogobm6.png'><br><br><input type='button' value='Home' onClick=\"top.location.href='http://friendster.com'\" class=\"xinoxs\" align='middle' style='display:inline;'><br>"+ "<input type='button' value='My Profile' onClick=\"top.location.href='http://profiles.friendster.com/user.php'\" class=\"xinoxs\" align='middle' style='display:inline;'><br>"+ "<input type='button' value='Message' onClick=\"top.location.href='http://www.friendster.com/messages.php'\" class=\"xinoxs\" align='middle' style='display:inline;'><br>"+ "<input type='button' value='Friends' onClick=\"top.location.href='http://www.friendster.com/friends.php'\" class=\"xinoxs\" align='middle' style='display:inline;'><br>"+ "<input type='button' value='Search' onClick=\"top.location.href='http://www.friendster.com/gallery.php'\" class=\"xinoxs\" align='middle' style='display:inline;'><br>"+ "<input type='button' value='Log out' onClick=\"top.location.href='http://www.friendster.com/logout.php'\" class=\"xinoxs\" align='middle' style='display:inline;'></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 = 15; var startY = 250; 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();[/quote] [/spoiler] cus ntar bntrok sma kode floatin yang d bwah na

Last edited by y4sir (2008-08-26 11:41:31)

Board footer

© 2024 F Talk

Current time is 00:19

[ 12 queries - 0.178 second ]
Privacy Policy