开发者

how to disable the image toolbar

开发者 https://www.devze.com 2022-12-14 05:48 出处:网络
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:

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

精彩评论

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