Page 2 of 2

carousel doesn't work on Samsung Galaxy S3.

Posted: Tue Mar 12, 2013 3:58 pm
by Kateryna Grynko

Steven,
I'll look for a solution.


carousel doesn't work on Samsung Galaxy S3.

Posted: Wed Mar 13, 2013 4:05 pm
by Maryna Brodina

Hello!

1) You would need to create sprite using http://spritegen.website-performance....

Should be something like this:

Image

there can be more pictures with numbers (for example from 0 to 200)

2) In JS (Create New - JavaScript) add line
code
var outsCounter = 0, oneImageWidth = 163;/code
outsCounter - counter for outs field
oneImageWidth - width of one img in sprite

3) For counter add Panel component with type=div. Set it's size to one image size and set created sprite as a background. For example, add to this Panel class divForOuts and add to CSS this code:

code.divForOuts{
width: 113px;
height: 124px;
background: url('../image/spritename.png') no-repeat top left;
} /code

4) On Click on "+" sign run JS:

codeoutsCounter++;
if(outsCounter>8){
outsCounter=0;
}
Tiggzi('outsDiv').css('background-position', '-'+oneImageWidth*(outsCounter)+'px 0');/code

Here is an example http://project.tiggzi.com/mobile-fram...


carousel doesn't work on Samsung Galaxy S3.

Posted: Thu Mar 28, 2013 2:41 am
by ssquire

Marina,
How did you get your images to maintain the proper order in your zip file?

SS


carousel doesn't work on Samsung Galaxy S3.

Posted: Thu Mar 28, 2013 3:23 am
by ssquire

Also, what do I do if my images are not all the same width?

SSq


carousel doesn't work on Samsung Galaxy S3.

Posted: Thu Mar 28, 2013 10:01 am
by Maryna Brodina

Hi, images were named according to namber on picture (image with number 1 - image1, image with number 2 - image2)


carousel doesn't work on Samsung Galaxy S3.

Posted: Thu Mar 28, 2013 10:04 am
by Maryna Brodina

There are two ways:

1) make all images the same size;

2) change JS in part 4 (we were suggested you) to check with JS images width