12月16日
个性化Google的个性化主页
开发一个模块相当简单,如果你是
豆瓣的用户,想在自己的google主页上显示自己想读的书的列表,那么可以这样做:
1, 先download这个范例模块文件Hello.xml。
2, 然后到豆瓣收藏秀,生成需要的script,就一行。
3, 用这行代码替换Hello.xml里Hello, world!这段字符串;修改一下module元素的title属性,比如改成“我想读的书”。
这样,module文件就做好了。
但是module文件必须通过网络来获取,没有网站怎么办?不要紧,我们有Google Base。
按Google的Guide来吧:
1. Go to http://base.google.com/ and log in to your Google account.
2. Under Post an item, choose Create your own item type.
3. In the Create your own item type field, type "Module", and click Next.
4. In the Title field, type a simple descriptive title such as "Photo Album Module". This is not the same as your module title, nor is it used in your module. Do not provide attributes ("Details") or Labels.
5. Type (or cut and paste) the XML module specification into the Description field.
6. Click Publish, and wait for Google Base to publish your module. Once it is published, Google Base provides an item URL link.
7. Click the item URL link and copy the URL 。
然后,打开你的
google个性化主页,点“添加内容”,最后一项“创建一个部分”,把你考下来的URL贴进去,点开始就OK了。
看看效果? 不错吧:

|
 |