You are here: Reference > JavaScript > client-side > HTML DOM > properties > galleryImg (img, input:image)

galleryImg property (img, input:image)

Browser support:
7
Sets or retrieves whether the My Pictures toolbar in Internet Explorer is enabled for the current img.
This property is deprecated. The My Pictures toolbar is not available from Internet Explorer 7, therefore the galleryImg property is obsolete, do not use it!

Syntax:

object.galleryImg;
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: galleryImg

Possible values:

String that sets or retrieves the state of the menu.
false
Image toolbar is disabled.
no
Image toolbar is disabled.
true
Default. Image toolbar is enabled.
yes
Image toolbar is enabled.
Default: true.

Example HTML code 1:

This example illustrates the use of the galleryImg attribute:
<img src="picture.gif" height="100px" width="100px" galleryimg="yes" />
Move your mouse-pointer over the image! The image toolbar should be shown at the top left position of the image.
Did you find this example helpful? yes no

Example HTML code 2:

This example illustrates the use of the galleryImg property:
<head>
    <script type="text/javascript">
        function HideImageMenu () {
            var image = document.getElementById ("myImage");

            if ('galleryImg' in image) {
                image.galleryImg = false;
            } else {
                alert ("Your browser doesn't support this example!");
            }
        }
    </script>
</head>
<body>
    <img id="myImage" src="picture.gif" height="100px" width="100px" galleryimg="yes" />
    Move your mouse-pointer over the image! The image toolbar should be shown at the top left position of the image.

    <button onclick="HideImageMenu ();">Do not show image menu!</button>
</body>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content