<html>
<head>
<title> Lightning </title>
<script language="JavaScript">
<!--
//****************************//
var stream_width = 5;
var max_segments = 40;
var max_segment_length = 20;
var glow_color = "#3399FF"
var fork_top = 0;
//***************************//
var striker = ""
var angle_holder = new Array();
var length_holder = new Array();
length_holder[0] = fork_top;
var temp = length_holder[0];
var last_pos = 0;
dot = new Image();dot.src = "http://i1022.photobucket.com/albums/af349/geetha6/adot-1.jpg";
function strike()
{
with (Math)
{
disp = round((random() * 200))
timer = round((random() * 1000))
y = round((floor(random()*document.body.offsetWidth)-30))
seglen = round((random()*max_segment_length))
length_holder[1] = round(((random() * 2)*seglen))
for(a=0;a<max_segments+1;a++){angle_holder[a] = round((random() * 4) - ((random()*2)*2))}
for(a=1;a<max_segments+1;a++){length_holder[a] = round(length_holder[a-1] + ((random() * 2)*seglen))}
}
for(count=0;count<max_segments+1;count++)
{
for(x=temp;x<length_holder[count];x+=3)
{
y+=angle_holder[count]
striker+='<img src="'+dot.src+'" style="position:absolute;top:'+x+';left:'+y+';height:'+stream_width+';width:'+stream_width+';filter:GLOW(color='+glow_color+')">'
}
temp = length_holder[count]
last_pos = x;
}
holder.innerHTML = striker
if(last_pos > (document.body.offsetHeight - 20))
{
// GROUND
}
striker = ""
setTimeout("holder.innerHTML = striker",disp)
setTimeout("strike()",timer)
}
//-->
</script>
</head>
<body bgcolor="black" onload="strike()">
<span id="holder"></span>
<center>
<br><br><br>
</center>
</body>
</html>
layout > add gadget ---html >>copy and paste!!!