# ImageWidth Property The ImageWidth property contains the width of a single animation image. Syntax
    document.all["id_name"].ImageWidth [=long]
Possible Values
    Long value that specifies or retrieves the width of the image.
The property is read/write. Remarks The ImageWidth property must be set to the width of a single animation frame to be able to play back the animation correctly. It indirectly defines how many frames an animation contains. If a new animation with a different frame width is loaded, it will be necessary to update the ImageWidth value - otherwise the animation will look corrupted. Examples The following example reads the ImageWidth property and shows it in an alert window.
    <html>
    <head>
    </head>
    <body>
    <OBJECT id="id_SKAnimateControl" style="width:65px; height:65px;
    border-width:0px; margin-right:0px; margin-bottom:5px;
    margin-top:5px; "
    classid="CLSID:D061BD69-BEDF-4A1C-B890-9D6E784CA25E">
    	<PARAM NAME="ImageFile" VALUE=
    	"skins\default\img\anilogo.png">
    	<PARAM NAME="ImageWidth" VALUE="65">
    	<PARAM NAME="TimerInterval" VALUE="25">
    	<PARAM NAME="UseAlpha" VALUE="0">
    	<PARAM NAME="SrcAlpha" VALUE="0">
    	<PARAM NAME="BackgroundColor" VALUE="0">
    	<PARAM NAME="Transparent" VALUE="0">
    </OBJECT>
    <SCRIPT TYPE="text/javascript">
    function id_SKAnimateControl::Click()
    {
       alert(document.all["id_SKAnimateControl"].ImageWidth);
    }
    </SCRIPT>
    </body>
    </html>
Applies to SiteKiosk v5.0 (and later versions). Back to top