Znalazłem na forum skrypt: Temat: innePHPLosowe wyswietlanie obrazkow
Przerobiłem go pod siebie lecz mam problem mianowicie chciałbym, aby losowanie nie było od prawej do lewej lecz od góry do dołu lub na odwrót.

Aktualnie mój kod wygląda tak:
<html> <head> <meta charset="utf-8"> <link href='http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700' rel='stylesheet' type='text/css'> <style> #wrapper { position: absolute; top: 22px; width: 100px; height: 720px; overflow: hidden; } ul {list-style-type: none; margin: 0px; padding: 1px; width: 100%; } li {list-style-type: none; float: left; width: 90px; height: 90px; margin: 5px; background: url(images/los.png); text-align: center; line-height: 75px; font-size: 25px; color: #8f8f8f; font-family: 'Ubuntu', sans-serif; font-weight: 400; position: relative; left: 0px; } #result {width: 100px; height: 100px;} #button{ position: absolute; left: 250px; background: url(images/button.png); width: 199px; height: 45px; border: 0px; color: #ffffff; font-size: 17px; font-family: 'Ubuntu', sans-serif; font-weight: 400; } </style> </head> <body> <div id="ramka"> <div id="wrapper"> <ul> </ul> </div> <br> <script> $(document).ready(function(){ $("ul > li:lt(5)").clone().appendTo("ul") $("ul").css({height: ($("ul > li").length * 100)}) $("#button").click(function(){ if($(this).text()==="Rozpocznij losowanie"){ stop = false $(this).text("Zatrzymaj losowanie"); $("#result").empty(); $("#textDiv").empty(); scroll() } else { stop = true $(this).text("Rozpocznij losowanie"); } }); }); var stop = false; var speed = 40 function scroll() { count = parseInt($("ul > li").first().css("left")) if(count < 0){ count = count / -100;} if(stop){show(count); return false;} if(count === ($("ul > li").length - 10)){count =0; $("ul > li").css({left: "0px"});} $("ul > li").slice(1).animate({left:"-"+((count+1)*100)+"px"}, speed, "linear"); $("ul > li").first().animate({left:"-"+((count+1)*100)+"px"}, speed, "linear", function(){scroll();} ); } function show(count){ count = count + 3; $("ul > li").slice(count,(count+1)).clone().css({left: "0px"}).appendTo("#result"); } </script> </body> </html>
Czy znalazłby się ktoś dobry i pomógł mi zrobić to, aby losowanie było od góry w dół

