News

You can also add a background-position attribute to your CSS, with values such as center, left top and right bottom. Add this attribute to make your GIF appear at specific locations in the background.
The following code combines the array of images and the random number to display a random image as the website background:document.body.style.background='url('+background[numberGen]+')'; Advertisement ...
Output: The results of executing the CSS, HTML, and JavaScript entered into the sections of the page. Figure A shows jsFiddle loaded in Internet Explorer 9 with empty code panes.