jQuery Plugin For Random Background Image of An Element - Aurora

jQuery Plugin For Random Background Image of An Element - Aurora
File Size: 3.35 KB
Views Total: 1453
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Aurora is a lightweight jQuery plugin for displaying a random background image of an element that fetches a randomly selected image from Flickr by tags.

See also:

How to use it:

1. Load the latest version of jQuery library and jQuery Aurora plugin in the html document.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" src="jquery.aurora.js"></script>

2. Call the plugin on the <body> tag with options. The plugin will display a random background image for your entire page on page load or refresh.

<script>
$(document).ready(function() {
$("body").aurora({
tags  : "aurora borealis,more tags ...",  // define your search tags
showCredits   : true,     // hide or show the credits
complete      : null      // callback function
});
});
</script>

 


This awesome jQuery plugin is developed by janweinen. For more Advanced Usages, please check the demo page or visit the official website.