how to disable the image toolbar
How can I disable the image to开发者_开发百科olbar that popups whenever mouse pointer is over an image. I need to do this within javascript only.
The image toolbar can be disabled through a meta tag:
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
or apparently (though I haven't tried this) using an attribute on the tag itself:
GALLERYIMG="no"
The latter approach could obviously be done in a pure Javascript solution...
Try:
<meta http-equiv="imagetoolbar" content="no" />
or for an individual image:
<img src="imageurl.png" galleryimg="no" />
You can display the image as a background element through CSS instead of using img tag. The tag will probably always have the popup.
精彩评论