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

Need help with html image clip

Expand Messages
  • casullian_454
    I use following clip to insert a image into a web page. Images are in a subdirectory called images. Is there a way for the wizard to open up in the image
    Message 1 of 5 , Apr 11, 2005
      I use following clip to insert a image into a web page. Images are in a
      subdirectory called images. Is there a way for the wizard to open up in
      the image directory instead of directory that the web page is in?

      Also is it possible to tag several images and have them listed in the
      web page one after the other, instead of having to open wizard for each
      image?

      H="Img Link"
      ^!InsertWizardHtml <img ^?{(T=T;F="Image
      Files|*.gif;*.png;*.jpg;*.jpeg")&Image file name} border="^?{&Border
      (transitional)=_0|1|2|3|4|5}" align="^?{&Align (transitional)
      =bottom|left|middle|right|top}" hspace="^?{&Horizontal space
      (transitional)}" vspace="^?{&Vertical space (transitional)}" alt="^?
      {Image text &description=^&}">

      Thanks in advance Cas
    • John Zeman
      ... in a ... up in ... the ... each ... border= ^?{&Border ... I m sure a little creative thinking could resolve the second of your questions, however I ve
      Message 2 of 5 , Apr 11, 2005
        --- In ntb-clips@yahoogroups.com, "casullian_454"
        <casullian_454@y...> wrote:
        >
        > I use following clip to insert a image into a web page. Images are
        in a
        > subdirectory called images. Is there a way for the wizard to open
        up in
        > the image directory instead of directory that the web page is in?
        >
        > Also is it possible to tag several images and have them listed in
        the
        > web page one after the other, instead of having to open wizard for
        each
        > image?
        >
        > H="Img Link"
        > ^!InsertWizardHtml <img ^?{(T=T;F="Image
        > Files|*.gif;*.png;*.jpg;*.jpeg")&Image file name}
        border="^?{&Border
        > (transitional)=_0|1|2|3|4|5}" align="^?{&Align (transitional)
        > =bottom|left|middle|right|top}" hspace="^?{&Horizontal space
        > (transitional)}" vspace="^?{&Vertical space (transitional)}" alt="^?
        > {Image text &description=^&}">
        >
        > Thanks in advance Cas


        I'm sure a little creative thinking could resolve the second of your
        questions, however I've never had a need for batch image insertions
        so I've never tackled that problem.

        But I have resolved the first of your questions. The following clip
        inserts an image into a file like the menu command DOCUMENT/INSERT
        HTML link image command, except that this one "remembers" the last
        folder you last went to, to insert an image into a web page.

        As always, be aware of yahoo inserted line breaks, I've double spaced
        each line.

        John

        ; begin clip---------------

        ^!ProgIniSave

        ^!ProgIniLoad

        ^!Set %FILE%=^?{(T=O; C=L; F="Image Files|*.bmp;*.
        gif;*.jpg;*.jpeg;*.png")Get Image=^$GetValue("John
        Zeman:LastImageLoc")$}

        ; WRITE THE CURRENT IMAGE LOCATION TO THE INI FILE

        ^!SaveValue JohnZeman:LastImageLoc=^$GetPath(^%FILE%)$

        ; CONVERT TO RELATIVE LOCATION

        ^!Set %REL%=^$GetRelativeName(^%FILE%;^**)$

        ^!Set %REL%=^$StrReplace("\";"/";"^%REL%";0;0)$

        ^!Set %REL%=^$StrReplace("^%SPACE%";"%20";"^%REL%";0;0)$

        ; GET IMAGE FILE NAME ONLY

        ^!Set %RELNAME%=^$StrSentenceCase("^$GetName(^%FILE%)$")$

        ; INSERT THE CODE

        ^!InsertHtml <img src="^%REL%" width="^$GetImgWidth(^%FILE%)$"
        height="^$GetImgHeight(^%FILE%)$" alt="^%RELNAME%">

        ; FIND AND HIGHLIGHT ALT TAG FILE NAME

        ^!Find "^%RELNAME%" TBHS
      • Jody
        Hi Cas, ... There is a way now to do a whole directory, but not from a checkbox wizard. I might have the time to build/modify a Clip to do that later today.
        Message 3 of 5 , Apr 12, 2005
          Hi Cas,

          > Also is it possible to tag several images and have them listed
          > in the web page one after the other, instead of having to open
          > wizard for each image?

          There is a way now to do a whole directory, but not from a
          checkbox wizard. I might have the time to build/modify a Clip to
          do that later today. For now, if you want it done right away, go
          to the Utilities Library and under the "Internet" section look
          for a Clip called "Images to HTML." Click on it and then browse
          to the directory the images are in and set the other options in
          the wizard to your desire. Click on OK. Do the second popup as
          well. Open a new document and set it as Paste Board.

          Switch back the page with the image files. Select and copy any of
          the code you want above the images. Next move your mouse pointer
          to the left of the image tags (in the gutter area) so that it
          changes shape/symbol. When you have it there (next to an image)
          you want to use click once so that the line becomes selected and
          press Ctrl+C to Copy to the Clipboard/Paste Board. Repeat that
          for each image you want to use and then any of the remaining
          source code you desire to use if any. You can do ranges of the
          image line by holding down the Ctrl key while dragging you mouse
          pointer till all the image tags you want to Copy and then do so.

          I'll look in my DirStuff and see if I have a Clip to modify to
          make a checkbox wizard with the image files listed, or modify the
          existing "Images to HTML" Clip. ...if I can find some time or
          maybe somebody else will get to it first for you.

          Happy Clip'n!
          Jody

          All Lists: http://www.fookes.us/maillist.htm
          Subscribe: mailto:ntb-Clips-Subscribe@yahoogroups.com
          UnSubscribe: mailto:ntb-Clips-UnSubscribe@yahoogroups.com
          Options: http://groups.yahoo.com/group/ntb-clips
          http://www.clean-funnies.com, http://www.sojourner.us/software
        • Jody
          Hi Cas, ... I forgot to mention that our Easy Imager program will let you choose images to make thumbnails link to the large picture and you can choose which
          Message 4 of 5 , Apr 12, 2005
            Hi Cas,

            >I use following clip to insert a image into a web page. Images
            >are in a subdirectory called images. Is there a way for the
            >wizard to open up in the image directory instead of directory
            >that the web page is in?
            >
            >Also is it possible to tag several images and have them listed in
            >the web page one after the other, instead of having to open
            >wizard for each image?

            I forgot to mention that our Easy Imager program will let you
            choose images to make thumbnails link to the large picture and
            you can choose which ones you want by clicking on their thumbnail
            view and holding down the Ctrl key while choosing which ones you
            want. It makes really nice photo albums (using CSS so you can
            edit how they look). You can also just take the code from the
            http tags to use elsewhere of course like perhaps on the project
            you are working on now. The Zoomifyer albums which are really
            cool and screen savers (I have one of all last soccer season of
            my son and his team for instance.;-) !!! (Help | Create Zoomifyer
            albums) Check it out via http://www.fookes.us/redir and snatch a
            deliciou$ cookie along the way for me to put a $mile on my face;
            it's my affiliate redirect. ;)

            bcnu,
            jody

            I can only please one person a day.
            Today is obviously not your day.
            Tomorrow doesn't look good either. 8D
            http://www.clean-funnies.com
            http://www.fookes.com/regnow.html?2448 ;)
            http://www.sojourner.us/software
          • Adrian/ Rosemary Worsfold
            Use a program Image to HTML with this: ^!Toolbar New Document ^!FocusDoc ^!Menu Document/Use as Paste Board ^!Shell c:progra~1 smallu~1 imgtoh~1 img2html.exe
            Message 5 of 5 , Apr 12, 2005
              Use a program Image to HTML with this:

              ^!Toolbar New Document
              ^!FocusDoc
              ^!Menu Document/Use as Paste Board
              ^!Shell c:progra~1\smallu~1\imgtoh~1\img2html.exe

              Adrian Worsfold

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