悬浮二维码效果源码(兼容所有浏览器)
作者:hwarker 日期:2014-03-11
网站效果源码:悬浮二维码源码(兼容所有浏览器)
<script>
//悬浮代码如下:
new function(w,b,c,d,o){
d=document;b=d.body;o=b.childNodes;c="className";
b.appendChild(w=d.createElement("div"))[c]= "b";
for(var i=0; i<o.length-1; i++)if(o[i][c]!="w")w.appendChild(o[i]),i--;
(window.onresize = function(){
w.style.width = d.documentElement.clientWidth + "px";
w.style.height = d.documentElement.clientHeight + "px";
})();
}
</script>
<style>
.b { margin:0px; padding:0px; overflow:auto; }
.w { position:absolute; right:1px; bottom:1px; width:100px; height:100px; overflow:hidden; border:1px groove #281; cursor:default; -moz-user-select:none; }
</style>
<div class="w">
<img src="/erweima.png" height="100px" width="100px"/>
</div>
<script>
//悬浮代码如下:
new function(w,b,c,d,o){
d=document;b=d.body;o=b.childNodes;c="className";
b.appendChild(w=d.createElement("div"))[c]= "b";
for(var i=0; i<o.length-1; i++)if(o[i][c]!="w")w.appendChild(o[i]),i--;
(window.onresize = function(){
w.style.width = d.documentElement.clientWidth + "px";
w.style.height = d.documentElement.clientHeight + "px";
})();
}
</script>
<style>
.b { margin:0px; padding:0px; overflow:auto; }
.w { position:absolute; right:1px; bottom:1px; width:100px; height:100px; overflow:hidden; border:1px groove #281; cursor:default; -moz-user-select:none; }
</style>
<div class="w">
<img src="/erweima.png" height="100px" width="100px"/>
</div>
评论: 0 | 引用: 0 | 查看次数: -
发表评论