Displaying photos from JS

Post Reply
User avatar
amr
Master Bludit
Posts: 56
Joined: Fri Apr 22, 2016 8:36 am
Location: Egypt
Contact:

Hello , i am currently using a template that loads different background from a js file .
after installing and modifying i noticed that the background never shows

here is a sample code of js :

Code: Select all

var settings = {

					// Images (in the format of 'url': 'alignment').
						images: {
							'images/bg01.jpg': 'center',
							'images/bg02.jpg': 'center',
							'images/bg03.jpg': 'center'
						},

					// Delay.
						delay: 6000

				};

JS file located in theme dir>assets>js>main.js
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

This can be only a part of the script.

Have you coded the theme by yourself?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
amr
Master Bludit
Posts: 56
Joined: Fri Apr 22, 2016 8:36 am
Location: Egypt
Contact:

Edi wrote:This can be only a part of the script.

Have you coded the theme by yourself?

thanks Edi , fixed
Post Reply