FitPhoto Developer Documentation

Basic example

Example

Javascript Code

window.onload = function()
{
    FitPhoto = Fb.FitPhoto.GetInstance(
        {
            FitPhoto:
            {
                container: '#myFitPhoto',
                cookieduration: 0
            }
        }
    );
    
    $('#frames img').click(
        function()
        {
            $('#frames img').removeClass('selected');
            $(this).addClass('selected');
            FitPhoto.SetFrame($(this).attr('rel'));
        }
    );
}