<input type="file" id="mypic" accept="image/*">
<form method="post" action="takephoto.php" enctype="multipart/form-data">
<input type="file" accept="image/*" name="file">
<input type="submit">
</form>
<input type="file" id="mypic" accept="image/*">
<form method="post" action="takephoto.php" enctype="multipart/form-data">
<input type="file" accept="image/*" name="file">
<input type="submit">
</form>
<script src="fruitsnow.js" type="text/javascript"></script>
<script type="text/javascript" src="http://beneposto.pl/jqueryrotate/js/jQueryRotateCompressed.js"></script>
<script type="text/javascript">
//<![CDATA[
window.onload = function() {
function timeouts() {
setTimeout(function () {
fruitfall();
timeouts();
}, 10000);
}
timeouts();
fruitfall();
var rotation = function (){
jQuery(".auglis1").rotate({
angle:0,
animateTo:360,
duration: 2000,
callback: rotation,
easing: function (x,t,b,c,d){
return c*(t/d)+b;
}
});
}
rotation();
var rotation2 = function (){
jQuery(".auglis2").rotate({
angle:360,
animateTo:0,
duration: 2000,
callback: rotation2,
easing: function (x,t,b,c,d){
return c*(t/d)+b;
}
});
}
rotation2();
};
//]]>
</script>
fruitsnow.js
for (i=1; i<9; i++){
jQuery("#clickban").after("<img id='br"+i+"' class='auglis"+Math.floor((Math.random() * 2) + 1)+"' src='/augli/"+i+".png' style='width:100px;z-index:-1;position:absolute;right:30px;top:-200px;'>");
}
function rightfall(kurs){
setTimeout(function(){
var bar1 = jQuery('#br'+kurs);
bar1.animate({top: jQuery(document).height()-200}, Math.floor((Math.random() * 10000) + (10000)), "linear", function() {
//bar1.hide();
bar1.css("top","-200px");
});
}, Math.floor((Math.random() * 8000) + ((kurs-1)*2000)));
}
for (i=1; i<9; i++){
jQuery("#clickban").after("<img id='fr"+i+"' class='auglis"+Math.floor((Math.random() * 2) + 1)+"' src='/augli/"+i+".png' style='width:100px;z-index:-1;position:absolute;left:30px;top:-200px;'>");
}
function leftfall(kurs){
setTimeout(function(){
var bar1 = jQuery('#fr'+kurs);
bar1.animate({top: jQuery(document).height()-200}, Math.floor((Math.random() * 10000) + (10000)), "linear", function() {
//bar1.hide();
bar1.css("top","-200px");
});
}, Math.floor((Math.random() * 8000) + ((kurs-1)*2000)));
}
function fruitfall(){
for (i=1; i<9; i++){
rightfall(i);
leftfall(i);
}
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body style='top:0px;bottom:0px;padding:0px;margin:0px;width:100%;height:100%;position:absolute;'>
<table width=100% height=100%><tr><td valign=middle align=center>
your content here
</td></tr></table>
</body>
</html>