Connecting Tech Pros Worldwide Help | Site Map

2 pics in layers

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 01:30 PM
Ashok
Guest
 
Posts: n/a
Default 2 pics in layers

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, 01:30 PM
Daniel Tryba
Guest
 
Posts: n/a
Default 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, 01:30 PM
Chung Leong
Guest
 
Posts: n/a
Default 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>

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.