1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
<!--
function deplacement_go()
{
objcalendrier = document.getElementById("calendrier").style;
objcalendrier.top = event.y - 30;
objcalendrier.left = event.x - 30;
}
function deplacement_stop()
{
objcalendrier.top = objcalendrier.top
objcalendrier.left = objcalendrier.left
}
function demarrage()
{
document.onmousemove=deplacement_go;
}
function arret()
{
document.onmousemove="";
}
//-->
</script>
<div id="calendrier" style="position : absolute;" onMouseDown="javascript : demarrage();" onMouseUp="javascript : arret();"> |