Просмотр файла fireworks.html

Размер файла: 1.44Kb
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
<link rel="stylesheet" href="./bb3mobi/fireworks.css" type="text/css" />
<script type="text/javascript" src="./bb3mobi/soundmanager.js"></script>
<script type="text/javascript" src="./bb3mobi/fireworks.js"></script>
<title>Фейерверк!!! - bb3.mobi</title>
</head>
<body>
<a style="margin-top:20px" href="#" onclick="fire_works(); return false;"><img src="./bb3mobi/fireworks.png" alt="" title="Fire Works" /></a>
<!-- фейерверк -->
<div id="sound"></div>
<div id="fireworks-template">
<div id="fw" class="firework"></div>
<div id="fp" class="fireworkParticle"><img src="./bb3mobi/particles.gif" alt="" /></div>
</div>
<div id="fireContainer"></div>
<script type="text/javascript">
function fire_works() {
	var r=20+parseInt(Math.random()*16);
	for(var i=r; i--;){
		setTimeout(function(){
			var radius = parseInt(Math.random()*45) + 5;
			var particles = parseInt(Math.random()*100) + radius;
			var circles = parseInt(Math.random()*7) + 1;
			var type = parseInt(Math.random()*6) + 1;
			createFirework(radius, particles, circles, type, null, null, null, null, Math.random()>0.5, true);},
			(i+1)*(1+parseInt(Math.random()*1000))
		);
	}
}
if (typeof(soundManagerInit)!='undefined') soundManagerInit();
</script>
</body>
</html>