I would need a simple page that loads all image from a specific folder a show them in random order putting them one after one, making an "infinite" vertical scroll page :)
Something like http://jasmin.com (NSFW)
I would need a simple page that loads all image from a specific folder a show them in random order putting them one after one, making an "infinite" vertical scroll page :)
Something like http://jasmin.com (NSFW)
There is a jQuery plugin called infinite-scroll that does most of what have described. Its methods allow you to decide when you would like to load more content to your page, what you would like to load, and where. I believe its core function is $('.selector').infinitescroll('scroll');
.
EDIT
If this solution is too complex, there is a simple scroll detection example on stackoverflow here and here.
Firstly i uploaded all the zip content to my ftp.
After this I added:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script type="text/javascript" src="http://rfactorstreetcarstracks.altervista.org/jquery.infinitescroll.js"></script>
<script type="text/javascript">
$('.selector').infinitescroll({
loading: {
finished: undefined,
finishedMsg: "<em>Congratulations, you've reached the end of the internet.</em>",
img: null,
msg: null,
msgText: "<em>Loading the next set of posts...</em>",
selector: null,
speed: 'fast',
start: undefined
},
state: {
isDuringAjax: false,
isInvalidPage: false,
isDestroyed: false,
isDone: false, // For when it goes all the way through the archive.
isPaused: false,
currPage: 1
},
behavior: undefined,
binder: $(window), // used to cache the selector for the element that will be scrolling
nextSelector: "div.navigation a:first",
navSelector: "div.navigation",
contentSelector: null, // rename to pageFragment
extraScrollPx: 150,
itemSelector: "div.post",
animate: false,
pathParse: undefined,
dataType: 'html',
appendCallback: true,
bufferPx: 40,
errorCallback: function () { },
infid: 0, //Instance ID
pixelsFromNavToBottom: undefined,
path: "/", // Can either be an array of URL parts (e.g. ["/page/", "/"]) or a function that accepts the page number and returns a URL
maxPage:undefined // to manually control maximum page (when maxPage is undefined, maximum page limitation is not work)
});
</script>