分享

实用javascript

 悟静 2013-05-03
  1. 关于div:
  2.  <div><img/></div>    obj=   document.getElementById("divID").getElementsByTagName("img")        
  3. <div><img/><img/><img/><img/></div>       obj[]=document.getElementById("divID").getElementsByTagName("img")  
  4.  height=  document.getElementById("divID").offsetHeight
  5. 动态创建div :div_box = document.createElement("DIV")
                             document.body.appendChild(div_box)
  6.  document.getElementById("rad").checked = "checked"//  ==true/false
  7. if (radioObj [i].checked==true)........
  8. <img onmouseOver="this.src='../images/02.png' ;" inMouseOut=" this.src='../images/002.png' ;" />
  9. <input type="button"   onClick="return confirm('确定删除吗?');" value="删除">
  10. <a  hef="javascript:void(0)" onclick=“”></a>
  11. <asp:button ......onClientOnClick="" ></....>
  12. <input type="text" onFocus=" if (this.vale="输入姓名") this.value=";" value="输入姓名" />
  13. <span onmousemove="this.style.color='#ff00ff'" onmouseout="this.style.color=''">aaaaa</span>this,style.bgcolor=‘grey’
  14. <span onMouseOver="this.style.backgroundColor='red'" onmouseout="this.style.backgroundColor='Blue'">中国人民解放军</span>
  15.  

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多