SiteKiosk Documentation
One Step Back

Effects Object




The Effects object permits creating slide effect objects.


Members Table

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

    Members
    MethodsDescription
    CreateBounceSlideCreates an object that controls a bounce slide effect.
    CreateSmoothSlideCreates an object that controls a slide effect.

Remarks
    This object is available through the main object SiteKiosk. Use the Effects object to create a 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.
Examples
    The following example creates a SmoothSlide 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.CreateSmoothSlide();
    myslide.StartPos = 0;
    myslide.EndPos = 200;
    myslide.Rate = 100;
    myslide.Duration = 2000;
    myslide.OnUpdatePosition = UpdatePosition;
    myslide.Start();
    function UpdatePosition(pos)
    {
       sldiv.style.pixelLeft = parseInt(pos);
    }
    </SCRIPT>
    

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

Back to topBack to top

© 1997-2011 PROVISIO - Aventura, USA & Muenster, Germany -