Quote:
|
Originally Posted by Seb function Clipboard()
{
shapes = Dess.childNodes;
Compteur = shapes.length;
if(top.clipboardData)
{
NewSVG ="";
for(i=0; i<Compteur; i++)
{
NewSVG +=printNode(shapes.item(i));
}
NewSVG='<g>'+NewSVG+'</g>';
top .clipboardData.setData("Text", NewSVG);
alert(NewSVG);
}
else alert("Vous devez creer des objets pour pouvoir utiliser cette fonction");
} |
To save your group, make only :
function Clipboard()
{
if(top.clipboardData)
{
NewSVG=printNode(Dess)
alert(NewSVG);
}
else alert("Vous devez creer des objets pour pouvoir utiliser cette fonction");
}
Michel
Michel