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

Re: [NH] Re: Image map making

Expand Messages
  • Adrian/ Rosemary Worsfold
    Many thanks to John Zeman. I found it necessary to slightly compromise: the image map file by Map This must be saved first (for relative file location
    Message 1 of 1 , Nov 6, 2003
    • 0 Attachment
      Many thanks to John Zeman.

      I found it necessary to slightly compromise: the image map file by Map This
      must be saved first (for relative file location purposes) and I cannot remove
      any ../ but then I always have the image map image in the same folder
      anyway. I prefer to create a new document first, just so I paste in where
      wanted afterwards.

      ^!Set %FileChoice%="^?[(T=t;F="Image Files|*.gif;*.jpg;*.jpeg") Click button
      on right && select image file]

      ; Now Trim the src=" from the left
      ^!Set %CutLeft%=^$StrDeleteLeft("^%FileChoice%";5)$

      ; Find the location of the " in the remaining string
      ^!Set %CutRight%=^$StrPos(""";"^%CutLeft%";True)$

      ; Decrement that number by 1
      ^!Dec %CutRight%

      ; Then trim it so only the image path and file name remain
      ^!Set %Penult%=^$StrCopyLeft("^%CutLeft%";^%CutRight%)$

      ^!Set %Namer%=^$StrDeleteRight("^%Penult%";4)$

      ^!ToolBar New Document
      <p>
      <div align="center">
      <img src="
      ^!InsertText ^%Penult%
      " border="0" usemap="#
      ^!InsertText ^%Namer%
      ">
      </div>
      </p>

      <map name="
      ^!InsertText ^%Namer%
      ">


      ^!Keyboard CTRL+A
      ^!Keyboard CTRL+L
      ^!Keyboard CTRL+C
      ^!Keyboard CTRL+END


      ^!InsertHtml ^P^P^P^P^P^P^P^P^P^P^P^P^P^P^P^P

      ^!InsertHtml ^P^P^P^P^P
      NOW RETURN TO THE HTML DOCUMENT - NO NEED TO SAVE THIS

      ^!InsertHtml ^P^P^P

      ^!Keyboard Ctrl+F4



      Adrian Worsfold

      http://www.pluralist.co.uk
    Your message has been successfully submitted and would be delivered to recipients shortly.