MM_swapImage Arguments

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam

    MM_swapImage Arguments

    Maybe this is a simple question, but what Arguments can be used with
    the familiar MM_swapImage?

    I can get it to work no problem, in this way:

    MM_swapImage('T HE NAME OF OLD IMAGE TAG','','MOUSEO VER IMAGE')

    But what can the blank middle argument do? Have I also seen number
    arguments at the end of the function as well?

    I guess what I am looking for is a good specification of this function
    I have seen in many places. But also, since I have seen this in many
    places... is this someones or some companys code that people are
    stealing? I hope not.

    Thanks again,
    Adam
  • Brian Genisio

    #2
    Re: MM_swapImage Arguments

    Adam wrote:
    [color=blue]
    > Maybe this is a simple question, but what Arguments can be used with
    > the familiar MM_swapImage?
    >
    > I can get it to work no problem, in this way:
    >
    > MM_swapImage('T HE NAME OF OLD IMAGE TAG','','MOUSEO VER IMAGE')
    >
    > But what can the blank middle argument do? Have I also seen number
    > arguments at the end of the function as well?
    >
    > I guess what I am looking for is a good specification of this function
    > I have seen in many places. But also, since I have seen this in many
    > places... is this someones or some companys code that people are
    > stealing? I hope not.
    >
    > Thanks again,
    > Adam[/color]

    I am pretty sure that MM_swapImage is auto-generated code, from some
    WYSIWYG editor. I think it is the MacroMedia one... cant think of the
    name offhand.

    Brian

    Comment

    • Douglas Crockford

      #3
      Re: MM_swapImage Arguments

      > Maybe this is a simple question, but what Arguments can be used with[color=blue]
      > the familiar MM_swapImage?
      >
      > I can get it to work no problem, in this way:
      >
      > MM_swapImage('T HE NAME OF OLD IMAGE TAG','','MOUSEO VER IMAGE')
      >
      > But what can the blank middle argument do? Have I also seen number
      > arguments at the end of the function as well?
      >
      > I guess what I am looking for is a good specification of this function
      > I have seen in many places. But also, since I have seen this in many
      > places... is this someones or some companys code that people are
      > stealing? I hope not.[/color]

      This comes from Macromedia's Dreamweaver. Check the license that came with the
      product to see what your redistribution and modification rights are.

      Comment

      • kaeli

        #4
        Re: MM_swapImage Arguments

        In article <88247884.04010 70622.343c57c8@ posting.google. com>, shaggy_a79
        @yahoo.com enlightened us with...[color=blue]
        > Maybe this is a simple question, but what Arguments can be used with
        > the familiar MM_swapImage?
        >[/color]

        MM_ is Macromedia, usually Dreamweaver but Flash or Director uses that,
        too, I think.
        Check their docs for the function details.
        It may be that a user can customize it using Dreamweaver, so maybe the
        args aren't consistent.

        Ask over in the Dreamweaver NG.

        &q=dreamweaver& sa=N&tab=wg

        --
        --
        ~kaeli~
        If a parsley farmer is sued, can they garnish his wages?



        Comment

        • Michael Winter

          #5
          Re: MM_swapImage Arguments

          On 7 Jan 2004 06:22:45 -0800, Adam <shaggy_a79@yah oo.com> wrote:
          [color=blue]
          > Maybe this is a simple question, but what Arguments can be used with
          > the familiar MM_swapImage?
          >
          > I can get it to work no problem, in this way:
          >
          > MM_swapImage('T HE NAME OF OLD IMAGE TAG','','MOUSEO VER IMAGE')
          >
          > But what can the blank middle argument do? Have I also seen number
          > arguments at the end of the function as well?
          >
          > I guess what I am looking for is a good specification of this function
          > I have seen in many places. But also, since I have seen this in many
          > places... is this someones or some companys code that people are
          > stealing? I hope not.[/color]

          I'll answer the last question first: the MM_swapImage function - and the
          associated MM_findObj, MM_swapImgResto re, and MM_preloadImage s functions -
          are generated by Macromedia's Dreamweaver program. I doubt they
          copyrighted the functions, but you never know...

          The arguments passed to the MM_swapImage function are triplet sequences.

          The first is the NAME or ID of an IMG element, form control, or layer that
          will have it's image replaced. You can also reference these objects even
          if they exist in another frame by placing a question mark (?) in the name.
          For example:

          "myMainFrame?my Image"

          The second does nothing (in v3.0 of the function) - there is no reason
          what-so-ever for it to be there. You could pass anything to it (null,
          rather than '', is probably the most efficient). The purpose might change
          in the future.

          The third is a URI (absolute or relative) that points to the new image to
          be displayed.

          This then repeats: the fourth is the NAME or ID of an IMG element, the
          fifth means nothing, and the sixth is a URL, etc.

          This is from what I understand of the function just by looking at it. I
          haven't seen an actual reference (I don't use Dreamweaver or the above
          functions). In other words - take the above with a pinch of salt; I could
          be wrong.

          Mike

          --
          Michael Winter
          M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

          Comment

          • Lasse Reichstein Nielsen

            #6
            Re: MM_swapImage Arguments

            Michael Winter <M.Winter@bluey onder.co.invali d> writes:
            [color=blue]
            > I'll answer the last question first: the MM_swapImage function - and
            > the associated MM_findObj, MM_swapImgResto re, and MM_preloadImage s
            > functions -
            > are generated by Macromedia's Dreamweaver program. I doubt they
            > copyrighted the functions, but you never know...[/color]

            You don't need to actively copyright something. From the moment you
            make it public, you have the rights granted by the copyright law.

            The question is whether MM has released these functions for public
            use, and if so, under which license.

            (I don't use or know the functions either, but it is my impression that
            the MM_* functions are pretty lousy Javascript code)

            /L
            --
            Lasse Reichstein Nielsen - lrn@hotpop.com
            DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
            'Faith without judgement merely degrades the spirit divine.'

            Comment

            Working...