Chez moi ce script marche:
<html>
<script>
function redim(event)
{
var axeX = event.clientX;
var axeY = event.clientY;
document.getElementById(´cadre1´).style.width= event.clientX;
document.getElementById(´cadre1´).style.height= event.clientY;
document.getElementById(´cadre2´).style.width=scre
en.width-event.clientX-9;
document.getElementById(´cadre2´).style.height=scr
een.height-event.clientY-202;
}
</script>
<style>
- cadre1
{
border-right:1px solid red;
border-bottom:1px solid red;
width:250;
height:250;
position:absolute;
top:0px;
left:0px;
}
- cadre2
{
border-left:1px solid red;
border-top:1px solid red;
width:250;
height:250;
position:absolute;
bottom:0px;
right:0px;
}
</style>
<body onmousemove="redim(event);">
<div id="cadre1" > </div>
<div id="cadre2"> </div>
</body>
</html>
Mais bon j´ai tulisé des valeurs comme 9 et 202 qui doivent dependre de ma resolution, a toi de voir si ca marche chez tout le monde 