有什么组件可以将文档格式化成SWF(FLASH格式) - 企业应用 - New - Jav...
- getXmlBook("../txt/T010106A.xml","A010106A");
-
-
- function getXmlBook(url, name) {
- xmlObj = new XML();
- xmlObj.ignoreWhite = true;
- xmlObj.load(url);
-
- xmlObj.onLoad = function(success) {
- var src ="";
- if (success) {
-
- var temp = xmlObj.cloneNode(true);
-
- temp = getMainDoc(temp,"book",name);
- temp = getMainDoc(temp,"page","classes");
- src = getMainDoc(temp,"line","char");
- url = getMainDoc(temp,"line","image").childNodes;
- } else {
-
- src = "服务器问题请连系工作人员";
- }
- firstLineTxt = src;
- pic01.contentPath = url;
-
- };
- }
-
- function getMainDoc(tree,tager,type){
- var temp1 ;
- for(i in tree.childNodes){
- temp1 = tree.childNodes[i];
- if(temp1.localName == tager
- &&temp1.attributes.type == type){
- return temp1;
- }
- }
- return "没找到标签";
- }
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。