Welcome to 2PTTechnology Sign in | Join
in Search

RadRotator - Freeze rotation after a certain amount of images

Last post 12-06-2007, 4:09 PM by twaligora. 0 replies.
Sort Posts: Previous Next
  •  12-06-2007, 4:09 PM 91

    RadRotator - Freeze rotation after a certain amount of images

    Keep in mind that rotation begins with 0 so if you have 3 images than stop rotator @ 2

    <script type="text/javascript">

    <%=RadRotator1.ClientID%>.attachEvent("OnClientFrameChanged","FrameChangedHandler");

    function FrameChangedHandler(sender, args)

    {

    //debugger;

    var rotator = sender;

    if (rotator.CurrentFrame == 2)

    {

    rotator.StopRotator();

    rotator.Freeze();

    }

    }

    </script>

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems