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

Re: [Clip] Inserting images

Expand Messages
  • Axel Berger
    ... Using the help to another question I found a partial answer. I used ^!Set %varIMG%=^?{(T=O;F= Image Files|*.gif;*.png;*.jpg;*.jpeg )Image file name};
    Message 1 of 1 , Sep 3, 2006
    • 0 Attachment
      Absalom Nemini Filius (myself in another incarnation) wrote:
      > This automatically includes the width and height tags. Now I prefer
      > not using them. If someone wants to view or print a page without
      > graphics the boxes should be big enough to take the ALT text but I
      > don't want whole pages unnecessarily filled with huge white spaces.

      Using the help to another question I found a partial answer. I used

      ^!Set %varIMG%=^?{(T=O;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")Image
      file name};
      ^!InsertHtml <IMG SRC="^%varIMG%">

      Typing the file this works perfectly. But selecting the file through the
      button I had two choices:
      T=T shortens paths to relative ones if applicable and changes
      backslashes to forward ones. But it also adds not only "SRC=" and quotes
      but also the unwanted width and height tags.
      T=O avoids the latter problem but returns paths the wrong way.

      But hey-ho there's functions. This works (extra linefeeds added for
      legilbility, delete before using):

      ^!Set %varURL%=^?{Enter a URL};
      %varIMG%=^?{(T=O;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")Image file
      name};
      %varALT%=^?{Image text description};
      %varBORD%=^?{Borderless=BORDER="0"};
      %varALI%=^?{Ausrichtung=ALIGN="RIGHT"}
      ^!InsertHtml
      <A HREF="^%varURL%">^P
      <IMG SRC="^$FileToUrl("
      ^$GetRelativeName(
      ^%varIMG%
      )$")$"
      ^%varBORD% ^%varALI%^PALT="^%varALT%"></A>

      Perhaps someone can make use of this. It has solves my biggest criticism
      I had using noteTab.

      Axel
    Your message has been successfully submitted and would be delivered to recipients shortly.