Re: Photo in middle with a href
- From: "Jonathan N. Little" <lws4art@xxxxxxxxx>
- Date: Mon, 24 Jan 2011 09:59:05 -0500
Denis McMahon wrote:
However, to save creating html files for each image, you could open them
in a new window (or tab, depending on the viewers browser settings)
using javascript to create the html that both loads the image and
applies the styles.
Or better yet use a server side script to generate the page for each image that would *always* work regardless of the user's browser settings. Many scripts out there, but if you wish to roll your own it is very simple in the language of your choice, and outline in pseudocode:
Get image name passed in query string
Filter value to insure safe
(
limit length to reasonable size
remove "bad" characters not allowed in filename
)
Validate value
(
compare to preset list
or
compare to listing that your script creates by reading the image folder
)
If value valid image then
create page with image
Else
display error message
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
.
- Follow-Ups:
- Re: Photo in middle with a href
- From: John Larronn
- Re: Photo in middle with a href
- References:
- Photo in middle with a href
- From: John Larronn
- Re: Photo in middle with a href
- From: dorayme
- Re: Photo in middle with a href
- From: John Larronn
- Re: Photo in middle with a href
- From: Denis McMahon
- Photo in middle with a href
- Prev by Date: Re: Underline's color
- Next by Date: Re: what's the trick for a scrollbar these days?
- Previous by thread: Re: Photo in middle with a href
- Next by thread: Re: Photo in middle with a href
- Index(es):
Relevant Pages
|