New wiki-page
(Replaced content with "<script> function changeXY() { var marker = document.getElementById('marker'); var cx = document.getElementById("cx").value var cy = document.getElementById("...") |
No edit summary |
||
Line 7: | Line 7: | ||
alert(cx + ' ' + cy); | alert(cx + ' ' + cy); | ||
marker.setAttribute('cx', cx); | marker.setAttribute('cx', cx); | ||
marker.setAttribute('cy', cy); | |||
} | } | ||
Revision as of 17:43, 9 August 2017
<script>
function changeXY() {
var marker = document.getElementById('marker'); var cx = document.getElementById("cx").value var cy = document.getElementById("cy").value
alert(cx + ' ' + cy); marker.setAttribute('cx', cx); marker.setAttribute('cy', cy);
}
</script>
CX: <input type="text" id="cx" onchange="changeXY();">
CY: <input type="text" id="cy" onchange="changeXY();">