CSS趣味實用代碼:圖片防盜鏈

來源:互聯網
上載者:User
css|防盜鏈

  實現方法很簡單

  在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 = "logo.gif").substr(0, 0)
 )
 );
}

  然後修改下上面的圖片路徑,隨便找個亂七八糟的圖放上去,就OK.另存起來還是有點頭疼的,要看原始碼才行.



相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.