FitViewer Developer Documentation

360 options example

Example

Javascript Code

window.onload = function()
{
    FitViewer = Fb.FitViewer.GetInstance(
        {
            FitViewer:
            {
                container: '#myFitViewer',
                skunumber: $('#frames img:first').attr('rel'),
                autospin: true,
                spintime: 2000
            }
        }
    );
    
    $('#frames img').click(
        function()
        {
            $('#frames img').removeClass('selected');
            $(this).addClass('selected');
            FitViewer.SetFrame($(this).attr('rel'));
        }
    );
}