Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function() {
- var backstretchImages = ["https://moltrespvp.com/media/bg.png"];
- function shuffle(array) {
- var m = array.length, t, i;
- // While there remain elements to shuffle…
- while (m) {
- // Pick a remaining element…
- i = Math.floor(Math.random() * m--);
- // And swap it with the current element.
- t = array[m];
- array[m] = array[i];
- array[i] = t;
- }
- return array;
- }
- backstretchImages = shuffle(backstretchImages);
- $.backstretch(backstretchImages, {
- fade: 0,
- duration: 4000
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement