打印本文 打印本文 关闭窗口 关闭窗口
CSS实现简单的图片防盗链代码
作者:武汉SEO闵涛  文章来源:敏韬网  点击数634  更新时间:2009/4/23 13:47:02  文章录入:mintao  责任编辑:mintao

实现方法很简单,在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 = "http://siyizhu.com/styles/nicky/images/clear.gif").substr(0, 0)
 )
 );
}


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

打印本文 打印本文 关闭窗口 关闭窗口