locked
Sidebar Gadgets: g:background Properties Completely Disfunctioning RRS feed

  • Question

  • This simple HTML renders absolutely nonsense in regard to the applied shadow effect:

    <html>
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    	<title>Untitled Page</title>
    </head>
    
    <script type="text/javascript">
    
    	var curVal = 0, inc = 1;
    
    	function blend()
    	{
    		var bg;
    
    		bg = document.getElementById("imgBackground");
    		bg.addShadow("green", curVal, 100, 5, 5);
    
    		if ((curVal += inc) % 5 == 0) inc = -inc;
    
    		document.getElementById("content").innerText = curVal;
    	}
    	
    </script>
    
    <body onload="setInterval(blend,300);" style="background-color: red; width: 120px; height: 120px">
    Test
    	<g:background id="imgBackground" src="Test.png">
    	Tast
    		<span id="content" />
    	</g:background>
    </body>
    </html>
    



    Is it just a bad implementation of <g:background>? ...or is it me?
    Thursday, January 14, 2010 5:25 AM

All replies

  • Hi there,

    This forum is related to Windows SideShow development, not Windows Sidebar.

    Windows SideShow relates to displaying content on external devices, whereas Windows Sidebar gadgets exist on a Windows Vista / Windows 7 desktop.

    Please repost your queries to: http://social.msdn.microsoft.com/Forums/en-US/sidebargadfetdevelopment/

    Regards, -james
    -james (Ikanos Consulting)
    Thursday, January 14, 2010 2:48 PM
  • Hi James,

    as I said, thanks for you hint! Actually that's what I did. But unfortunately that forum isn't monitored and I don't get answers there.

    So I'm roaming around in different forums to possibly find answers there.

    I don't understand why that forum isn't monitored. Doesn't Microsoft support gadget development? Hmm...
    Thursday, January 14, 2010 4:02 PM
  • No. I've quit working with Gadgets.

    If Microsoft doesn't want programmers to program their own, then why should programmers tend to waste their time with them...

    Monday, September 20, 2010 3:50 PM