-
<langage de script="javascript" type="text/Javascript">
fonction getClientBounds()
{
varClientLargeur;
var hauteur client ;
si ($.browser.msie)
{
clientWidth = document.body.clientWidth;
clientHeight = document.body.clientHeight;
}
sinon si ($.browser.safari)
{
clientWidth = window.innerWidth;
clientHeight = window.innerHeight;
}
sinon si ($.browser.Opera)
{
clientWidth = Math.min(window.innerWidth,
document.body.clientWidth);
clientHeight = Math.min(window.innerHeight,
document.body.clientHeight);
}
autre
{
clientWidth = Math.min(window.innerWidth,
document.documentElement.clientWidth);
clientHeight = Math.min(window.innerHeight,
document.documentElement.clientHeight);
}
return { width : clientWidth, height : clientHeight };
}
fonction réinitialiserLiveMessengerPosition()
{
var clientBounds = getClientBounds();
var conteneur = document.getElementById("liveMessengerContainer");
var scrollLeft = (document.documentElement.scrollLeft ?
document.documentElement.scrollLeft : document.body.scrollLeft);
var scrollTop = (document.documentElement.scrollTop ?
document.documentElement.scrollTop : document.body.scrollTop);
var conteneurLeft = scrollLeft + clientBounds.width -
conteneur.clientWidth – 5 ;
var conteneurTop = scrollTop + clientBounds.height -
conteneur.clientHeight;
$("#liveMessengerContainer").CSS(
{top : conteneurTop + "px", gauche : conteneurLeft + "px"});
}