Hi all,
I have an element in my svg file that is hidden by default but I
want to be able to display this element at several positions. Here
is my code :
svg part :
<g id="cross" style="stroke:rgb(100,100,100);stroke-width:50;"
display="none">
<line y2="100" x1="-100" x2="100" y1="-100"/>
<line y2="-100" x1="-100" x2="100" y1="100"/>
</g>
js part :
function displayMultiple(){
while (i < 3) {
x = i*10;
y = i*10;
i++;
display('inline');
document.getElementById("cross").setAttributeNS
(null,"transform","translate("+x+" "+y+")");
setTimeout("display('none')",1000);
}
}
function display(disp){
document.getElementById("cross").setAttributeNS
(null,"display",disp);
}
I expected that code to display (then make disappear) the "cross" at
several places at the same time but it doesn't work : only the last
one is displayed.
Could somebody help me please ?
Thanks.
Julie
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/