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

Discussion in 'HTML' started by mr_cross, Oct 9, 2006.

  1. mr_cross

    mr_cross Guest

    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.
     
    mr_cross, Oct 9, 2006
    #1
    1. Advertising

  2. mr_cross

    Nico Schuyt Guest

    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/
     
    Nico Schuyt, Oct 9, 2006
    #2
    1. Advertising

  3. 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.


    Yes, download any wysiwyg HTML editor (they all offer a demo version)
    and do it with that. My choice would be dreamweaver, but there are
    plenty out there
     
    Travis Newbury, Oct 9, 2006
    #3
  4. mr_cross

    Sid Guest

    On 8 Oct 2006 21:34:40 -0700, "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.


    Freeware Aranaea (or Homesite) - two clicks per image. Inserts
    height, width and gives you the option to insert alt for each image.

    Sid
     
    Sid, Oct 9, 2006
    #4
  5. mr_cross

    jojo Guest

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

    Travis Newbury wrote:

    > Yes, download any wysiwyg HTML editor (they all offer a demo version)
    > and do it with that. My choice would be dreamweaver, but there are
    > plenty out there


    But please, mr_cross, just keep away from "MS Frontpage"... It just
    creates terrible code...
     
    jojo, Oct 9, 2006
    #5
  6. mr_cross

    jojo Guest

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

    Sid 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.

    >
    >
    > Freeware Aranaea (or Homesite) - two clicks per image. Inserts
    > height, width and gives you the option to insert alt for each image.


    ....which is necessary if you want to follow the specs (at least html 4
    strict requires an alt attribute, not sure about transitional).
     
    jojo, Oct 9, 2006
    #6
  7. jojo wrote:
    > Sid wrote:
    > >> Hi. It's been a very long time...

    > > Freeware Aranaea (or Homesite) - two clicks per image. Inserts
    > > height, width and gives you the option to insert alt for each image.

    > ...which is necessary if you want to follow the specs (at least html 4
    > strict requires an alt attribute, not sure about transitional).


    Based on the question I don't believe that following the specs is
    important. The OP just wants an easy way to put the images there.
     
    Travis Newbury, Oct 9, 2006
    #7
  8. mr_cross

    Toby Inkster Guest

    Nico Schuyt wrote:

    > Names are not enough. You need properties like width, height and alt too.


    Alt text, sure. Width and Height are nice to have if they're not too much
    effort to enter, but you can get by without them.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact
     
    Toby Inkster, Oct 10, 2006
    #8
  9. mr_cross

    Nico Schuyt Guest

    Toby Inkster wrote:
    > Nico Schuyt wrote:


    >> Names are not enough. You need properties like width, height and alt
    >> too.


    > Alt text, sure. Width and Height are nice to have if they're not too
    > much effort to enter, but you can get by without them.


    Missing height and width result in problems with rendering the site
    ('jumping'). I suppose a browser is able to retreive those properties, but
    that will slow down the site. A missing alt text however can easily be
    replaced by a browser with alt="".

    --
    Nico Schuyt
    http://www.nicoschuyt.nl/
     
    Nico Schuyt, Oct 10, 2006
    #9
  10. mr_cross

    dorayme Guest

    In article <452bfcb9$0$93191$>,
    "Nico Schuyt" <> wrote:

    > Toby Inkster wrote:
    > > Nico Schuyt wrote:

    >
    > >> Names are not enough. You need properties like width, height and alt
    > >> too.

    >
    > > Alt text, sure. Width and Height are nice to have if they're not too
    > > much effort to enter, but you can get by without them.



    > Missing height and width result in problems with rendering the
    > site ('jumping'). Missing height and width result in problems with rendering the site
    > ('jumping'). I suppose a browser is able to retreive those properties,


    They don't just guess randomly. Toby is right, you can 'get by'
    without them, and in some situations it is worth it considering
    the alternative - mountains of boring clerical work. But true, it
    is usually nicer to have them in to avoid the "jumpiness" you
    refer to.

    However, and here is my incisive contribution for the day, one
    can take advantage of this jumpiness and make it a feature. Use
    it to be really cool in some respect or other. Now... please do
    not be greedy and ask for details. Be thankful for the strategic
    and creative idea.

    --
    dorayme
     
    dorayme, Oct 10, 2006
    #10
  11. mr_cross

    Nico Schuyt Guest

    dorayme wrote:
    > "Nico Schuyt" wrote:
    >> Toby Inkster wrote:
    >>> Nico Schuyt wrote:


    >>>> Names are not enough. You need properties like width, height and
    >>>> alt too.


    >>> Alt text, sure. Width and Height are nice to have if they're not too
    >>> much effort to enter, but you can get by without them.


    >> Missing height and width result in problems with rendering the
    >> site ('jumping'). Missing height and width result in problems with
    >> rendering the site ('jumping'). I suppose a browser is able to
    >> retreive those properties,


    > They don't just guess randomly.


    You'r right of course. The browser 'knows' the size after downloading the
    page. To avoid jumping the browser has to wait until the page is complete
    before showing. Slows down unnecessarily.

    > Toby is right, you can 'get by'
    > without them, and in some situations it is worth it considering
    > the alternative - mountains of boring clerical work. But true, it
    > is usually nicer to have them in to avoid the "jumpiness" you
    > refer to.


    > However, and here is my incisive contribution for the day, one
    > can take advantage of this jumpiness and make it a feature. Use
    > it to be really cool in some respect or other. Now... please do
    > not be greedy and ask for details.


    Please give me some details :)

    > Be thankful for the strategic and creative idea.


    Disadvantage is that the effect is only shown one time.

    --
    Nico Schuyt
    http://www.nicoschuyt.nl/
     
    Nico Schuyt, Oct 11, 2006
    #11
  12. mr_cross

    dorayme Guest

    In article <452c80ab$0$17949$>,
    "Nico Schuyt" <> wrote:

    > > However, and here is my incisive contribution for the day, one
    > > can take advantage of this jumpiness and make it a feature. Use
    > > it to be really cool in some respect or other. Now... please do
    > > not be greedy and ask for details.

    >
    > Please give me some details :)
    >
    > > Be thankful for the strategic and creative idea.

    >
    > Disadvantage is that the effect is only shown one time.
    >


    Not necessarily Nico! If the pictures are loaded by a randomising
    script and have different sizes, the secret cool effect I have in
    mind would be variations on a theme. I am not claiming it would
    rival Beethoven... just possibly a more minor composer though...
    :)

    --
    dorayme
     
    dorayme, Oct 11, 2006
    #12
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roland
    Replies:
    0
    Views:
    1,088
    Roland
    May 12, 2004
  2. Matthias
    Replies:
    5
    Views:
    451
    Whitecrest
    Jun 1, 2004
  3. Yannick

    ASP changes Big JPG -> Small JPG

    Yannick, Feb 2, 2004, in forum: ASP General
    Replies:
    6
    Views:
    163
    Tim Williams
    Feb 3, 2004
  4. Vilmar Brazão de Oliveira
    Replies:
    14
    Views:
    369
    Aaron Bertrand [MVP]
    Mar 5, 2004
  5. Replies:
    3
    Views:
    272
    Andy Dingley
    Sep 27, 2006
Loading...

Share This Page