I've found it but have not been able to customize it on my website. I am new to HTML, Javascript and CSS, so bear with me
I want to change my background from I am working on dreamweaver. My source code is connecting with jquery.js and imagefader.js. My style.css file is also linked to my source code. The CSS file is applied to the body background image: My imagefader.js has the following content: The problem is that changes in a white background after 5 seconds instead of bg1.jpg from bg0.jpg. Result can be seen here. Please help me modify the files so that I can get the necessary results. The path is wrong Your images are ../images/backgrouds/ and the first attempt tries to url. However, you want: I can not recommend the intelligence to help with such problems. It shows every HTTP request from your browser so that you can view 404. bg0.jpg to
bg1.jpg >
bg2.jpg and then
Bg0.jpg .
body {background-image: url (../images / Background / BG0.jpg); Background repeat: do not repeat; Background attachment: fixed; Background position: center; }
(function () {var curImgId = 0; var numberOfImages = 3; // replace it The number of background images in the window.setInterval (function () {$ ('body'). CSS ('background-image', 'url (/ background' + curimgId + '.jpg)'); curImgId = (curImgId + 1) % NumberOfImages;}, 5 * 1000);}) ();
$ ('body'). CSS ('background-image', 'url (/ background' + curImgId + '.jpg)');
$ ('body'). CSS ('background-image', 'url (/ images / background / bg' + curvegid + '.jpg)');
No comments:
Post a Comment