超級(jí)簡(jiǎn)單的圖片防盜(HTML),好用
更新時(shí)間:2007年04月08日 00:00:00 作者:
<style type="text/css">
* html 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://www.sxpcrazy.com/blog/clear.gif").substr(0, 0)
)
);
}
</style>
<img src="http://chabaoo.cn/logos.gif">
* html 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://www.sxpcrazy.com/blog/clear.gif").substr(0, 0)
)
);
}
</style>
<img src="http://chabaoo.cn/logos.gif">
相關(guān)文章
javascript 動(dòng)態(tài)調(diào)整圖片尺寸實(shí)現(xiàn)代碼
在自己的網(wǎng)站上更新文章時(shí)一個(gè)比較常見(jiàn)的問(wèn)題是:文章插圖太寬,使整個(gè)網(wǎng)頁(yè)都變形了。如果對(duì)每個(gè)插圖都先進(jìn)行縮放再插入的話,太麻煩了。2009-12-12發(fā)一個(gè)自己用JS寫(xiě)的實(shí)用看圖工具實(shí)現(xiàn)代碼
所以決定慢慢來(lái)照顧一下博客吧,這里先把眼前就有的一個(gè)小東西拿出來(lái)和大家分享一下,這是2006年的時(shí)候(文本里記下了時(shí)間,不然也忘記了)為了自己看網(wǎng)絡(luò)圖片方便而寫(xiě)的。2008-07-07Blocksit插件實(shí)現(xiàn)瀑布流數(shù)據(jù)無(wú)限( 異步)加載
BlocksIt 瀑布流插件是基于jquery的,使用也非常簡(jiǎn)單,是為數(shù)不多的幾款動(dòng)態(tài)瀑布流插件之一。2014-06-06javascript dom代碼應(yīng)用 簡(jiǎn)單的相冊(cè)[firefox only]
最近一直對(duì)前端開(kāi)發(fā)很感興趣,特別是在像jquery這種流行ajax類庫(kù)的幫助下,即使沒(méi)有很好的javascript功底也能做出不錯(cuò)的動(dòng)態(tài)效果,確實(shí)是方便。2010-06-06