GALLERYIMG Attribute | galleryImg Property
| DHTML文档教程 |
Sets or retrieves whether the my pictures image toolbar is visible for the current image.
dhtml语法
HTML | <IMG GALLERYIMG
= bToolbar... >
|
---|
Scripting | IMG.galleryImg [ = bToolbar ] |
---|
DHTML可能的值
bToolbar | Integer that
specifies or receives one of the following values.yes | true | Default. Image toolbar is enabled for the image. | no | false | Image toolbar is disabled for the image. |
|
The property is read/write.
The property has a default value of
yes | true.
Remarks
If this attribute is set to yes on an image-mapped image (usemap or ismap), the galleryimg attribute will override the mapping attribute and the image toolbar will be enabled.
in addition to disabling the my pictures image toolbar on an image-by-image basis, it can be disabled page wide or permanently. to disable the image toolbar for an entire web page, use the http-equiv and content attributes of the meta element. set http-equiv="imagetoolbar" and content="no" (or false)and the image toolbar will be disabled for the entire page. setting galleryimg="yes" will override this setting. to permanently disable the image toolbar, either right-click the toolbar when it is displayed and click disable image toolbar. alternatively, go to the advanced tab of the internet options which is located on the tools menu within internet explorer. clear the enable image toolbar check box and click ok. after the image toolbar is disabled, no settings can override this and the image toolbar will not be displayed again until the user selects enable image toolbar.
DHTML代码范例
It is possible to enable the image toolbar on an image that is smaller than the My Pictures default size filter of 130 pixels wide by 130 pixels high. The following code will display the My Pictures hovering toolbar on a small image that would normally not display the toolbar.
...
<IMG SRC="mypicture.jpg" HEIGHT="100px" WIDTH="100px" GALLERYIMG="yes">
...
Applies To
更多语法参考
measuring element dimension and location, About My Pictures Photo Support