code provided by: [b]Angell de Ville[/b]
[color=#f50000][b]js part:[/b][/color]
[quote]function rejectPost(){
if(pageViewerID==""){
alert("Please log in to your Friendster account to use this chatbox.")
customCbox.innerHTML="<input type='button' id='chatLog' value='Click here to log in to your account' onclick='logPoster()'>"
}
}
function logPoster(){
top.location.href="http://www.friendster.com/login.php?next=%2Fuser.php%3Fuid%3D12345678&cookie=1"
}
navdivider.innerHTML+="<iframe src='about:blank' width='0' height='0' style='visibility:hidden'></iframe>"
+"<div id='cboxdiv' class='commonbox cboxdiv'>"
+"<h2>"+pageOwnerFName+"'s Chatbox</h2>"
+"<br><div id='content_cboxdiv' align='center'>"
+"<iframe frameborder='0' src=[b][color=#0900ff]'http://www2.cbox.ws/box/?boxid=1711952&boxtag[/color][/b]=baw5wj&sec=main' scrolling='auto' allowtransparency='yes' id='mychat' name='cboxmain' class='mntb'>"
+"</iframe>"
+"<form id='customCbox' name='apCbox_form' target='cboxmain' action=[b][color=#0900ff]'http://www2.cbox.ws/box/?boxid=1711952&boxtag[/color][/b]=baw5wj&sec=submit' method='post' class='frmtb'>"
+"<input type='hidden' name='nme' value='"+pageViewerFName+"'>"
+"<input type='hidden' name='eml' value='http://www.friendster.com/"+pageViewerID+"'>"
+"<input type='text' maxlength='300' name='pst' size='37' class='cText' id='chatMessage' onfocus='rejectPost()'>"
+"<input type='submit' class='cButton' id='chatGo' value='Go' name='sub'>"
+"<input type='reset' class='cButton' id='chatClear' value='Clear' onclick='reset()'>"
+"</form>"
+"<br></div>"
+"</div>"
document.getElementById[b][color=#006400]("2").[/color][/b]parentNode.appendChild(cboxdiv)[/quote]
edit the [color=blue]blue [/color] part to ur own chatbox id
edit the [b][color=#006400]green[/color][/b] to control the position where u want it to appear
[color=#f50000][b]css part:[/b][/color]
<">
Last edited by switpotato (2008-07-16 04:00:07)