// javascript var gRondX = 0; var gRondY = 0; gRondX = document.getElementById('testRondX'); gRondY = document.getElementById('testRondY'); color ="rgb(" + (parseInt(e.clientX/2)%(256)) + ", " + (parseInt(e.clientY/2)%(256)) + ",0)" ; gRondX.x1.baseVal.value = e.clientX; gRondX.x2.baseVal.value = e.clientX; gRondX.setAttributeNS(null, 'stroke', color); gRondY.y1.baseVal.value = e.clientY; gRondY.y2.baseVal.value = e.clientY; gRondY.setAttributeNS(null, 'stroke', color); // xhtml: