background change via javascript
-
Hi all,
this for me works offline but it does not work online:
// change background per each link function bg1() {$('.site-content-contain').css('background-image', 'url(../bg-images/VegBDbg.jpg)')}; function bg2() {$('.site-content-contain').css('background-image', 'url(../bg-images/RecycledBDbg.jpg)')}; function bg3() {$('.site-content-contain').css('background-image', 'url(../bg-images/MicUCObg.jpg)')}; function bg4() {$('.site-content-contain').css('background-image', 'url(../bg-images/VegOilbg.jpg)')}; function bg5() {$('.site-content-contain').css('background-image', 'url(../bg-images/AnimFatbg.jpg)')}; function bg6() {$('.site-content-contain').css('background-image', 'url(../bg-images/OtherProdbg.jpg)')}; function bg7() {$('.site-content-contain').css('background-image', 'url(../bg-images/Ediblebg.jpg)')};
It works perfectly but not in WP online:
actually the code is “listen” because from one background when one of the functions is called it becomes blank … but … does not load the new bg.Does someone have an idea to suggest me?
Thank you very much.
Mauro
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘background change via javascript’ is closed to new replies.