menghasilkan svg dari javascript
// SVG.js
var draw = SVG().addTo('#drawing')
, rect = draw.rect(100, 100).fill('#f06')
Lively Locust
// SVG.js
var draw = SVG().addTo('#drawing')
, rect = draw.rect(100, 100).fill('#f06')
<path id="algeria" onmouseover="displayName('Algeria')" d="..." />
<script type="text/javascript"><![CDATA[
function displayName(name) {
document.getElementById('country-name').firstChild.data = name;
}
]]></script>