`

将图片爆破成粒子

    博客分类:
  • JSP
阅读更多

<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>"

分享到:
评论

相关推荐

    Unity3D特效粒子 墙体爆破爆炸特效包

    在Unity3D中,这种效果可能通过粒子系统结合物理引擎实现,使得物体在受到爆炸等力量作用时,能够实时地、自然地破裂成多块,并且这些碎片还能遵循物理规则运动。 这个特效包可能包含了以下关键组成部分: 1. **...

    爆破粒子效果按钮组件

    爆破粒子效果按钮组件✨

    PNG图片宽高一把梭,爆破PNG图片宽高

    在CTF(Capture The Flag)竞赛中,"PNG图片宽高一把梭,爆破PNG图片宽高"可能是指一种解谜或破解技术,参赛者需要通过某种方式获取PNG图像的隐藏信息,例如通过解析或篡改PNG文件的头部数据来找出图片的真实宽高,...

    HTML5 Canvas实现粒子爆破组装成文字的动画特效源码.zip

    5. 分析文字的形状,将每个字符拆分成多个可分解的粒子。 6. 使用定时器控制动画的更新频率。 7. 在粒子爆炸阶段,根据粒子的运动轨迹和速度展示爆破效果。 8. 在粒子重组阶段,按照预设顺序让粒子回归到文字形状,...

    CTF神器:自动爆破PNG图片宽高并一键修复工具

    标题提到的“CTF神器:自动爆破PNG图片宽高并一键修复工具”就是为了解决此类问题而设计的。 这个神器的核心功能在于能够自动检测和修复PNG图片的宽度和高度问题。在某些情况下,图片的宽度和高度信息可能被篡改或...

    10种Unity粒子特效包资源

    Unity3D特效粒子 墙体爆破爆炸特效包 Fracturing_Destruction_1.11 Unity3D特效粒子 水流特效 Water FX Pack 资源包 Unity3d特效粒子 绚丽魔法阵系列 FX Magic Circle 特效包 Unity3D特效粒子 烟雾气特效 White ...

    弱口令爆破(图片验证码爆破工具)

    用于带有图片验证码弱口令爆破

    爆破片与爆破片装置.pdf

    * 爆破片组件:由爆破片、背压托架、加强环、保护膜等两种或两种以上零件组合成的组件。 本标准还规定了爆破片的类型,包括正拱形爆破片、反拱形爆破片、平板形爆破片和石墨爆破片等。每种类型的爆破片都有其特点和...

    爆破密码集,可用于常用爆破

    弱口令密码合集,常用爆破密码集,可用于常用爆破,亲测可用!!! 弱口令密码合集,常用爆破密码集,可用于常用爆破,亲测可用!!! 弱口令密码合集,常用爆破密码集,可用于常用爆破,亲测可用!!! 弱口令...

    Unity3D特效粒子 墙体爆破爆炸特效包--Unity 5.3.2f1 (64-bit)--New Unity Project 23.rar

    Unity3D特效粒子 墙体爆破爆炸特效包--Unity 5.3.2f1 (64-bit)-----运行源代码 Unity3D特效粒子 墙体爆破爆炸特效包--Unity 5.3.2f1 (64-bit)-----运行源代码

    Unity3D特效粒子 墙体爆破爆炸特效包 Fracturing_Destruction_1.11

    Fracturing,或者称为物理破碎,是通过将大块模型分解成多个小碎片,然后根据物理规则让它们在爆炸冲击下运动。这需要使用到专门的破碎插件或脚本,例如Unity的Shuriken粒子系统配合NVIDIA的FX Composer或其他第三方...

    RAR压缩包密码爆破工具

    基于python编写的rar压缩包密码爆破小工具,可以针对加密的rar文件密码进行爆破

    爆破CRC脚本文件x

    爆破CRC脚本文件x

    unity3d 素材包(粒子特效的)

    Unity3D是一款强大的跨平台游戏开发引擎,广泛用于创建2D和3D的互动体验,包括游戏、模拟器以及可视化应用。...无论是制作独立的游戏还是商业应用,这些粒子特效都将极大地提升用户体验,让作品更加引人入胜。

    Burp爆破Burp爆破 常用用户名字典

    简单学习使用的Burp爆破 常用 常见 用户名字典

    3389密码爆破词典

    好东西3389密码爆破词典3389密码爆破词典3389密码爆破词典

    爆破字典.txt

    文件的百度云网址为链接: https://pan.baidu.com/s/1hbS3j9pSmnIjfTp2RKWPlA, 提取码:见资源文件爆破字典.txt。...4)爆破字典 1.7M 5)完美字典_triom发布_v09_工9.4亿条,无重复,无中文,8-16位,文件大小---1.66G

    原生js点击兔子发射爆破特效

    - 爆破特效通常涉及到粒子系统,这是一个模拟大量小对象(粒子)行为的机制。每个粒子都有自己的属性(如位置、速度、大小等),并根据特定规则变化。 - 在JavaScript中,你可以创建一个粒子数组,然后逐个更新每...

Global site tag (gtag.js) - Google Analytics