Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Justin

Justin Avatar
:)

****
Senior Member

256


July 2009
Yes that`ll be fine :)
My signature
[/left][/i][/size]

Alex

Alex Avatar

**
Official Member

33


April 2009
Erm, you could try this. It should work... O_o




<table id="Your" class="bordercolor" align="center" width="92%" cellpadding="4" cellspacing="1" style="position: relative; bottom: 1px;">
<tr>
<td id="Left_Cell" class="menubg" width="50%">
</td>
<td class="menubg" width="50%">
</td>
</tr>
</table>

<script type="text/javascript">
<!--

//Created by Justin
//Special thanks to Alex and Wrighty of SZ

var Left_Cell=document.getElementById('Left_Cell');
if(pb_username=="Guest"){
    Left_Cell.innerHTML='Hello Guest, Please login or Register';
}else if(pb_username!="Guest"){
    var Message_Font=document.getElementsByTagName('font').item(2).innerHTML;
    var New_Messages=(Message_Font.match(/<\/a>, (.+?) (is|are) new./i))? RegExp.$1 : '';
    var Total_Messages=(Message_Font.match(/>(.+?) message(s)?<\/a>/i))? RegExp.$1 : '';
    Left_Cell.innerHTML='Welcome ' + pb_displayname + ', you have ' + New_Messages + ' new messages';
}
document.getElementsByTagName('body').item(0).insertBefore(document.getElementById('Your'), document.getElementsByTagName('table').item(0).nextSibling);

//-->
</script>





I didn't really get to test this out properly, so if it doesn't work then there are various other ways to do it.


Last Edit: Aug 22, 2009 2:17:08 GMT by Alex

Justin

Justin Avatar
:)

****
Senior Member

256


July 2009
works fine :)

but the right side of the Table is blank, how do i write something in that?
My signature
[/left][/i][/size]

newBookmarkLockedFalling