Running Stars

Posted: November 18, 2007 in JavaScript Stuffs

Heading

Moving Stars

Description

JavaScript Stars moving from left to right;[Animation]

Preview

N/A

Code

<html>

<head>

<style type=”text/css”>

#fdsqwa0, #fdsqwa1, #fdsqwa2, #fdsqwa3, #fdsqwa4, #fdsqwa5, #fdsqwa6, #fdsqwa7, #fdsqwa8, #fdsqwa9, #fdsqwa10{position:absolute; left: -30px; height:1; width:1; font-family:”Times New Roman”, Times, serif; font-size:10px; color:#00FFFF; z-index:11;}

</style>

<script language=”javascript” type=”text/javascript”>

var fdswqa=(document.layers);

var fdswea=(document.all);

FdszXa=24;

var fdsewa=(document.getElementById && self.innerWidth && (window.pageXOffset>-1));

var fdsera = new Array(11);

Fdszxa=FdszXa+6;

fDszxa=FdszXa+Fdszxa;

fdSzxa=FdszXa+Fdszxa+fDszxa;

fdsZxa=fdSzxa/fDszxa*FdszXa;

fdszXa=fDszxa*FdszXa/12*Fdszxa;

fdszxA=FdszXa+Fdszxa/fdsZxa-16*fdSzxa;

FdsXza=fdszXa*(FdszXa-5)/fDszxa+fdSzxa;

Fdsxza=FdsXza/fdszxA+FdszXa*fDszxa-fdSzxa;

fDsxza=(Fdsxza+FdszXa/fDszxa*fdSzxa+Fdszxa*fdsZxa)/fdszXa+FdsXza-Fdsxza-1;

fdSxza=Math.floor(fDsxza) ;

fdsXza=fdSxza-42;

var fdsrea,fdsrta;

function fdstra()

{

if(!fdswqa && !fdswea && !fdsewa) return;

for(fdstya=0; fdstya<11; ++fdstya)

{

if(fdswea) fdsera[fdstya]=eval(‘document.all.fdsqwa’+fdstya+’.style’);

else if(fdswqa) fdsera[fdstya]=eval(‘document.layers["fdsqwa'+fdstya+'"]‘);

else if(fdsewa) fdsera[fdstya]=eval(‘document.getElementById(“fdsqwa’+fdstya+’”).style’);

fdsyta(fdstya,-1,-1);

}

}

function fdsyta(fdsyua,fdsuya,fdsuia)

{

if (fdswea)

{

fdsrea =document.body.offsetWidth+document.body.scrollLeft-fdsXza;

fdsiua=Math.floor(Math.random()*document.body.offsetHeight)+document.body.scrollTop-fdsXza;

}

else if (fdswqa)

{

fdsrea=window.innerWidth+window.pageXOffset-fdsXza;

fdsiua=Math.floor(Math.random()*window.innerHeight)+window.pageYOffset-fdsXza;

}

else if (fdsewa)

{

fdsrea=self.innerWidth+window.pageXOffset-fdsXza;

fdsiua=Math.floor(Math.random()*self.innerHeight)+window.pageYOffset-fdsXza;

}

if(fdsuya>-52)

{

fdsuya-=47;

fdsera[fdsyua].left=fdsuya;

fdsera[fdsyua].top =fdsuia;

setTimeout(“fdsyta(“+fdsyua+”,”+fdsuya+”,”+fdsuia+”)”,42);

}

else setTimeout(“fdsyta(“+fdsyua+”,fdsrea-10,fdsiua)”,1950/fdsyua+43);

}

window.onload=fdstra;

</script>

<title></title>

</head>

<body bgcolor=”#000000″>

<div id=”fdsqwa0″>*</div>

<div id=”fdsqwa1″>+</div>

<div id=”fdsqwa2″>*</div>

<div id=”fdsqwa3″>+</div>

<div id=”fdsqwa4″>*</div>

<div id=”fdsqwa5″>*</div>

<div id=”fdsqwa6″>+</div>

<div id=”fdsqwa7″>*</div>

<div id=”fdsqwa8″>*</div>

<div id=”fdsqwa9″>+</div>

<div id=”fdsqwa10″>*</div>

</body>

</html>

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s