Search.../

Image

Images are images stored in the Media Manager or retrieved from an external web location. Learn more.

Guides

Additional information about this section

Properties

Store values associated with an object

  • alt

    Sets or gets an image's alt text.

  • clickAction

    Sets or gets the action that occurs when an image is clicked.

  • collapsed

    Indicates if the element is collapsed or expanded.

  • fitMode

    Sets or gets how an image is placed inside an image element.

  • global

    Indicates if an element appears on all pages or only on the current page.

  • hidden

    Indicates if the element is visible or hidden.

  • id

    Gets the element's ID.

  • isVisible

    Indicates if the element is actually visible.

  • link

    Sets or gets the element's link.

  • parent

    Gets the element's parent element.

  • rendered

    Indicates if an element is currently in the DOM structure.

  • src

    Sets or gets the file location of the image.

  • target

    Sets or gets the target of the element's link.

  • tooltip

    Sets or gets an image's tooltip.

  • type

    Gets the element's type.

Functions

Perform actions on an object

  • collapse( )

    Collapses the element and sets its collapsed property to true.

  • expand( )

    Expands the element and sets its collapsed property to false.

  • hide( )

    Hides the element and sets its hidden property to true, using an effect if specified.

  • onClick( )

    Adds an event handler that runs when the element is clicked.

  • onDblClick( )

    Adds an event handler that runs when the element is double-clicked.

  • onMouseIn( )

    Adds an event handler that runs when the mouse pointer is moved onto the element. Deprecation note: The $w parameter of event handlers is being deprecated. To ...

  • onMouseOut( )

    Adds an event handler that runs when the mouse pointer is moved off of the element. Deprecation note: The $w parameter of event handlers is being deprecated. ...

  • onViewportEnter( )

    Adds an event handler that runs when an element is displayed in the viewable part of the current window.

  • onViewportLeave( )

    Adds an event handler that runs when an element is no longer displayed in the viewable part of the current window.

  • scrollTo( )

    Scrolls the page to the top of the element using an animation.

  • show( )

    Shows the element and sets its hidden property to false, using an effect if specified.