Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Reference
Send comments about this topic to Microsoft
Build date: 2/24/2010
Build type: SDK