Loading ...
Sorry, an error occurred while loading the content.

Re: [NH] inserting multiple images in an HTML doc

Expand Messages
  • Alec Burgess
    Mike: It all depends :-) ... what are you starting from? ie. this is what I see for one of your pics ...  
    Message 1 of 1 , Jun 23, 2005

      It all depends :-) ... what are you starting from?

      ie. this is what I see for one of your pics ...
      <p> </p>
      <h2><a href="http://www.saintpatricksdayparade.com/new_orleans.htm">St
      Pattys Day Parade</a></a> - New Orleans</h2>
      <div align="center">
      <img src="Dscf14.jpg" alt="">

      looks like it contains 4 "pieces" of info for each picture. If it were a CSV
      file where TABS are represented by >> it might look like this:

      site URL >> site name-clickable >> site additional info >> picture-file-name
      http://www.saintpatricksdayparade.com/new_orleans.htm>>St Pattys Day Parade
      >>New Orleans >>Dscf14.jpg

      Note, by chance I appear to have grabbed an pic with a warning message ...
      note the double </a></a>. Confirmed by running HTML-tidy.

      Ignoring my fake titles and assuming your file would consist of only lines
      structured as above, this one-line regexp should do the job (untested)

      H="CSV format --> HTML pics"
      ;Alec Burgess 2005-06-23 (Thu)
      ^!set field1=""
      ^!set field2=""
      ^!set field3=""
      ^!set field4="
      ^!set field5=""
      ;--- one line ---
      ^!replace "{.*}\t{.*}\t{.*}\t{.*}\t{.*}" >>
      "^%field1%\1^%field2%\2^%field3%\3^%field4%\4^%field5%" rwsait
      ;--- end one line---
      ;--- end of clip

      Note: You would put the required info in each of field 1,2,3,4,5 above. I've
      left them blank for now so the structure is clear. Here's what I think each
      should contain. each of these is one line regardless of wrapping introduced
      by yahoo.

      ^!set field1="<p> </p> <h2><a href=""
      ^!set field2="">"
      ^!set field3="</a> - "
      ^!set field4="</h2> <div align="center"> <img src=""
      ^!set field5="" alt=""> </div>"

      Note: do you use Firefox? If so, there is a really nice extension called
      which creates a sidebar showing the heading structure for any page using H1,
      H2,...,H5 tags as yours does :-) It winds up creating a nice list of
      clickable links in the sidebar showing the names of each of your photos.

      Note: if you haven't got your "stuff" in a format like that proposed above
      you might find Eric's EZImager a good fit for your requirements, but as I
      said, the combo of Mozilla-Firefox, the DocumentMap extension, and a quick
      hack Notetab clip does everything (I think) you've requested.

      Let me know if this helps ...

      Regards ... Alec
      ; ( ) { } [ ] \ | 9 0 + = () {} []

      ---- Original Message ----
      From: "Mike Breiding - Morgantown WV" <mike@...>
      To: <ntb-html@yahoogroups.com>
      Sent: Thursday, June 23, 2005 13:39
      Subject: [gla: [NH] inserting multiple images in an HTML doc

      > Can anyone tell me how to add multiple images to an html
      > doc rather than
      > have to add them one at a time using "Image" clip?
      > I want generate a page which will consist of photos such
      > as: http://mbreiding.us/ert/sampler/
      > Thanks,
      > -Mike
    Your message has been successfully submitted and would be delivered to recipients shortly.