OnStop Event
Fires when the slide is stopped.
Syntax
SmoothSlide.OnStop = handler
|
Remarks
The object that caused the event can be referenced in the event function using "this".
Examples
The following example shows if the slide has been started or stopped.
<div id="txt" style="position:absolute;left:300;">
Slide stopped
</div>
<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.OnStart = Start;
myslide.OnStop = Stop;
myslide.Start();
function UpdatePosition(pos)
{
sldiv.style.pixelLeft = parseInt(pos);
}
function Start()
{
txt.innerHTML = "Slide startet";
}
function Stop()
{
txt.innerHTML = "Slide stopped";
}
</SCRIPT>
|
Applies to
SiteKiosk v5.0 (and later versions).
Back to top