Re: Photo in middle with a href



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
.



Relevant Pages

  • Re: Freeware 32bit command line hardware detector?
    ... for the purpose of creating a hardware independent Windows XP Ghost ... or whatever I could compare against) and then the ... script would know which HAL to copy into windows\system32 and then the ...
    (microsoft.public.windowsxp.general)
  • Re: Perl script to mimic uniq
    ... > That is not what Unix uniq does. ... Can I se this script to compare the n columns of a file, ... > I suspect there's more to your original problem than you are telling ...
    (comp.lang.perl)
  • Re: Script to compare LPPs on multiple systems ...
    ... Script to compare LPPs on multiple systems ... ... =head1 SYNOPSIS ...
    (AIX-L)
  • Re: easy comparison of figures
    ... Often I want to compare 1 or 2 of those figures when running an altered code. ... Al figures in this container would not be updated, or changed in any way when running the script again. ... Iam just wondering if anybody has a easy way of comparing figures (like the gui container I just described) without constantly altering or commenting parts of the script to do so. ... run-parameters in the file names. ...
    (comp.soft-sys.matlab)
  • Re: easy comparison of figures
    ... Often I want to compare 1 or 2 of those figures when running an altered code. ... Al figures in this container would not be updated, or changed in any way when running the script again. ... run-parameters in the file names. ...
    (comp.soft-sys.matlab)