Say you have an background files as image1.jpg, image2.jpg and so on. use following code to achieve you goal.
var count = 1;
setInterval(function(){
$("body").css("background", "url(image"+ count +".jpg)")
count++;
},30000);
More Related Contents:
- How to display an chage photo option on mouse hover similar to linkedin using Javascript? [closed]
- How to force browser to show image 3 inches wide?
- Reloading a single div in an html page [closed]
- Javascript Execute message when mouse is on left side of page [closed]
- How can this page scroll (it doesn’t work properly)?
- Selecting and manipulating CSS pseudo-elements such as ::before and ::after using javascript (or jQuery)
- How do I simulate a mouseover in pure JavaScript that activates the CSS “:hover”?
- jQuery CSS plugin that returns computed style of element to pseudo clone that element?
- why javascript this.style[property] return an empty string? [duplicate]
- How to change CSS using jQuery?
- adding css file with jquery
- Is $(document).ready() also CSS ready?
- focus doesn’t work in IE
- Ellipsis in the middle of a text (Mac style)
- how to disable DIV element and everything inside [duplicate]
- How to open specific tab of bootstrap nav tabs on click of a particuler link using jQuery?
- How Do I Stop My Web Content From Shifting Left When The Vertical Scrollbar Appears? Roll-Up of Advice 2017 [duplicate]
- Load HTML page dynamically into div with jQuery
- jQuery position DIV fixed at top on scroll
- Can you have a JavaScript hook trigger after a DOM element’s style object changes?
- Bootstrap modal: background jumps to top on toggle
- How to define the css :hover state in a jQuery selector?
- How To Include CSS and jQuery in my WordPress plugin?
- Detect browser wrapped lines via javascript
- Extracting text from a contentEditable div
- How can I dynamically highlight strings on a web page?
- Placeholder for contenteditable div
- Center an Image vertically and horizontally using CSS
- Change background on button click, using CSS only? [duplicate]
- Jquery/Javascript Opacity animation with scroll