- Introduction to the Gadget Platform
- Developing a Gadget for Windows Sidebar
- Build Your Own Windows Vista Sidebar Gadget
- Navigate to C:\Users\YourUserName\AppData\Local\Microsoft\Windows Sidebar\Gadgets
- Create a folder called HelloWorld.gadget
- In the folder create a file called gadget.xml and helloworld.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <?xml version="1.0" encoding="utf-8"?><gadget> <name>Hello World</name> <version>1.0.0.0</version> <author name="Your name"> </author> <copyright>© 2010</copyright> <description>This gadget says hello!</description> <hosts> <host name="sidebar"> <base type="HTML" apiVersion="1.0.0" src="helloworld.html"/> <permissions>Full</permissions> <platform minPlatformVersion="1.0"/> </host> </hosts></gadget> |
1 2 3 4 5 6 7 8 9 10 11 12 13 | <html><script type="text/javascript">function DoInit() { document.body.style.width = 90; document.body.style.height= 55; document.body.style.margin=0;}</script><body onload="DoInit();"><br><center>Hello World!</center></body></html> |
0 komentar:
Posting Komentar