2008-08-21 12:02:15

boim
» FTalkGeek
FTalk Level: zero
1060
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

[quote=reverend7x]Kk,, Cara Byar FS 1 KoLom Tapi KoLomnya di Kiri G ditengah Gmana c????[/quote] coba bro taro neeh dijsnya :thumbsdown: <">trus yg inih dicssnya :thumbsdown: [quote].commonbox { width:[b]560[/b]px; left:[b]100[/b]px;}[/quote] edid ajah yg dibold widthnya sesuaikan dengan lebar box trus left ituh utk nentuin jarak box dari kiri ;) :thumbsup: [quote=y4sir]da yang tw floating kode sebelah kanan g ???[/quote] coba bro pake punya saiia :thumbsdown: [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="[b]<div id='divStayTopRight' style='position:absolute;z-index:50;'><img src='http://homepage.ntlworld.com/curly.johnson/images/eyez2.gif'style='width:200px;height:70px;'><br><br><div id='mainpic'></div><br><br><b><font color='white'>Logged in as</font> <font color='red'> "+pageViewerFName+" </font></b><br><br>"+ "<b><font color='white'>Last visit :</font><font color='red'> Today "+jamenit+ampm+" </font></b><br><br><font color='white'><b>View This Page :</b></font><font color='red'> "+times+" times</font><br><br><img src='http://images.friendster.com/images/friendster_nav_logo.png'></br></div>[/b]"; 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 = 15; 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.[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(); /* VISITOR PICTURE (FERUZZ) --------------------------------- */ if (!attachOnLoadHandler(function(){viewer();})) window.onload = function(){viewer();}; function viewer() { if(pageViewerID!="") VIEWERPIC.init(); } function spawnImage(mypic) { if (!mypic) { VIEWERPIC.getCode(); return; }else { for (val in VIEWERPIC.info) { try { VIEWERPIC.getPhoto = new RegExp(VIEWERPIC.regexp[val]).exec(mypic)[1].replace(/(\d)+?/i,"$1"); document.getElementById("mainpic").innerHTML = VIEWERPIC.getPhoto; } catch(e) { VIEWERPIC.getPhoto = ""; document.getElementById("mainpic").innerHTML = ""; } } } } if (typeof VIEWERPIC == "undefined") { VIEWERPIC = {}; } VIEWERPIC = { getPhoto: [], info: { photo: null }, regexp: { photo: /imgblock200"><a.*?>((.|\s)+?)<\/a><\/div>/ }, init: function() { if(document.getElementById("mainpic") != null) { this.ajaxRequest("/user.php?uid="+pageViewerID,"spawnImage",null); } }, ajaxRequest: function(url,ajaxfunc,handler) { if(handler) { handler = ","+handler; } else handler = ""; var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if(ajaxfunc) { eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+ajaxfunc+"(httprequest.responseText"+handler+");}}"); } httprequest.open('GET', url, true); httprequest.send(null); } };[/spoiler] edid ajah yg dibold, floatingnya ntuh udah dikanan kalo mau edid lagi liat aja tulisan rightnya itu yg diubah jadi left ;) :thumbsup: semoga membantu...:D

Last edited by boim (2008-08-21 12:08:20)

Board footer

© 2024 F Talk

Current time is 14:54

[ 12 queries - 0.224 second ]
Privacy Policy