图片无限拆分镜像效果

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" " http://www.w3.org/TR/html4/strict.dtd">
<html><head><title>fractal-1</title>
<meta http-equiv="imagetoolbar" content="no"><style type="text/css">
html {overflow: hidden;}body {margin: 0px;padding: 0px;background: #000;
position: absolute;width: 100%;height: 100%;}.img{position:absolute;
cursor: pointer;left: 0%;top: 0%;width: 100%;height: 100%;}.frame {
position: absolute;width: 50%;height: 50%;}#credit {position: absolute;
color: #000;font-family: arial;font-size: 0.8em;width: 99%;text-align: right;
bottom: 2px;z-index: 10000;}a {text-decoration: none;color:#fff;}
a:hover {text-decoration: none;background:#ff8000;color:#fff;}
a:visited {text-decoration: none;color:#fff;}
a:visited:hover {text-decoration: none;background:#ff8000;color:#fff;}
</style><script type="text/javascript">var src;function div(o){
function img(x,y){var d = document.createElement("div");d.className = "frame";
d.style.left = 50*x+"%";d.style.top = 50*y+"%";
var img = document.createElement("img");img.className = "img";
img.src = src[Math.floor(Math.random()*src.length)].src;
img.onmousedown = new Function("div(this.parentNode);this.parentNode.removeChild(this);");
d.appendChild(img);o.appendChild(d);}img(0,0);img(1,0);img(0,1);img(1,1);}
onload = function(){
src = document.getElementById("images").getElementsByTagName("img");
div(document.body);}</script></head><body>
<div id="images" style="display:none">
<img src=" http://www.lanrentuku.com/images/uppic/200805220819290.jpg" _fcksavedurl=" http://www.lanrentuku.com/images/uppic/200805220819290.jpg">
<img src=" http://www.lanrentuku.com/images/uppic/200805220819290.jpg" _fcksavedurl=" http://www.lanrentuku.com/images/uppic/200805220819290.jpg">
<img src=" http://www.lanrentuku.com/images/uppic/200805220819290.jpg" _fcksavedurl=" http://www.lanrentuku.com/images/uppic/200805220819290.jpg">
<img src=" http://www.lanrentuku.com/images/uppic/200805220818410.jpg" _fcksavedurl=" http://www.lanrentuku.com/images/uppic/200805220818410.jpg">
</div><div id="credit">
·home: <a href=" http://www.dhteumeuleu.com/" _fcksavedurl=" http://www.dhteumeuleu.com/" target="_self" title="Interactive DHTML demos">www.dhteumeuleu.com </a>
·source: <a href=" http://www.dhteumeuleu.com/colorsyntax/viewJS.php?src=fractal-F.html" _fcksavedurl=" http://www.dhteumeuleu.com/colorsyntax/viewJS.php?src=fractal-F.html" target="_self" title="source code">code</a>
</div></body></html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值