🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

jQuery Bgran is a simple jQuery plugin that dynamically changes the background of your container with a random color or image. Also can be used as an image slideshow.

background background-image background-color random-background-image

Documentation

jQuery plugin random background

Options

colors - Array colors

images - Array images

timeout - The timeout in milliseconds

type - image or color (if 'color' is selected performed an array of colors, and then the 'image' - array image)

Installation

Warning: You need to connect jquery-color

<script src="jquery-1.9.1.js"></script> <script src="jquery.color-2.1.2.min.js"></script> <script src="bgran.min.js"></script> <script type="text/javascript">     $(document).ready(function () {         $('body').bgran({             colors: ["#DF624E", "#B5C6CA", "#77B8B1", "#916D58", "#0099cc", "#ea4c88", "#ffcc33"],             images: ['../Image/1.jpg")','../Image/2.jpg','../Image/3.jpg'],             timeout: 10000,             type: 'image' // or color         });     }); </script> 

License

Zyshchyk Maksim is Copyright © 2013 and is licensed under the terms of the MIT License.


You May Also Like