Friendster Tricks and Tutorials

biar css brfungsi pake ni

<img id='csslink' width='0' height='0' src=???
onError='css=document.createElement("link");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","LINK_CSS");
document.getElementsByTagName("head")
[0].appendChild(css);'>
 
Code:
//
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='divStayTopLeft' style='position:absolute;z-index:50;'><b><font color='red'></b></font><div id='mainpic'></div><br><img src=[B]'URL GAMBAR KAMU'[/B] width='90px' height='110px' style='filter:none;-moz-opacity:1.0'><br><b><font color='red'>[B]TULIS PESAN KAMU DISINI[/B]</font> <font color='green'> "+pageViewerFName+" </font></b><br>"+
"<b><font color='red'>Last visit</font><font color='white'>: Today "+jamenit+ampm+" </font></b><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 = 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.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();

ni kode buat nampilin gambar yang naik turun di profile,,, simpen pake ekstensi .js trus upload ke hostingan kamu. Trus di addmedia box tambahin :
Code:
<script src="Link hostingan js tadi"></script>

contoh : Here
 
Last edited:
Shake Browser

Code:
window.resizeTo(10,10)
window.focus()
if(window.moveBy){
window.moveTo(0,0)
for(l=30;l>0;l--){
for(r=3;r>0;r--){
window.moveBy(0,l)
window.moveBy(l,0)
window.moveBy(0,-l)
window.moveBy(-l,0)
}
}
}

scrW=screen.availWidth
scrH=screen.availHeight
window.moveTo(0,0)
window.resizeTo(10,10)
window.focus()
for(x=0;x<80;x++){
window.resizeTo(10,scrH*x/80)
}
for(y=0;y<80;y++){
window.resizeTo(scrW*y/80,scrH)
}
window.resizeTo(scrW,scrH)

simpen kode diatas dengan ekstensi js,, trus upload di webhostingan kamu

link js tadi di generate di js linker disini

hasilnya di copas ke addmedia box profile kamu

contoh : http://profiles.friendster.com/8115519
 
//
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='divStayTopLeft' style='position:absolute;z-index:50;'><b><font color='red'></b></font><div id='mainpic'></div><br><img src='URL GAMBAR KAMU' width='90px' height='110px' style='filter:none;-moz-opacity:1.0'><br><b><font color='red'>TULIS PESAN KAMU DISINI</font> <font color='green'> "+pageViewerFName+" </font></b><br>"+
"<b><font color='red'>Last visit</font><font color='white'>: Today "+jamenit+ampm+" </font></b><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 = 15;
var startY = 170;
function ml(id)
{
yang ini keren soalnya klo gw cuman ada gambare tapi g pake pesan liat pake mozilla
 
CHAT BOX Application
PHP:
<iframe title="tarida" src="http://www4.shoutmix.com/?tarida" width="400" height="1000" frameborder="0" scrolling="auto">
<a href="http://www4.shoutmix.com/?tarida">View shoutbox</a>
</iframe>

Paste ke Add Media box
 
Last edited:
gw bingung neh...... katanya langsung copas ajh ke media box tapi ga ada efek nya dan js sama ccs itu apa (pemula FS) tolong dong kasih tau ... malah seluruh media box gw ilang smua gara2 copas script dari subhan

cara simpen ke js/ccs gmn cara nya

aaaaaaaa banyak bgt yang harus di pelajarin
 
Last edited:
ngesave script js tuh kode js di copas ke notepad disimpen pake ekstensi .js (defaultnya .txt),, cara ngejalaninnya taruh di media box dg kode <script src="link file.js"></script>

linknya dari file js tadi yang udah diuploadin di webhosting kek ripway.com, dsb
 
kahr9 nanya dong : kan dah di upload dgn format ,js di ripway.com trus di apain lagi ..???? apa masuk ke [get HMTL code] ?? tetep ajh ga jalan anehh
 
Back
Top