开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜