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

http://www.cfcl.com/rdm Rich M.
http://www.cfcl.com/rdm/resume [email protected]
http://www.cfcl.com/rdm/weblog +1 650-873-7841

Technical editing and writing, programming, and web development

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

-r

http://www.cfcl.com/rdm Rich M.
http://www.cfcl.com/rdm/resume [email protected]
http://www.cfcl.com/rdm/weblog +1 650-873-7841

Technical editing and writing, programming, and web development

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

http://www.cfcl.com/rdm Rich M.
http://www.cfcl.com/rdm/resume [email protected]
http://www.cfcl.com/rdm/weblog +1 650-873-7841

Technical editing and writing, programming, and web development

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

At 2:58 AM -0800 2/26/07, Joram wrote:

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”

On 26 feb, 11:49, Rich M. [email protected] wrote:

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

http://www.cfcl.com/rdm Rich M.
http://www.cfcl.com/rdm/resume [email protected]
http://www.cfcl.com/rdm/weblog +1 650-873-7841

Technical editing and writing, programming, and web development

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs