javascript - Windows Gadget - Text on transparent background -


enter image description here

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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -