CreateBounceSlide Method



 
The CreateBounceSlide method creates a bounce slide effect.


Syntax

    [obj=] SiteKiosk.Effects.CreateBounceSlide()
Return Value
    Returns a BounceSlide object that handles the bounce slide effect.
Remarks
    None.
Examples
    The following example creates a BounceSlide object and starts the slide.

    <div id="sldiv" style="position:absolute;left:0;">
    <img src="myimage.gif" alt="image">
    </div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    myslide = SiteKiosk.Effects.CreateBounceSlide();
    myslide.StartPos = 0;
    myslide.EndPos = 300;
    myslide.Rate = 100;
    myslide.Duration = 2000;
    myslide.OnUpdatePosition = UpdatePosition;
    myslide.Start();
    function UpdatePosition(pos)
    {
       sldiv.style.pixelTop = parseInt(pos);
    }
    </SCRIPT>
    

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

Back to top