谷歌代码 Google Codes:如何使用谷歌代码嵌入谷歌试
(2009-11-17 18:49:27)
标签:
雲計算a/h股差價it |
分类: GoogleDocs |
谷歌代码 (Google
Code)是谷歌开放的程式源码予使用者自行设计网页元素以供已用。今天介绍如何使用到谷歌网页元素(Google Web Elements)嵌入谷歌文档(Google Docs)试算表(Spreadsheet)。谷歌网页元素可嵌入在下列元素:
- 日曆(Calender);
- 交談(Conversation);
- 自定义搜索引擎(Custom Search Elements);
- 地图(Maps);
- 新闻(News);
- 投影片(Presentation);
- 试算表(Spreadsheets);
- YouTube 新闻(YouTube News);
以按揭贷款偿还计算器为例,若使用者希望把计算机装入此博客内,则可依从下列步骤:
- 打开按揭贷款偿还计算器试算表;
- 在Share选择Publish as web page;
- 选择Start publishing及Automatically republish when changes are made;
- 复制http://spreadsheets.google.com/pub?key=tSN7Uinb8ZbG-O2_Ge-lOYA&output=html源码;
- 打开谷歌网页元素(Google Web Elements)投影片(Presentation),把http://spreadsheets.google.com/pub?key=tSN7Uinb8ZbG-O2_Ge-lOYA&output=html源码抄進URL內;
- 选择大小(Size)及单元格区域(Cell Range);
- 预览会显示下列源码及嵌入谷歌文档(Google Docs)试算表。
<!-- Google Spreadsheets Element Code --> <iframe frameborder="0" marginwidth="0" marginheight="0" border="0" style="border:0;margin:0;width:500px;height:300px;" src="http://spreadsheets.google.com/pub?output=html&widget=true&single=true&element=true&gid=0&key=tSN7Uinb8ZbG-O2_Ge-lOYA" scrolling="no" allowtransparency="true"></iframe>
前一篇:资产价格波动计算器