This is my first contact with widget development. I want to develop a simple theme.
I am a fan of credit cards and have multiple credit cards. It is my dream to place a credit card repayment reminder calendar on my blog. So it works togetherMy network refreshThe repayment reminder feature is developed"Credit card repayment reminder calendar"Module.
Now, with the development of the Sohu Open Module as an example, the Sohu Open Module is based on UWA, so it can also be added to netvibes, igoogle, live, and so on.
The principle of this module is: Ask the user to configure the user name for my network refresh, and then transfer the repayment reminder IFRAME.
CodeIs a standard XML format, you can add HTML, JS, CSS and other content, the Code is as follows:
<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 strict // en"
Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>
<HTML xmlns = "http://www.w3.org/1999/xhtml"
Xmlns: widget = "http://www.netvibes.com/ns/">
<Head>
<Title> credit card repayment reminder calendar-mybank </title>
<LINK rel = "icon" type = "image/X-icon" href = "http://www.woshua.com/wsfavicon.ico"/>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Meta name = "author" content = "Gao Fei"/>
<Meta name = "website" content = "http://www.woshua.com/"/>
<Meta name = "Description" content = "credit card repayment reminder calendar is a small reminder plug-in. Every time you open the home page, you can see a repayment reminder, so you don't have to worry about forgetting to pay off! If you do not want others to see your repayment reminder, you can log on to my account and set "only login can view ". "/>
<Meta name = "version" content = "1.0"/>
<Meta name = "keyword" content = "credit card, repayment, reminder, calendar"/>
<Meta name = "screenshot" content = "http://www.woshua.com/alert/gadget.jpg"/>
<Meta name = "thumbnail" content = "http://www.woshua.com/alert/gadget2.jpg"/>
<Meta name = "debugmode" content = "true"/>
<Widget: preferences> <! -- This is the key code that allows users to set user names -->
<Preference type = "text" name = "username" label = "username"/>
</Widget: preferences>
<SCRIPT type = "text/JavaScript">
<! [CDATA [
Widget. onrefresh = showcont;
Widget. onload = showcont;
Function showcont (){
If (widget. getvalue ("username ")){
VaR username = widget. getvalue ("username ");
VaR STR = '<IFRAME frameborder = "0" marginheight = "0" marginwidth = "0" border = "0" name = "woshuaalert" id = "woshuaalert" scrolling = "No "src =" http://www.woshua.com/alert? Username = '+ encodeuricomponent (username) +' "> </iframe> ';
Widget. setbody (STR );
}
}
]>
</SCRIPT>
<Style type = "text/CSS">
# Woshuaalert {overflow: hidden; width: 100%; Height: 230px ;}
</Style>
</Head>
<Body>
<IFRAME frameborder = "0" marginheight = "0" marginwidth = "0" border = "0" name = "woshuaalert" id = "woshuaalert" scrolling = "no" src =" http://www.woshua.com/alert/> </iframe>
</Body>
</Html>
After the development is complete, the application is submitted to the Sohu Open Module. After submission, the Administrator must review it. Otherwise, you can use it only.
You can also add it to: netvibes
Addresses of submitted modules:
Http://ow.blog.sohu.com/widget/2403 can be added to Sohu blog
Http://eco.netvibes.com/widgets/306884 can be addedIgoogle,Live homepage,Netvibes,Dashboard, Opera,Vista desktop
Http://googlemodules.com/module/10893/ can be added to igoogle
Technorati: Open Module widget gadget
Del. icio. us: UWA widget gadget credit card repayment calendar