Have done some testing but only changes back ground when click to different page I would like it to change every few seconds regardless of what page its on.
The code you've posted is a mess - make a reduced test case and you will get more help. I have no idea if this is the right method but the first thing I'd try is giving a class (which outlines the background) to the body and changing that class after a period of time with jQuery.
Sorry on last thing only thing that's wrong with the js code is doesn't load up straight to image as seen on here start as a white background demo here www.mwbcomputers.com.au
Have done some testing but only changes back ground when click to different page I would like it to change every few seconds regardless of what page its on.
I do have my own cookie function
and code here is what is in HTML/head http://codepen.io/mwbcomputers/pen/tqxzn
Please feel free to view. I have tried different places to put functions my cookie is placed in mwbtheme01/stylesheet/mwbcomputerscookie.js
do you want to have site like this where background picture changes?? http://hiraworldtravel.com/
view its source code.
The code you've posted is a mess - make a reduced test case and you will get more help. I have no idea if this is the right method but the first thing I'd try is giving a class (which outlines the background) to the body and changing that class after a period of time with jQuery.
@mwbcomputers,
I am un-sure what you are wanting to do with the cookie stuff, however I have a test-case for ya.
Test Case for color changing:
http://codepen.io/johnmotyljr/pen/hJjgI
Test Case using images: (Kinda comical approach)
http://codepen.io/johnmotyljr/full/Jrknj
http://codepen.io/johnmotyljr/pen/Jrknj
to @devil3682116 Yes just like that trying to add it in my header.tpl using open cart. But make my own stuff.
to @JohnMotylJr also that is what I am like but instead of colors put images for example my images are kept in catalog/view/theme/image/bg1.png etc
Also where would I add the js in the head or best to make on separate js file and link it
to @JohnMotyljr
I have come up with this but juts need to change colors to images now http://mwbtheme01.mwbcomputers.com.au/
@mwbcomputers,
Better solution when using images:
http://codepen.io/johnmotyljr/pen/lDmpv
hang on...
TO JohnMotyIJr
Images not loading your code is correct think its way done on my one http://codepen.io/mwbcomputers/pen/qywEh only colors still flashing
@mwbcomputers,
Click on the settings icon (top right of js) and add the jquery library. Remove the script tags as well..
To @JohnMotylJr
It worked in codepen example here http://codepen.io/mwbcomputers/pen/qywEh
But i created new js file in dreamweaver and saved it as mwbcomputers.js and linked it like
No Joy Only Joy On Code Pen
Sorry wont show other link
Plus now colors won't go away after been removed code still flashing with out code
To All tank you for help finally worked out what was problem it was so simple. Easiest things are sometimes hard to find.
@JohnMotylJr
Sorry on last thing only thing that's wrong with the js code is doesn't load up straight to image as seen on here start as a white background demo here www.mwbcomputers.com.au
@mwbcomputers,
Wrap all your jquery inside an anonymous function: