-
<script Language = "JavaScript" type = "text/javaScript">
Funktion getClientBounds()
{
var clientwidth;
var clientHeight;
if ($ .browser.msie)
{
clientWidth = document.body.clientWidth;
clientHeight = document.body.clientHeight;
}
sonst wenn ($.browser.safari)
{
clientWidth = window.innerWidth;
clientHeight = window.innerHeight;
}
sonst wenn ($ .browser.opera)
{
clientwidth = math.min (window.innnerwidth,,
document.body.clientwidth);
ClientHeight = Math.min (window.innerHeight,
document.body.clientHeight);
}
anders
{
clientwidth = math.min (window.innnerwidth,,
document.documentElement.clientwidth);
ClientHeight = Math.min (window.innerHeight,
document.documentElement.clientHeight);
}
return {width: clientwidth, Höhe: clientHeight};
}
Funktion resetlivemessegerposition ()
{
var ClientBounds = getClientBounds ();
var container = document.getElementById ("LivemessegerContainer");
var scrollleft = (document.documentElement.scrollleft?
document.documentElement.scrollleft: document.body.scrollLeft);
var scrolltop = (document.documentElement.scrolltop?
document.documentElement.scrolltop: document.body.scrolltop);
var containerleft = scrollleft + clientBounds.width -
Container.Clientwidth - 5;
var containerTop = scrolltop + clientBounds.height -
Container.ClientHeight;
$ ("#LivemessegerContainer"). CSS (CSS (
{Top: Contentertop + "PX", links: ContainerLeft + "px"});
}