Connecting Tech Pros Worldwide Help | Site Map

2 pics in layers

  #1  
Old July 17th, 2005, 02:30 PM
Ashok
Guest
 
Posts: n/a
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.


  #2  
Old July 17th, 2005, 02:30 PM
Daniel Tryba
Guest
 
Posts: n/a

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.

  #3  
Old July 17th, 2005, 02:30 PM
Chung Leong
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Float and Shrinkwrap Ben C answers 2 June 27th, 2008 08:16 PM
Stationary navigation bar joey9iron answers 4 March 12th, 2007 02:56 PM
Javascript animation wmschneider@noctrl.edu answers 5 July 23rd, 2005 09:57 PM
problem on netscape 7.0 with javascript WL Yang answers 2 July 23rd, 2005 04:11 PM