Picture blasting into particles

<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>")
document.write ( "<a href='javascript:'>")
document.write ( "<img src='"+imgurl+"' border='0'>")
document.write ( "</ a>")
document.write ( "</ span>")
spancounter + +
)
)
</ script> </ p>
Put the above code into your page enough!
<br>
The following code is only for debugging purposes, without the need to copy
"</ body>
</ html>
<span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = 'javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = 'javascript: '> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src =' http:/ / cidu.net / dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/ dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a > </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = 'javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = 'javascript: '> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src =' http:/ / cidu.net / dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/ dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a > </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = 'javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = 'javascript: '> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src =' http:/ / cidu.net / dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/ dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a > </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = 'javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = 'javascript: '> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src =' http:/ / cidu.net / dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/ dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a > </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = 'javascript:'> <img src = 'http://cidu.net/dx/call. jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> < / a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = ' javascript: '> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> < img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src =' http : / / cidu.net / dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu. net / dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call . jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> < / a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = ' javascript: '> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> < img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src =' http : / / cidu.net / dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu. net / dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call . jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> < / a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = ' javascript: '> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> < img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src =' http : / / cidu.net / dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu. net / dx / call.jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call . jpg 'border = '0'> </ a> </ span> <span> <a href='javascript:'> <img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> < / a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href = ' javascript: '> <img src='http://cidu.net/dx/call.jpg' border='0'> </ a> </ span> <span> <a href='javascript:'> < img src = 'http://cidu.net/dx/call.jpg' border = '0 '> </ a> </ span> <span> <a href='javascript:'> <img src =' http : / / cidu.net / dx / call.jpg 'border = '0'> </ a> </ span> "

分类:Java 时间:2009-05-05 人气:195
分享到:
blog comments powered by Disqus

相关文章

  • js中Math之random,round,ceil,floor的用法总结 2014-12-19

    本篇文章是对js中Math之random,round,ceil,floor的用法进行了总结介绍,需要的朋友可以过来参考下,希望对大家有所帮助 <SPAN style="FONT-SIZE: 18px">1.Math.random(); 结果为0-1间的一个随机数(包括0,不包括1) </SPAN> Math.random(); 结果为0-1间的一个随机数(包括0,不包括1) [html] view plaincopyprint? <SPAN style=&

  • js javascript array.join 2010-07-13

    // String connection handling array=new Array() array[0]="AAA" array[1]="BBB" array[2]="CCC" array[3]="DDD" str1=array.join() str2=array.join("|") document.write(str1+"") document.write(str2) Bla

  • To obtain the maximum and minimum array functions 2010-09-21

    function getMin(array){ return Math.min.apply( Math, array ); } function getMax(array){ return Math.max.apply( Math, array ); } Brief Description: Math.min (arg1, arg2 ,...), not directly receiving array as a parameter and apply a very convenient sol

  • [Reprinted] JAVA rounded and rounded 2010-07-06

    Taken from: http://edu.codepub.com/2009/0616/6329.php public class TestGetInt{ public static void main(String[] args){ double i=2, j=2.1, k=2.5, m=2.9; System.out.println(" Discards decimal rounding :Math.floor(2)=" + (int)Math.floor(i)); System

  • 原生javascript实现图片弹窗交互效果 2014-06-14

    这篇文章主要介绍了原生javascript实现图片弹窗交互效果的方法及的相关资料,需要的朋友可以参考下 [一]用var 声明多个变量,比每个变量都用var快多了 var sScrollTop = document.body.scrollTop || document.documentElement.scrollTop, sWindow_h = document.documentElement.clientHeight, t_h = parseInt(this.getCss(this.getId(

  • PHP - Html Transfer Code 2014-07-23

    PHP - Html Transfer Code 超文本转换码,市面上这东西已经很滥(多)了,不过是这几天自己实践了一下~~~~ 支持 多重嵌套 和 同标签嵌套,混合高亮显示(还有一点小问题) 自我感觉便于修改和扩充~~~~~~~~~~~ <?php /************************************************** * * * Name : Functions 4 Html Transfer Code (HTC) * * Version : 1.3.2 *

  • Ajax读取数据之分页显示篇实现代码 2014-10-03

    前几篇的ajax教程里讲了,读取,添加,修改,删除的功能.有几天没有更新了,虽然网上也有很多ajax分页的教程和相关实例. 我觉得还是有必要把我的ajax分页呈现给大家.我先讲一下这个ajax分页的实现核心,然后我们再看实例效果.所谓的ajax分页与传统的数据分页,在服务端的代码基本上是一样的.我们主要做的是使用ajax在不刷新的情况下,将请求的页码,和每页要显示的条数发送给服务端的处理网页.大家点击这个网址就可以看到要请求的数据:"ajax_page.asp?action=read&p

  • 网页压缩.解压 2014-09-26

    <html> <head> <title>Javascript Compressor</title> <meta http-equiv="Content-Type" content="text/html; charset=GB2312" /> <script type="text/javascript"> function ICommon(that){ if(that!=nu

  • HTML Web Content Extraction 2010-03-29

    Web Content Extraction html Tag Filter: import java.io.BufferedReader; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.util.regex.Pattern; /** * html Filter * @author Jabber * @version 1.0 * @

  • 10_2. JavaScript note 2010-04-23

    Html CSS to display part of the pull out a definition of multiple pages of display can also write a CSS file, bringing with <link> tags can also be directly defined in the file <head> with <style> Tags enclosed <html> <head>

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.107 (s). 12 q(s)