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

Extract img path from text and replace "alt=" with overlib command with that img

Expand Messages
  • Walter Conti
    ColdFusioners and Sympathizer out there ... I have a text wich may contain various images, like this: Iis ad diem adductis, ut imperaverat, arbitros inter
    Message 1 of 1 , Oct 30, 2005
    • 0 Attachment
      ColdFusioners and Sympathizer out there ...

      I have a text wich may contain various images, like this:
      Iis ad diem adductis, ut imperaverat, arbitros inter civitates dat,
      qui litem aestiment poenamque constituant. <img height="119"
      hspace="4"
      src="/blogcfm/fckeditor/UserFiles/contiw/Image/pesaro_8.jpg"
      width="160" align="right" vspace="4" alt="" /><br /><br />Eodem
      equitatus totius Galliae convenit, numero milia quattuor... (this is
      latin).

      Need to go sequentially through the text and:
      - Extract path and name of the image;
      - Build a string like this : onClick="overlib('<img src=" ... the
      path and name of the image here ...">')";
      - Replace the ' alt="" ' paramenter with " alt="" "+...the new
      string ...

      This will let the reader view the image at its original size inside
      an overlib window.

      Please suggest a good approach to do this.
      Thank you very much.
      ContiW
    Your message has been successfully submitted and would be delivered to recipients shortly.