Rate Property
The Rate property contains the rate of the slide effect.
Syntax
Possible Values
Long value that specifies or retrieves the rate.
|
The property is read/write.
Remarks
Examples
The following example creates a SmoothSlide object and starts the slide redrawing it 100 times a second.
<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 top