BounceSlide Object

The BounceSlide object handles the bounce slide effect.

Members Table

    The following table lists the members provided by the BounceSlide object.

    Properties Description
    BounceCount Number of bounces per slide.
    Duration Duration of the slide.
    EndPos End position of the slide.
    Position Position of the slide.
    Rate Rate of the slide.
    StartPos Start position of the slide.
    Methods Description
    Start Starts the slide.
    Stop Stops the slide.
    Events Description
    OnStart Fires when the slide is started.
    OnStop Fires when the slide is stopped.
    OnUpdatePosition Fires when the position changes.

    This object is returned by the CreateBounceSlide method. Use the BounceSlide object to define the settings of the bounce slide effect.

    Note that the path of a file using SiteKiosk objects must be allowed in the
    SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
    if it is not a browser skin file.
    The following example shows the functionality of the bounce slide effect.

    <SCRIPT TYPE="text/javascript">
    myslide = SiteKiosk.Effects.CreateBounceSlide();
    myslide.StartPos = 200;
    myslide.EndPos = 500;
    myslide.Rate = 100;
    myslide.Duration = 2000;
    myslide.OnUpdatePosition = OnUpdatePosition;
    myslide.OnStart = OnStart;
    myslide.OnStop = OnStop;
    function OnUpdatePosition(pos)
    { = parseInt(pos);
    function OnStart()
       id_slst.innerHTML = "Status: started";
    function OnStop()
       id_slst.innerHTML = "Status: stopped";
    function startslide()
    function switchstartend()
       sldummy = myslide.StartPos;
       myslide.StartPos = myslide.EndPos;
       myslide.EndPos = sldummy;
    <table border="0" bgcolor="#ebebeb" width="800" cellspacing="5"
    cellpadding="5" style="font-family:verdana;font-size:8pt;"
    <tr><td bgcolor="f8f8f8">
    The following example shows the functionality of the bounce
    slide effect.
    <tr><td style="font-family:verdana;font-size:8pt;">
    <div id="sldiv" style="position:relative;left:200;">
    <SCRIPT TYPE="text/javascript">
    logosrc = SiteKiosk.SiteKioskDirectory;
    logosrc += "skins/Default/img/background/logo.gif";
    document.writeln("<img src='" + logosrc + "'>");
    <span style="color:#cc3300;" id="id_slst">Status: stopped</span>
    <div align="center">
    <a href="javascript:startslide()">
    Start slide

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top