Position Property



 
The Position property contains the position of the slide.


Syntax

    [float=] SmoothSlide.Position
Possible Values
    Float value that retrieves the position.

    The property is read only.
Remarks
    None.
Examples
    The following example creates and starts a SmoothSlide object and stops it at position 50.

    <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.CreateSmoothSlide();
    myslide.StartPos = 0;
    myslide.EndPos = 200;
    myslide.Rate = 100;
    myslide.Duration = 2000;
    myslide.OnUpdatePosition = UpdatePosition;
    myslide.Start();
    function UpdatePosition(pos)
    {
       if (myslide.Position > 50) myslide.Stop();
       sldiv.style.pixelLeft = parseInt(pos);
    }
    </SCRIPT>
    

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

Back to top