g:background.src Property
Gets or sets the image file used by the g:background element.
This property is read/write.
Syntax
propVal = g:background.src(strSource)
g:background.src(strSource)
= propVal
Parameters
strSource [in]
strSource [out]
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:background element from a gadget script file.
// imgBackground is the value of the 'id' attribute for the g:background element.
imgBackground.src = "https://www.microsoft.com/logo.gif";
// or
imgBackground.src = "..\\aero\&logo.png";
See Also
Reference
Send comments about this topic to Microsoft
Build date: 2/24/2010
Build type: SDK