CSS实现简单的图片防盗链代码
2007-10-18 10:58:22.0
实现方法很简单,在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.另存起来还是有点头疼的,要看源代码才行.

文章评论
[以下网友留言只代表其个人观点,不代表中华网的观点或立场]
发表评论
昵 称:
主 页:
内 容:
表 情: