Hi,

I've finally figured out the problem and filed a bug report.

If you have an SVG file containing a container element (A) that has it's 
display set to "none", set one of it's descendents (B) display attribute to 
"none using Javascript and then use javascript to set A's display to inline, A 
won't appear (unless you have other javascript setting their display elements 
to inline or they have SMIL animations).

The corect behaviour is for A and all it's descendents to appear, except for B 
and any other descendents that have display="none" (or visibility="hidden" or 
opacity="0").

In my web comic most frames have display="none".  When they're supposed to 
appear, speach bubbles (and sometimes other things), which are descendents of 
the frame, have their display set to none by javascript and then the frame's 
display is set to "inline".  Later the bubbles etc. have their displays set to 
"inline" but often with interactivity that relies on the frame.  Usually the 
hot zones appear, because they've had their display set to inline 
independently, and mousing over them will make the bubbles appear.  The reason 
I do it like this is so the function that makes the frame appear will work if 
the user chooses to view the frame out of sequence, moved to another frame part 
way through going through the bubbles etc. and comes back or wants to restart 
the frame.

It occures to me that a possible work around would be to change the frame's 
display to inline first.  The reason I didn't do that was that I didn't want 
the user to see things out of sequence.  This might not be a real concern but 
it depends how fast the user's computer is.  However, what makes me wonder if 
this will work is that the first hot zone has its display set to inline before 
the frame is set to inline and this appears, suggesting that it's still subject 
to the bug (because if it was working properly it should appear with the frame 
but the frame doesn't appear).  I shall test this.

Richard Pearman       http://www.pixelpalaces.com/
The next stage in the evolution of web comics: 
http://www.onlinecomics.net/pages/details/listing.php?comicID=4415
Read my Helium articles: http://www.helium.com/users/212199
South Alberta Cactus and succulent society: 
http://www.facebook.com/group.php?gid=20360241008
Make money from discussing things: http://www.myLot.com?ref=Graptopetalum



------------------------------------

-----
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> 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/

Reply via email to