jQuery LoadingBox
A lightweight jQuery loading box plugin.
Usage
-
Include jQuery:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
-
Include plugin's code:
<script src="jquery.LoadingBox.js"></script>
-
Show LoadingBox:
var lb = $.LoadingBox();
-
Hide LoadingBox:
lb.close();
Options [with default settings]
$.LoadingBox({ mainElementID: "loading-box", fadeInSpeed: "normal", fadeOutSpeed: "normal", opacity: 0.8, backgroundColor: "#000", loadingImageWitdth: "60px", loadingImageHeigth: "60px", loadingImageSrc: "loading.gif" });