stacking GIFs w/transparent backgrounds?

I realize that this isn't exactly a Rails question, but I _am_ planning to use the information for a Rails app :-).

I'm interested in stacking GIFs w/transparent backgrounds, then using JavaScript to hide/show certain images. This will (it says here :slight_smile: let the user cause different parts of a diagram to appear and disappear.

Problem is, I haven't found a way to stack images so that this works. I'm using an opaque white image as the bottom image, then layering others (with transparent backgrounds) on top. If I set the opacity to (say) 0.5, I see all of the diagrams, with different amounts of haziness. Help?

-r

Never mind. Somehow, I didn't have transparent backgrounds.

-r

In case anyone is interested, I hacked up some JavaScript to do dynamic composition of (Graphviz) diagrams:

  Diagram Composition   http://www.cfcl.com/rdm/diagrams/dc.html

  Dynamic Diagram Composition   http://www.cfcl.com/rdm/diagrams/ddc.html

-r

I'm facing the same problem as you. I need to stack different images on each other dynamically when a user selects something from a list.

How did you do it? Did you use css?

try this:

http://pastebin.ca/372959

I'm facing the same problem as you. I need to stack different images on each other dynamically when a user selects something from a list.

How did you do it? Did you use css?

CSS, HTML, and JavaScript - do a "View Source"