This Domain(Admin5.com) is for Sale:

js技巧收集(200多个)

时间:2007-12-27  来源:不详  作者:林子

<TelePhone>(0989)8888888</TelePhone>
<Grade>五星级</Grade>
</Hotel>
<Hotel>
<Name>五湖宾馆</Name>
<Address>东平路99号</Address>
<HomePage>www.wuhu.com.cn</HomePage>
<E-Mail>web@wuhu.com.cn</E-Mail>
<TelePhone>(0979)1111666</TelePhone>
<Grade>四星级</Grade>
</Hotel>
<Hotel>
<Name>“大沙漠”宾馆</Name>
<Address>留香路168号</Address>
<HomePage>www.dashamohotel.com.cn</HomePage>
<E-Mail>master@dashamohotel.com.cn</E-Mail>
<TelePhone>(0989)87878788</TelePhone>
<Grade>五星级</Grade>
</Hotel>
<Hotel>
<Name>“画眉鸟”大酒店</Name>
<Address>血海飘香路2号</Address>
<HomePage>www.throstlehotel.com.cn</HomePage>
<E-Mail>chuliuxiang@throstlehotel.com.cn</E-Mail>
<TelePhone>(099)9886666</TelePhone>
本文来自织梦

<Grade>五星级</Grade>
</Hotel>
</HotelList>
</XML>

织梦内容管理系统

</body>
</HTML> //xml数据岛中添加记录

dedecms.com


-------------------------------
The following list is a sample of the properties and methods that you use to access nodes in an XML 织梦内容管理系统

document.

织梦内容管理系统

Property/ Method Description
XMLDocument Returns a reference to the XML Document Object Model (DOM) exposed by the object. copyright dedecms

documentElement Returns the document root of the XML document.
childNodes Returns a node list containing the children of a node (if any).
item Accesses individual nodes within the list through an index. Index values are zero-based, so

内容来自dedecms

item(0) returns the first child node.
text Returns the text content of the node. 织梦好,好织梦

The following code shows an HTML page containing an XML data island. The data island is contained within

dedecms.com

the <XML> element.

织梦好,好织梦

<HTML>
<HEAD>
<TITLE>HTML with XML Data Island</TITLE>
</HEAD>
<BODY>
<P>Within this document is an XML data island.</P> 织梦好,好织梦

<XML ID="resortXML">
<resorts>
<resort code='1'>Adventure Works</resort>
<resort>Alpine Ski House</resort>
</resorts>
</XML>

copyright dedecms

</BODY>
</HTML>
For an example, you can cut and paste this sample line of code: 织梦好,好织梦

resortXML.XMLDocument.documentElement.childNodes.item(1).text//读取页面上的XML数据岛中的数据
resortXML.documentElement.childNodes.item(0).getAttribute("code")//读取页面上的XML数据岛中的数据
resortXML.documentElement.childNodes[0].getAttribute("code")//读取页面上的XML数据岛中的数据

内容来自dedecms

199.模式窗口
父窗口
var url="aaa.jsp";
var 织梦好,好织梦

data=showModalDialog(url,null,"dialogHeight:400px;dialogHeight:600px;center:yes;help:No;status:no;resizab 内容来自dedecms

le:Yes;edge:sunken");
if(data)
alert(data.value);

看完这篇,您有何感觉呢?

文章评论

共有位Admini5网友发表了评论 查看完整内容

24小时热门信息