|
Posted by Nico Schuyt on 10/09/06 08:35
mr_cross wrote:
> Hi. It's been a very long time since I did any extensive html coding,
> so all I recall are the basics. I'm looking to create a web site with
> a lot of jpg pictures divided among several web pages. Is there an
> html program out there that will allow me to just drag and drop the
> jpg's into my html code without the need to cut and paste the name of
> each individual jpg? Thanks.
Names are not enough. You need properties like width, height and alt too.
Most editors can do that (try NVU; http://www.nvu.com/index.php)
If you have a lot of images, you can show all files in a certain map with
some scripting like:
<?php
//$map is the directory with the images
$map="/images";
if ($handle = opendir($map)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") { //Skip root and submaps
$pict=$map.$file;
list($width, $height) = getimagesize($foto);
echo "<p><img src='".$pict."' width='".$width."'
height='".$height."'><br>\n";
echo $file."</p>\n";
}
}
closedir($handle);
}
?>
--
Nico Schuyt
http://www.nicoschuyt.nl/
Navigation:
[Reply to this message]
|