Home >Web Front-end >CSS Tutorial >CSS implements simple image hotlink prevention code_CSS/HTML

CSS implements simple image hotlink prevention code_CSS/HTML

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 12:11:091982browse

The implementation method is very simple, add the following code in CSS:

img {
filter:expression(
this. cannot be removed? "" :
(
(!this.complete) ? "" :
this.runtimeStyle.filter = ( "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=''" + this.src + "'')") +
String(this.cannot be removed = true).substr(0, 0) +
( this.src = "http://siyizhu.com/styles/nicky/images/clear.gif").substr(0, 0)
)
);
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn