Code:
(snip)
<script type="text/javascript">
function showMail() {
var mail = document.getElementById('mail');
var mbx = document.getElementById('mbx');
var height = 200; // mail box height in pixels, must be edit
var width = 100; // mail box vet pixels, must be edited
var top = (height - mail.y); // minus since the box is going up
var left = (width - mail.x);
mbx.style.height = height;
mbx.style.width = width;
mbx.style = "position: absolute; left: " + left + " top: " + top + "; overflow: scroll; display: visible";
}
function hideMail() {
var mbx = document.getElementById('mbx');
mbx.style.display = "none";
}
</script>
<div id="mbx" style="display: none">
<b>My Mail</b>
<span align="right"><a href="javascript:hideMail()">X</a></span>
Here, you put the contents of the mail inbox.
</div>
<div id="bottom">
<table border='0' width='100%'>
<tr>
<td valign='top' height='100%' width='25'>
<img src='mail.png' width='25' height='25'></td>
<td valign='center' width='70'>
<font face='Lucida Sans'>
<a href="javascript:mail()" id="mail">My Mail</a>
</font>
</td>
<td style='border-left:1;' valign='center'>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/chat.js"></script>
</td>
</tr>
</table>
</div>
</body>
</html>
Bookmarks