Bg is fading out and remains white

More
13 years 1 month ago #12606 by alinstanescu
Hi,
I have a small problem on some of my website menu links.one some links on my site the dinamic background fades well but one some links, it only shoes the first picture and when it starts to fade teh bg turns to white and stais white.

Please check this link to see what i mean:
promomanagement.ro/web/vacante/grecia

Thank you

Please Log in to join the conversation.

More
13 years 1 month ago #12608 by ivan.milic
open /templates/hot_destinations/js/animbg.js

and find this:


var imgArr = new Array( // relative paths of images
'templates/hot_destinations/images/bg1.jpg',
'templates/hot_destinations/images/bg2.jpg',
'templates/hot_destinations/images/bg3.jpg',
'templates/hot_destinations/images/bg4.jpg'
);

instead of relative paths :
Code:
templates/hot_destinations/images/bg1.jpg

put absolute pahts:
Code:
http://www.yoursite.com/templates/hot_destinations/images/bg1.jpg
The following user(s) said Thank You: alinstanescu

Please Log in to join the conversation.

More
12 years 8 months ago - 12 years 8 months ago #17280 by Lucien_VRN
I've also used this fix, but notice that when you navigate to any page (apart from the home page) the images rotate ok, but always quickly transition back to image 1 first, inbetween each image change.

See:

www.vacation-rental-networks.com

Menu links are at the bottom footer position, I've yet to upload the pages for the top menu.

I looked at alinstanescu's site and it does exactly the same.

Any easy fix?
Last edit: 12 years 8 months ago by Lucien_VRN. Reason: didn't put menu links in

Please Log in to join the conversation.

More
12 years 8 months ago #17285 by ivan.milic
in what browser?

Please Log in to join the conversation.

More
12 years 8 months ago #17295 by Lucien_VRN
Firefox 10.0.2

Please Log in to join the conversation.

More
12 years 8 months ago #17309 by ivan.milic
Well i did not saw it and there is nothing in code that could cause that behavior. But you can add this fix to delay start of animation:

Open templates/hot_destinations/js/animbg.js

find this:

var intID = setInterval(changeImg, 10000);

change it to this:

var intID = null;

setTimeout(function(){
intID = setInterval(changeImg, 10000);
},4000);

where 4000 means 4 s before rotation starts.
The following user(s) said Thank You: Lucien_VRN

Please Log in to join the conversation.

Time to create page: 0.178 seconds
Powered by Kunena Forum