- Posts: 11
- Thank you received: 0
Bg is fading out and remains white
-
alinstanescu
Inactive member - Topic Author
- New Member
Less
More
13 years 1 month ago #12606
by alinstanescu
Bg is fading out and remains white was created 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
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 1 month ago #12608
by ivan.milic
Replied by ivan.milic on topic Re: Bg is fading out and remains white
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 :
put absolute pahts:
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.
-
Lucien_VRN
Inactive member - Member
Less
More
- Posts: 28
- Thank you received: 0
12 years 8 months ago - 12 years 8 months ago #17280
by Lucien_VRN
Replied by Lucien_VRN on topic Re: Bg is fading out and remains white
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?
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 8 months ago #17285
by ivan.milic
Replied by ivan.milic on topic Re: Bg is fading out and remains white
in what browser?
Please Log in to join the conversation.
-
Lucien_VRN
Inactive member - Member
Less
More
- Posts: 28
- Thank you received: 0
12 years 8 months ago #17295
by Lucien_VRN
Replied by Lucien_VRN on topic Re: Bg is fading out and remains white
Firefox 10.0.2
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 8 months ago #17309
by ivan.milic
Replied by ivan.milic on topic Re: Bg is fading out and remains white
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.
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