Ho risolto.
In pratica la risposta al problema me l'ero giā data da solo dicendo che la setAttribute vuole una stringa...
La soluzione č questa:
Codice:
var x = 10;
var y = 10;
var z = 20;
var k = 20;
var coordinate = new String(x + "," + y + "," + z + "," + k);
var body = document.getElementById("body");
var mappa = document.createElement("map");
mappa.setAttribute("name", "map1");
var zona = document.createElement("area");
zona.setAttribute("shape", "rect");
zona.setAttribute("coords", coordinate);
zona.setAttribute("nohref", "true");
zona.setAttribute("onmouseover", "document.writeln('ciao')");
mappa.appendChild(zona);
body.appendChild(mappa);
Magari a qualcuno torna utile.
BYEZZZZZZZZZZ!!!!!!!!!!