Make a simple windows 7 gadget
First regarding all what are gadgets? Gadgets are lightweight HTML furthermore script-based applications which can present information or provide functionality from a variety regarding sources such as websites or services. To make a gadget you need toward know the basic regarding HTML.
In this post I am going toward show you how toward make a simple windows 7 gadget. A basic gadget needs an XML file named exactly gadget.xml furthermore an HTML file with the gadget name. Also you can include any pictures needed in the gadget. In this post. I am going toward show you how toward make a simple demo clock gadget which would display time in a simple way. Just follow the steps given furthermore if you know basic HTML you will find it easy toward understand.
Step 1: First regarding all make a new folder at your desktop furthermore rename it anything you want.
Step 2: Put the html file which would be your gadget into the folder furthermore rename the file as the name regarding the gadget. In this case the name would be NXClock.html. The demo code beneficial to the html is given below.
NXClockSub Window_Onloaddocument.body.style.width = 155document.body.style.height = 50document.body.style.margin = 0End SubFunction Clock()box.value = timeX = SetTimeOut("Clock()", 1000)End Functioninput {background-color: #000000;color: #FF0000;text-align: center;font-size: 24pt;}
Step 3: Now save the following code as gadget.xml EXACTLY into the folder you created earlier. Do not name it anything else or the gadget will not work. You must replace the NXClock.html in the code with the name regarding the html file if you are making your own gadget. And you can change the title too.
NXClock 1.0.0.0 Description Full
Step 4: Add the NXClock.html furthermore gadget.xml toward a zip file. Be careful toward add the files toward the zip file, NOT the folder containing them.
Step 5: Now change the extension regarding the zip file toward .gadget. You can either do this by going toward folder options > View furthermore disabling the Hide extensions beneficial to known file types furthermore then changing the extension. Or else you can do it using command prompt.
Step 6: Now you will have ended with a windows gadget file. Open it furthermore click install furthermore if all went right a new gadget would appear at your desktop.