John6122514
Posts: 0
Joined: Wed Aug 07, 2013 7:10 pm

Carousel change frames automatically

I upgraded to iOS 7.1.1 and it is working now.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Carousel change frames automatically

Hi John,

Thank you for the update. Glad it's working!

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

Carousel change frames automatically

Hi!
Im using this code to make 2 banner images slide automatically on the header, instead of creating a gif image.

the code posted above works partially for me...

Is because the second image pushes the firts to the left, then after 2 seconds the firts image pushes the image to the rignt...and cycle repeats. This doesnt look nice.

  1. How can I do to set the images always moving to the right direction?
    2, Is it posible to add a fade effect between the images?

    Regards

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

Carousel change frames automatically

Hi!
I using the above code to make the same, not with carousel, but with two images from database.

Those two images are saved to local storage, and I want to change them automatically every two seconds. I modified the code, but cant make it works:

code
var interval = 2000; // == 2 seconds
function movebanner() {
if ($("[dsid=mobileimage_6]", $.mobile.activePage ).length) {
Appery( "mobileimage_6" ).attr('src', localStorage.getItem('foto_banner'));
setTimeout(movebanner, interval);
}
Appery( "mobileimage_6" ).attr('src', localStorage.getItem('foto_banner2'));
}

setTimeout(movebanner, interval);

code

Am I doing something wrong?/code/code

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Carousel change frames automatically

Thank you for the update. Do not hesitate to contact us if you need any further help.

reidsantabarbara .
Posts: 0
Joined: Sat Jun 06, 2015 9:07 pm

Carousel change frames automatically

Where exactly should this code go? I have tried as an event on page load as well as in the javascript //On Load. Neither of these locations have worked

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Carousel change frames automatically

Hello reidsantabarbara,

I just tried this code - it works as expected. I call it on page load event. Also please note that in this code codemobilecarouselName/code is the name of carousel component.

reidsantabarbara .
Posts: 0
Joined: Sat Jun 06, 2015 9:07 pm

Carousel change frames automatically

Thank you Evgene for your help! I've got it working now!

SteamyDave
Posts: 0
Joined: Wed Aug 05, 2015 9:40 am

Carousel change frames automatically

I'm very new to appery.io and am in ore of the system. It's taking a bit of time to get used to the system and used to javascript, but it is SO cool!

My carousel doesn't move! I tried pasting the javascript into the Load function - no movement on the test or the android phone.
I created a custom javascript and called the function from the Load but still no action.

Where am I going wrong?!

Thanks,

David

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

Carousel change frames automatically

that helped me ! thks

Return to “Issues”