[quote=andHa]ORIGINAL CODE AND IDEA : [url=http://www.dynamicdrive.com]dynamicdrive[/url]
the code has been modified by me, so that it can be applied in friendster profile.
this is the code to make a welcome message at the top of ur profile.
[quote]var themessage="[b]YOUR TEXT[/b]"
var fontsize=[b]10[/b] // below 50px.
[color=red]// don't edit below here.[/color]
var appearfor=2000
if (!attachOnLoadHandler(function() { position_at_top();expand();})) window.onload = function() { position_at_top();expand();};
function position_at_top(){
if (document.layers)
document.test.top=pageYOffset
else if (document.all){
test.innerHTML='<div align=center><font face="Arial">'+themessage+'</font></div>'
setTimeout("test.style.top=document.body.scrollTop+10;test.style.left=document.body.scrollLeft+10",100)
}
else if (document.getElementById){
document.getElementById("navigation").innerHTML='<div align=center><font face="Arial">'+themessage+'</font></div>'
document.getElementById("navigation").style.top=pageYOffset
}
}
function expand(){
if (document.layers){
document.test.document.write('<div align=center style="font-size:'+fontsize+'px"><font face="Arial">'+themessage+'</font></div>')
document.test.document.close()
}
else if (document.all)
test.style.fontSize=fontsize+'px'
else if (document.getElementById)
document.getElementById("navigation").style.fontSize=fontsize+'px'
fontsize+=5
if (fontsize>50){
if (document.layers)
setTimeout("document.test.visibility='hide'",appearfor)
else if (document.all)
setTimeout("test.style.visibility='hidden'",appearfor)
else if (document.getElementById)
setTimeout("document.getElementById('navigation').style.visibility='hidden'",appearfor)
return
}
else
setTimeout("expand()",50)
}[/quote]
just change the [b]bold[/b] part with ur own prefer.
[b]PREVIEW :[/b] [url=http://profiles.friendster.com/andhatestpage]andHa's test page[/url]
[/quote]
the code is not working andha...
i edited the bold part and paste it below in my media box...am i doing write???