喜悦国际村 
» 游客:  注册 | 登录 | 搜索 | 统计 | 喜悦证交所 | 帮助

RSS 订阅当前论坛  

$5.95 Web Hosting     

上一主题 下一主题
 14  2/2  <  1  2 
     
标题: [问题] DOM兼容问题 高手来帮帮忙  
 
dongyue91
新手上路
Rank: 1



UID 86040
精华 0
积分 14
帖子 16
金钱 14 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2007-1-11
来自 辽宁省盘锦市
状态 离线
[广告]: Enom域名自助付费 自助注册 自助PUSH 主流域名COM等一律57.99元年
wzhu 你有相关资料能给一份吗
QQ:76969318
E-Mail:gdygdy_007@163.com
有的话给一份,谢谢
2007-6-12 10:03 AM#11
查看资料  发短消息  QQ  顶部
 
wzhu (wzhu)
版主
Rank: 7Rank: 7Rank: 7
C[A-Z]O


UID 68040
精华 0
积分 47793
帖子 1568
金钱 47770 喜悦币
威望 0
人脉 23
阅读权限 100
注册 2006-1-14
来自 湖北荆州>陕西西安>辽宁 ...
状态 离线
[广告]: 代充Paypal帐号美元
http://cache.baidu.com/c?word=fi ... 0e56&user=baidu

参考一下




<?wzhu
wzhu.print("http://www.cncmm.com");
?>
2007-6-12 11:08 AM#12
查看资料  访问主页  Blog  发短消息  QQ  顶部
 
dongyue91
新手上路
Rank: 1



UID 86040
精华 0
积分 14
帖子 16
金钱 14 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2007-1-11
来自 辽宁省盘锦市
状态 离线
[推荐阅读] 北京高薪招聘php工程师
非常感谢,我也找到几个
2007-6-12 01:43 PM#13
查看资料  发短消息  QQ  顶部
 
km3945 (km3945)
版主
Rank: 7Rank: 7Rank: 7
版主


UID 46538
精华 0
积分 1320
帖子 1284
金钱 1320 喜悦币
威望 0
人脉 0
阅读权限 100
注册 2004-11-8
状态 离线
[推荐阅读] 完了完了....高考失败!


<?php
<html>
<
head>
  <
title>JavaScript and the DOM</title>
  <
script language="JavaScript">
   function 
test() {
    var 
myDocument document;
    var 
htmlElement myDocument.documentElement;

    
alert("The root element of the page is " htmlElement.nodeName);

    var 
headElement htmlElement.getElementsByTagName("head")[0];
    if (
headElement != null) {
      
alert("We found the head element, named " headElement.nodeName);

      var 
titleElement headElement.getElementsByTagName("title")[0];
      if (
titleElement != null) {
        if (
myDocument.all)
        {
             
alert("The page title is '" titleElement.innerHTML "'");
        }
        else
        {
            var 
titleText titleElement.firstChild;
            
alert("The page title is '" titleText.nodeValue "'");
        }
      }

      var 
bodyElement headElement.nextSibling;
      while (
bodyElement.nodeName.toLowerCase() != "body") {
        
bodyElement bodyElement.nextSibling;
      }

      
// We found the <body> element...

      // Remove all the top-level <img> elements in the body
      
if (bodyElement.hasChildNodes()) {
        for (
i=0i<bodyElement.childNodes.lengthi++) {
          var 
currentNode bodyElement.childNodes[i];
          if (
currentNode.nodeName.toLowerCase() == "img") {
            
bodyElement.removeChild(currentNode);
          }
        }
      }
    }
  }
  
</script>
</head>
<body>
  <p>JavaScript and DOM are a perfect match.
     You can read more in <i>Head Rush Ajax</i>.</p>
  <img src="http://www.headfirstlabs.com/Images/hraj_cover-150.jpg" />
  <input type="button" value="Test me!" onClick="test();" />
</body>
</html>
?>




学会用下半身来思考!
2007-6-13 03:50 AM#14
查看资料  Blog  发短消息  QQ  顶部
 14  2/2  <  1  2 
     


  可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题 | 开通个人空间  


 




Powered by Discuz! 6.1.0  © 2001-2010 Comsenz Inc.
Processed in 0.031534 second(s), 6 queries

(冀ICP备05009913号) 管理员:sadly 邮箱/MSN: sadly@phpx.com QQ:824008(长隐) 清除 Cookies - - Archiver - WAP