FitPhoto Developer Documentation

Flash call to action example

Example

Javascript Code

window.onload = function()
{
    FitPhoto.create(
        'myFitPhoto',
        {
            width:315,
            callToActionLabel: 'BUY NOW >',
            onCallToActionClick: function(pSkunumber)
            {
                alert('Call to action element is clicked with skunumber "' + pSkunumber + '"');
            }
        }
    );
    
    $('#frames img').click(
        function()
        {
            $('#frames img').removeClass('selected');
            $(this).addClass('selected');
            FitPhoto.tryOn($(this).attr('rel'));
        }
    );
}

CSS Code