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

Re: [Clip] Hyperlink with image clip

Expand Messages
  • Axel Berger
    ... No, they weren t. Mike s request was a new one to me. So far I have always taken the URL of a link from another site but cutting and pasting it from the
    Message 1 of 23 , Mar 16, 2007
    • 0 Attachment
      Axel Berger wrote:
      > these should be the correct versions:

      No, they weren't. Mike's request was a new one to me. So far I have
      always taken the URL of a link from another site but cutting and pasting
      it from the browser and the images from my own disk. My new clips didn't
      work anymore today. The lines:
      > ^!Set %varURL%=^$FileToUrl("^$GetRelativeName(^%varURL%)$")$
      must not be run, if %varURL% already is a URL and not a file. I have now
      preceded all those with
      > ^!IfTrue ^$IsUrl("^%varURL%a.htm")$ SKIP

      Note the "a.htm". Some URLs cut from the browser address field do not
      contain a file and end in a "/". NoteTab does not recognize ".../" as a
      valid URL while ".../some.htma.htm" is. The complete clip excerpt now
      is:

      ---------------------------------------------------------------------
      = V5 MultiLine AutoReplace TabWidth=30

      H="<a"
      ^!Clip "×^?[Link to create==_Link|Link with image|Link with table|Link
      to bookmark|Bookmark|MailTo]"

      H="<an"
      ^!InsertHtml <A NAME="^&"></A>

      H="<img"
      ^!Set %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"}
      ^!IfTrue ^$IsUrl("^%varIMG%a.htm")$ SKIP
      ^!Set %varIMG%=^$FileToUrl("^$GetRelativeName(^%varIMG%)$")$
      ^!InsertHtml <IMG SRC="^%varIMG%" ^%varBORD%
      ^%varALI%^PTITLE="^%varALT%" ALT="^%varALT%">

      H="<imt"
      ^!Set
      %varALI%=^?{(T=L)Ausrichtung=_CLASS="gleit"|ALIGN="RIGHT"||ALIGN="center"|ALIGN="LEFT"};
      %varIMG%=^?{(T=O;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")Image file
      name}; %varBRD%=^?{Borderless=BORDER="0"}; %varALT%=^?{(T=C)Image
      description=_|Bild|Image}; %varCAP%=^?{Image caption text}
      ^!IfTrue ^$IsUrl("^%varIMG%a.htm")$ SKIP
      ^!Set %varIMG%=^$FileToUrl("^$GetRelativeName(^%varIMG%)$")$
      ^!Set %varTIT%=^%varALT%
      ^!If ^%varALT% = "Bild" ^!Set %varTIT%=""
      ^!If ^%varALT% = "Image" ^!Set %varTIT%=""
      ^!InsertHtml <TABLE ^%varALI% WIDTH="100">^P<TR><TD>^P<IMG
      SRC="^%varIMG%")$" ^%varBRD%^PTITLE="^%varTIT%"
      ALT="^%varALT%">^P</TD></TR><TR><TD>^P^%varCAP%^P</TD></TR><TR><TD>
        </TD></TR></TABLE>^P  ^P^&

      H="_×Bookmark"
      ^!InsertHtml <A NAME="^?[Bookmark label=]">^&</A>

      H="_×Link"
      ^!Set %varURL%=^?{(T=O;F="Link Files|*.*htm*;*.php;*.pl;*.cgi")Enter a
      URL}; %varDSC%=^?{Enter a description for this link}
      ^!IfTrue ^$IsUrl("^%varURL%a.htm")$ SKIP
      ^!Set %varURL%=^$FileToUrl("^$GetRelativeName(^%varURL%)$")$
      ^!Set %varURL%=^$StrReplace("&";"&";"^%varURL%";False;False)$
      ^!Set
      %varURL%=^$StrReplace("&amp;";"&";"^%varURL%";False;False)$
      ^!InsertHtml <A HREF="^%varURL%">^%varDSC%</A>^&

      H="_×Link to Bookmark"
      ^!InsertHtml <A HREF="#^?[Link to Bookmark]">^&</A>

      H="_×Link with image"
      ^!Set %varURL%=^?{(T=O;F="Link Files|*.*htm*;*.php;*.pl;*.cgi")Enter a
      URL}; %varIMG%=^?{(T=O;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")Image
      file name}; %varALT%=^?{Image text description};
      %varALI%=^?{Ausrichtung=ALIGN="RIGHT"}
      ^!IfTrue ^$IsUrl("^%varURL%a.htm")$ SKIP
      ^!Set %varURL%=^$FileToUrl("^$GetRelativeName(^%varURL%)$")$
      ^!Set %varURL%=^$StrReplace("&";"&";"^%varURL%";False;False)$
      ^!Set
      %varURL%=^$StrReplace("&amp;";"&";"^%varURL%";False;False)$
      ^!IfTrue ^$IsUrl("^%varIMG%a.htm")$ SKIP
      ^!Set %varIMG%=^$FileToUrl("^$GetRelativeName(^%varIMG%)$")$
      ^!InsertHtml <A HREF="^%varURL%">^P<IMG SRC="^%varIMG%"
      ^%varALI%^PTITLE="^%varALT%" ALT="^%varALT%"></A>

      H="_×Link with table"
      ^!Set
      %varALI%=^?{(T=L)Ausrichtung=_CLASS="gleit"|ALIGN="RIGHT"||ALIGN="center"|ALIGN="LEFT"};
      %varURL%=^?{(T=O;F="Link Files|*.*htm*;*.php;*.pl;*.cgi")Enter a URL};
      %varIMG%=^?{(T=O;F="Image Files|*.gif;*.png;*.jpg;*.jpeg")Image file
      name}; %varALT%=^?{(T=C)Image description=_|Bild|Image};
      %varCAP%=^?{Image caption text}
      ^!IfTrue ^$IsUrl("^%varURL%a.htm")$ SKIP
      ^!Set %varURL%=^$FileToUrl("^$GetRelativeName(^%varURL%)$")$
      ^!Set %varURL%=^$StrReplace("&";"&";"^%varURL%";False;False)$
      ^!Set
      %varURL%=^$StrReplace("&amp;";"&";"^%varURL%";False;False)$
      ^!IfTrue ^$IsUrl("^%varIMG%a.htm")$ SKIP
      ^!Set %varIMG%=^$FileToUrl("^$GetRelativeName(^%varIMG%)$")$
      ^!Set %varTIT%=^%varALT%
      ^!If ^%varALT% = "Bild" ^!Set %varTIT%=""
      ^!If ^%varALT% = "Image" ^!Set %varTIT%=""
      ^!InsertHtml <TABLE ^%varALI% WIDTH="100">^P<TR><TD>^P<A
      HREF="^%varURL%">^P<IMG SRC="^%varIMG%" ^PTITLE="^%varTIT%"
      ALT="^%varALT%"></A>^P</TD></TR><TR><TD>^P^%varCAP%^P</TD></TR><TR><TD>
        </TD></TR></TABLE>^P  ^P^&
      ---------------------------------------------------------------------

      Let's just hope there are no more errors hidden in there.

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