KeepAspectRatio Property



 
The KeepAspectRatio property indicates whether to keep the ratio of height to width.


Syntax

    document.all["id_name"].KeepAspectRatio [=bool]
    
Possible Values
    Boolean value that specifies or retrieves the keep aspect
    ratio status.

    The property is read/write.
Remarks
    None.
Examples
    The following example shows the KeepAspectRatio property when the link is clicked.

    <html>
    <head>
    <SCRIPT TYPE="text/javascript">
    function ShowProp()
    {
       alert(document.all['SKPictureControl'].KeepAspectRatio);
    }
    </SCRIPT>
    </head>
    <body>
    <OBJECT ID="SKPictureControl" width="100" height="100"
    CLASSID="CLSID:F5996585-1B2B-442C-8185-FCB5ABC71BE2">
      <PARAM NAME="Filename" value="c:\mypic.bmp">
      <PARAM NAME="Stretch" value="0">
      <PARAM NAME="KeepAspectRatio" value="1">
    </OBJECT>
    <br><br>
    <a href="" onclick="javascript:ShowProp();">Show KeepAspectRatio</a>
    </body>
    </html>
    

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

Back to top