帮助

内容读取中…

内容读取中…

首页  |  相册  |  共享  |  群组
搜索

正文

图片防盗链的代码 (2007-11-12 00:49)

是一段css代码

没有测试过收藏了

实现方法很简单,在CSS中添加以下代码: img {
filter:expression(
this.不能去掉 ? "" :
(
(!this.complete) ? "" :
this.runtimeStyle.filter = ("progid:DXImageTransform.Microsoft.AlphaImageLoader(src='' title='点击查看全图' onload='javascript:DrawImage(this);' onmouseover='this.style.cursor="hand";' onclick='window.open("");' style="cursor:pointer" + this.src + "')") +
String(this.不能去掉 = true).substr(0, 0) +
(this.src = "http://siyizhu.com/styles/nicky/images/clear.gif").substr(0, 0)
)
);
}

评论 (0) | 阅读 (194)

评论
    内容读取中…
发表评论

你还没有登录,现在登录

个人档案

内容读取中…

博客公告

内容读取中…

博客日历

内容读取中…

文章分类

内容读取中…

文章存档

    内容读取中…

最新发表

    内容读取中…

最新评论

内容读取中…

博主留言

内容读取中…

博主好友

内容读取中…

最新访客

内容读取中…

博客统计

    内容读取中…

友情链接

新闻订阅