javascript - Windows Gadget - Text on transparent background -

you see problem on text.
i need know, can have g:text or html text on transparent background without pink effect picture.
thanks
this code:
<g:background id="background" src="background.png" > <br><br><br> <g:text value="hello" color="black" >hello data center testing</g:text> <span id="gadgetcontent"> hello, world! </span> </g:background>
you must use g:text display text without magenta artifact. html text doesn't work.
however, when developing gadget found way avoid magenta dynamically add text objects g:background element.
background.addtextobject http://msdn.microsoft.com/en-us/library/windows/desktop/aa359355(v=vs.85).aspx
you can download gadget, , extract source (it's unobfuscated). http://adamncasey.co.uk/gadget.php
however sake of answer being complete, attach onload event, , add of text objects g:background (the g:background defined in html).
function onloadevent() { document.getelementbyid("background").addtextobject("hello data centre testing", "calibri", 20, "black", 25, 25); } window.attachevent("onload", onloadevent); should trick
Comments
Post a Comment