您现在的位置: 365建站网 > 365文章 > CSS实现简单的图片防盗链代码

CSS实现简单的图片防盗链代码

文章来源:365jz.com 点击数:264 更新时间:2008-04-26 18:43

实现方法很简单,在CSS中添加以下代码:

img {
 filter:expression(
 this.不能去掉 ? "" :
 (
 (!this.complete) ? "" :
 this.runtimeStyle.filter = ("progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "')") +
 String(this.不能去掉 = true).substr(0, 0) +
 (this.src = "").substr(0, 0)
 )
 );
}


  然后修改下上面的图片路径,随便找个乱七八糟的图放上去,就OK.另存起来还是有点头疼的,要看源代码才行.

生产内容,同时打通搜索引擎(SEO)与AI搜索引擎(GEO)流量入口的软件! 点击进入365建站器 »

您可能感兴趣的文章