<html>
<head>
<title>updatesite</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>

ArcGIS_Mobile
- 粉丝: 475
最新资源
- 基于Python的热分析及可视化程序开发.pdf
- 面向SPARC多核Linux操作系统的实时性研究.pdf
- 基于静态分析的c语言程序安全验证方法研究.pdf
- 关于机器学习和模式识别的相关笔记
- 北京邮电大学机器学习实验教程
- 北京邮电大学机器学习实验教程
- 全志芯片设备 固件修改工具DragonFrac+详细修改教程说明
- 2016 Byte Cup国际机器学习竞赛
- 运用机器学习技术实现敏感词汇过滤功能
- 本文将详细介绍如何构建一个功能完整的键盘测试工具,包含虚拟键盘、实时统计、打字练习等核心功能,无需任何后端服务或复杂依赖
- 机器学习实现敏感词过滤
- 李宏毅(Hung-yi Lee) 2022年春季机器学习课程,包括课件和作业
- 由「开源前哨」和「CPP 开发者」团队维护更新的 C++ 资源大全中文版,涵盖标准库、Web 应用框架、人工智能、数据库、图片处理、机器学习、日志及代码分析等内容
- github面试试题及答案PDF
- C++ 资源大全中文版,标准库、Web应用框架、人工智能、数据库、图片处理、机器学习、日志、代码分析等 由「开源前哨」和「CPP开发者」微信公号团队维护更新
- 把因果思维融入机器学习中
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



- 1
- 2
- 3
- 4
- 5
前往页