Export (0) Print
Expand All

g:image.src Property

Gets or sets the image file used by the g:image element.

This property is read/write.

Syntax

propVal = g:image.src(strUNC)

  
g:image.src(strUNC)

   = propVal 

Parameters

strUNC
strUNC

Sets or retrieves a UNC path or a URI.

Remarks

Valid image filetypes are .JPG, .BMP, .GIF, or .PNG.

Special characters in UNC paths should be escaped with a '\'.

Examples

The following example demonstrates how to specify a new image for the g:image element from a gadget script file.

// imgBackground is the value of the 'id' attribute for the g:background element.
var imgSrc = imgBackground.addImageObject(file, intX, intY);
imgSrc.src = "..\\aero\%logo.png";

See Also

g:image
Reference
background
text

 

 

Send comments about this topic to Microsoft

Build date: 2/24/2010

Build type: SDK

Community Additions

Show:
© 2015 Microsoft