video image or any other things background slideshow with jquery
- add id or class name to the div or other DOM. expmple:
2.add content to div. expmple:
3.add jquery and this plugin to script.
<script src="js/jquery/jquery-3.3.1.min.js"></script> <script src="js/background.js"></script> <script> $(function(){ $("#whatever").background(); $("#whatever").background("run"); }); </script>More: 1.we can add parameters for slider show.
OR we can add parameters on script. $("#whatever").background({ time: 5, playend: true, needLoading: false });
2.we can set parameters for each element,if some elements has no parameter, there will use the parameters in parent.
3.parent has default parameters data-bgtime="5" data-bgplayend="false", if we don't set it.
4.we can dynamically set the background contents, use script or ajax.

