<html>
<head>
<title>Android Development Toolkit update site.</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>@import url("web/site.css");</style>
<script type="text/javascript">
var returnval = 0;
var stylesheet, xmlFile, cache, doc;
function init(){
// NSCP 7.1+ / Mozilla 1.4.1+ / Safari
// Use the standard DOM Level 2 technique, if it is supported
if (document.implementation && document.implementation.createDocument) {
xmlFile = document.implementation.createDocument("", "", null);
stylesheet = document.implementation.createDocument("", "", null);
if (xmlFile.load){
xmlFile.load("site.xml");
stylesheet.load("web/site.xsl");
} else {
alert("Document could not be loaded by browser.");
}
xmlFile.addEventListener("load", transform, false);
stylesheet.addEventListener("load", transform, false);
}
//IE 6.0+ solution
else if (window.ActiveXObject) {
xmlFile = new ActiveXObject("msxml2.DOMDocument.3.0");
xmlFile.async = false;
xmlFile.load("site.xml");
stylesheet = new ActiveXObject("msxml2.FreeThreadedDOMDocument.3.0");
stylesheet.async = false;
stylesheet.load("web/site.xsl");
cache = new ActiveXObject("msxml2.XSLTemplate.3.0");
cache.stylesheet = stylesheet;
transformData();
}
}
// separate transformation function for IE 6.0+
function transformData(){
var processor = cache.createProcessor();
processor.input = xmlFile;
processor.transform();
data.innerHTML = processor.output;
}
// separate transformation function for NSCP 7.1+ and Mozilla 1.4.1+
function transform(){
returnval+=1;
if (returnval==2){
var processor = new XSLTProcessor();
processor.importStylesheet(stylesheet);
doc = processor.transformToDocument(xmlFile);
document.getElementById("data").innerHTML = doc.documentElement.innerHTML;
}
}
</script>
</head>
<body onload="init();">
<!--[insert static HTML here]-->
<div id="data"><!-- this is where the transformed data goes --></div>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Updating the ADT Plugin: 1.Select Help > Software Updates. 2.Select the Available Software tab. 3.Select the checkboxes next to Android DDMS and Android Developer Tools, then click Update. 4.In the resulting Available Updates dialog, ensure that both Android DDMS and Android Development Tools are selected, then click Next. 5.Read and accept the license agreement and then click Finish. This will download and install the latest version of Android DDMS and Android Development Tools. 6.Restart Eclipse.
资源推荐
资源详情
资源评论
收起资源包目录
ADT-0.9.9.zip (8个子文件)
web
site.css 719B
site.xsl 7KB
features
com.android.ide.eclipse.ddms_0.9.9.v201009221407-60953.jar 5KB
com.android.ide.eclipse.adt_0.9.9.v201009221407-60953.jar 5KB
plugins
com.android.ide.eclipse.ddms_0.9.9.v201009221407-60953.jar 2.07MB
com.android.ide.eclipse.adt_0.9.9.v201009221407-60953.jar 6.01MB
index.html 2KB
site.xml 799B
共 8 条
- 1
资源评论
- zhang3521715972014-02-21很好,谢谢分享。 不过要是有中文使用教程就更好了
- nn5230hh2014-04-16不知道怎么用啊
- b22588052012-09-01不太知道怎么使用,有中文的使用说明好了。
程序员小猪
- 粉丝: 3
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功