http://theonion.github.io/fartscroll.js/
fartscroll.js
Everyone farts. And now your web pages can too.
- Include „fartscroll.js” in your page.
- Initialize the fartscroll plugin on document.ready:
// Fart every 400 pixels scrolled in the window fartscroll(); // Fart every 800 pixels scrolled fartscroll(800); // Fart every 100 pixels scrolled (probably a bit much) fartscroll(100); // Now I'm just adding more examples to make the page longer fartscroll(50); // SO MANY FARTS fartscroll(5); // I should register fart.io for this fartscroll(500); // I should register fart.io for this fartscroll(400); // Dammit, fart.io is taken fartscroll(600); // Alright, that's probably enough examples fartscroll(400);