Reply to Re: Q:How to "drag and drop" jpg's into html and have the code write itself?

Your name:

Reply:


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/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация