2 pics in layers

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have a site where I have pictures and frames for the pictures.
Is it possible that user picks a picture (it opens in same or a new window)
and then picks a frame (which is added to the border of the picture
selected) to see how it looks. There will be different pictures and frames.

Any idea of how this can be achieved, if not in php, some other way?


Re: 2 pics in layers

Basic HTML. Just use the picture at the background of a table, then
position the frame over it.

<table background="picture.jpg" cellspacing="0" cellpadding="0">
        <td><img src="frame.gif"></td>

Re: 2 pics in layers

Quoted text here. Click to load it

Many possible solutions, if you don't want to rely on clientside stuff
you could simply that 2 parameters (1 for frame and 1 for picture) and
render an image using GD functions. Advantage: always works (if the
client shows images), disadvantage: cpu time and roundtrip.

You could choose to this all this clientside by relative positioning and
some clientside scripting, but that if luckily OT here.

Site Timeline