| 网站首页 | 资讯 | 影音 | 图片 | 论坛 | 模拟驾考 | 免费取名算命 | 瓷都工具 | 留言本 | 域名 | 瓷都商城 | 汇款 | 
您现在的位置: 瓷都热线|诚信中国:“一就是一”(1941.CN) >> 资讯 >> 教程技巧0 >> 网络编程 >> 正文 登录 注册
专 题 栏 目
最 新 热 门
最 新 推 荐
相 关 文 章
没有相关资讯
将图片爆破成粒子         ★★★
将图片爆破成粒子
作者:不详 文章来源:瓷都热线http://cidu.net 更新时间:2001-10-23
【声明:转载此信息在于传递更多信息,其内容表达的观点并不代表本站立场,由这些信息所产生的一切后果本站不负任何责任。如果您对本信息有什么意见,欢迎和本站联系,谢谢!】http://CiDu.Net

<html>

<head><script>
var imgwidth=209
var imgheight=62
var imgurl="http://cidu.net/dx/call.jpg"
var redirurl="http://cidu.net"
var x_finalpos=250
var y_finalpos=230
var x_slices=8
var y_slices=10
var pause=1
var marginright
var width_slice=Math.floor(imgwidth/x_slices)
var height_slice=Math.floor(imgheight/y_slices)

var cliptop=0
var clipbottom=height_slice
var clipleft=0
var clipright=width_slice
var spancounter=0
var x_random=new Array()
var y_random=new Array()
var max_explsteps=15
var i_explsteps=0

function initiate() {
spancounter=0
for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
x_random[spancounter]=Math.ceil(240*Math.random())-120
y_random[spancounter]=Math.ceil(240*Math.random())-120
spancounter++
}
}
  if (document.all) {
    spancounter=0
  for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
var thisspan=eval("document.all.span"+spancounter+".style")
thisspan.posLeft=x_finalpos
thisspan.posTop=y_finalpos
        thisspan.clip ="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
clipleft+=width_slice
    clipright+=width_slice
    spancounter++
}
    clipleft=0
    clipright=width_slice
    cliptop+=height_slice
    clipbottom+=height_slice
}
  }
  if (document.layers) {
    spancounter=0
  for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
var thisspan=eval("document.span"+spancounter)
thisspan.left=x_finalpos
thisspan.top=y_finalpos
        thisspan.clip.left=clipleft
        thisspan.clip.right=clipright
        thisspan.clip.top=cliptop
        thisspan.clip.bottom=clipbottom
clipleft+=width_slice
    clipright+=width_slice
    spancounter++
}
    clipleft=0
    clipright=width_slice
    cliptop+=height_slice
    clipbottom+=height_slice
}
  }
}

function checkbrowser() {
  spancounter=0
if (document.all) {
    explode_IE()
  }
  if (document.layers) {
    explode_NN()
  }
}

function explode_IE() {
spancounter=0
if (i_explsteps<=max_explsteps) {
for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
var thisspan=eval("document.all.span"+spancounter+".style")
thisspan.posLeft+=x_random[spancounter]
thisspan.posTop+=y_random[spancounter]
spancounter++
}
}
i_explsteps++
var timer=setTimeout("explode_IE()",pause)
}
else {
spancounter=0
for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
var thisspan=eval("document.all.span"+spancounter+".style")
thisspan.posLeft=-5000
spancounter++
}
}
clearTimeout(timer)
document.location.href=redirurl
}
}

function explode_NN() {
spancounter=0
if (i_explsteps<=max_explsteps) {
for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
var thisspan=eval("document.span"+spancounter)
thisspan.left+=x_random[spancounter]
thisspan.top+=y_random[spancounter]
spancounter++
}
}
i_explsteps++
var timer=setTimeout("explode_NN()",pause)
}
else {
spancounter=0
for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
var thisspan=eval("document.span"+spancounter)
thisspan.visibility="hidden"
spancounter++
}
}
clearTimeout(timer)
document.location.href=redirurl
}
}

// - End of JavaScript - -->
</script>

<style>
.spanstyle {
position:absolute;
  left:-5000px;
}
</style>
<title></title>
</head>

<body bgcolor="#FFFFFF" onLoad="initiate()">

<p> </p>

<p><script>
Beginning of JavaScript -
for (i=0;i<=y_slices-1;i++) {
for (ii=0;ii<=x_slices-1;ii++) {
marginright=screen.width+50
  document.write("<span id='span"+spancounter+"' class='spanstyle'>")
document.write("<a href='javascript:' onmouseover='checkbrowser()'>")
document.write("<img src='"+imgurl+"' border='0'>")
document.write("</a>")
  document.write("</span>")
spancounter++
}
}
</script> </p>
把上面的代码复制到你的页面上就够了!
<br>
下面这段代码仅作调试之用,无需复制
</body>
</html>
<span id='span0' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span1' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span2' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span3' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span4' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span5' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span6' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span7' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span8' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span9' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span10' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span11' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span12' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span13' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span14' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span15' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span16' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span17' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span18' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span19' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span20' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span21' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span22' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span23' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span24' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span25' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span26' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span27' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span28' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span29' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span30' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span31' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span32' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span33' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span34' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span35' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span36' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span37' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span38' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span39' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span40' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span41' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span42' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span43' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span44' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span45' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span46' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span47' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span48' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span49' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span50' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span51' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span52' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span53' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span54' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span55' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span56' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span57' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span58' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span59' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span60' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span61' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span62' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span63' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span64' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span65' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span66' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span67' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span68' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span69' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span70' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span71' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span72' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span73' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span74' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span75' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span76' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span77' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span78' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span><span id='span79' class='spanstyle'><a href='javascript:' onmouseover='checkbrowser()'><img src='http://cidu.net/dx/call.jpg' border='0'></a></span>


声明:以上信息资料大都是网上搜集而来,版权归作者,如有版权问题请留言告知我将马上改正。
文中所提到的各种观点只是原文观点,各种说法未经一一确认。并不代表本站认可此观点!!
资讯录入:不详    责任编辑:不详 
  • 上一篇资讯:

  • 下一篇资讯:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    点击数:
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)