-
-
-
-
-
-
-
-
-
-
- var Faceye = {
- version : 1.0,
-
-
-
- httpRequest : function() {
- var xRequest = null;
- if (window.XMLHttpRequest) {
- xRequest = new XMLHttpRequest();
- } else if (window.ActiveXObject) {
- xRequest = new ActiveXObject("MsXml2.XmlHttp");
- }
- return xRequest;
- },
-
-
-
- load : function(src) {
- var headerDom = document.getElementsByTagName('head').item(0);
- var jsDom = document.createElement('script');
- jsDom.type = 'text/javascript';
- jsDom.scr = src;
- headerDom.appendChild(jsDom);
- },
-
-
-
- ajaxLoad : function(src) {
- var xRequest = this.httpRequest();
- xRequest.open('GET',src,true);
- xRequest.send(null);
- var headerDom = document.getElementsByTagName('head')
- .item(0);
- var jsDom = document.createElement('script');
- jsDom.type = 'text/javascript';
- jsDom.language='javascript';
- jsDom.defer=true;
- jsDom.text=xRequest.responseText;
- headerDom.appendChild(jsDom);
-
- }
- };
posted @
2008-07-15 22:00
Winner.Net(2007)
阅读(
691)
评论()
编辑
收藏
举报