$HTML>
$HEAD>$TITLE>High Explosive Link: charge your links with dynamite$/TITLE>
$SCRIPT>
$!-- Beginning of JavaScript -
// The width of your image (pixels)
var imgwidth=120
// The height of your image (pixels)
var imgheight=60
// The URL of the sliced image
var imgurl="linkexploder.gif"
// The URL of the redirection link
var redirurl="http://www.google.com"
// Final horizontal position of the image: distance to the left margin of the window
var x_finalpos=240
// Final vertical position of the image: distance to the top margin of the window
var y_finalpos=80
// Number of sliced cells (the higher this number the slower the script)
var x_slices=8
// Number of sliced rows (the higher this number the slower the script)
var y_slices=4
// Speed of explosion
var pause=10
// Do not change the variables below
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++
}
}
}
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)
var newwin=window.open(redirurl, "newindow",
"status=yes,toolbar=yes,menubar=yes,resizable=yes,scrollbars=yes,width=800,height=500,top=30,left=20")
}
}
// - End of JavaScript - -->
$/SCRIPT>
$META content="MSHTML 5.50.4522.1800" name=GENERATOR>$/HEAD>
$BODY text=#ffffff vLink=#ffffff aLink=#ffffff link=#ffffff bgColor=#000000
onload=initiate()>
$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+"' style='position:absolute;visibility:visible;
left:"+x_finalpos+"px;top:"+y_finalpos+"px;clip:rect("+cliptop+"px "+clipright+"px "+clipbottom+"px "+clipleft+"px)'>")
document.write("$a href='javascript:explode_IE()'>")
document.write("$img src='"+imgurl+"' border='0'>")
document.write("$/a>")
document.write("$/span>")
clipleft+=width_slice
clipright+=width_slice
spancounter++
}
clipleft=0
clipright=width_slice
cliptop+=height_slice
clipbottom+=height_slice
}
// - End of JavaScript - -->
$/SCRIPT>
$/BODY>
$/HTML>
jason..mraz..i'm..yours
Sabtu, 13 Juni 2009
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar