Connecting Tech Pros Worldwide Forums | Help | Site Map

2 pics in layers

Ashok
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi,
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?

Ashok.



Daniel Tryba
Guest
 
Posts: n/a
#2: Jul 17 '05

re: 2 pics in layers


Ashok <non2@mail.ru> wrote:[color=blue]
> 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?[/color]

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.

Chung Leong
Guest
 
Posts: n/a
#3: Jul 17 '05

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">
<tr>
<td><img src="frame.gif"></td>
</tr>
</table>

Closed Thread