FitLive Developer Documentation

Menu right example

Example

Javascript Code

window.onload = function()
{
    FitLive = Fb.FitLive.GetInstance(
        {
            FitLive:
            {
                container: '#myFitLive',
                css: '/examples/menuright.css'
            }
        }
    );
    
    $('#frames img').click(
        function()
        {
            $('#frames img').removeClass('selected');
            $(this).addClass('selected');
            FitLive.SetFrame($(this).attr('rel'));
        }
    );
    $('#frames img:first').click();

}

CSS Code

#fittingbox-fitlive #fittingbox-fitlive-menu
{
    float: right;
}

#fittingbox-fitlive #fittingbox-fitlive-menu > ul > li
{
    margin: 0 0 5px 5px;
}