<!DOCTYPE HTML><HTML> <Head> <MetaCharSet= "UTF-8"> <title></title> <style>img{Border:0;position:Absolute;width:20px;Height:20px;}Body{background:URL (img/img/bg.jpg);} </style> </Head> <Scriptsrc= "Js/jquery-1.11.3.js"></Script> <Script> $(function(){ varCount= -; varAA=document.getElementById ("a") for(varJ=0; J<count;j++){ varimg=Document.createelement ("img") Img.src="img/img/1.jpg"Aa.appendchild (IMG)} a=math.random ()* theb=math.random ()* the $("img"). css ({left:a,top:b}) $ ("img"). Animate ({left:Math.random ()* -, Top:Math.random ()* -}, +,function(){ varTimmer=SetInterval (function(){ for(varI=0; I<Count;i++) {C=math.random ()* -D=math.random ()*650SP=math.random ()* -+ - $("img"). EQ (i). Animate ({LEFT:C,TOP:D},SP)} }, the) }) }) </Script> <Body> <DivID= "a"></Div> </Body></HTML>
Interesting effect--the flickering Firefly