Resize Method



 
The Resize method resizes the picture.


Syntax

    document.all["id_name"].Resize(width, height)
    
Parameters
    width Long value that contains the new width.
    height Long value that contains the new height.
Return Value
    None.
Remarks
    None.
Examples
    The following example resizes the picture.

    <html>
    <head>
    <SCRIPT TYPE="text/javascript">
    function Resize()
    {
       document.all['SKPictureControl'].Resize(200, 200);
    }
    </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:Resize();">Resize</a>
    </body>
    </html>

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

Back to top