<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
 ul{ list-style-type:none;}
 /*li{float:left;}*/
</style>
</head>

<body>
<!--<div onclick="viewType(this);" >少女时代</li>
    </ul>
</div>
-->

        <div style="width:300px;border:1px solid green;" >asdfasdfasdfasdfasdf</p>
         
        </div>


<script type="text/javascript">
 function setStyleType(event){
 //阻止冒泡调用parent
 var e = (event) ? event : window.event;
 if (window.event) {//IE
  e.cancelBubble=true;
 } else { //FF
  e.stopPropagation();
 }
//alert(e.cancelBubble);
 //alert("33333");
}
 function viewType(obj){
 obj.style.display = 'none';
 //alert("111");
}

var d1 = document.getElementById('test');
//d1.onmouseover = mouseover_x ;
d1.onmouseout = mouseout_x ;
function mouseover_x ( ae ){
 var e = window.event || ae ;
 var s = e.fromElement || e.relatedTarget ;
 if( document.all ){
  if(  !(s == this || this.contains(s))  ){
  alert("IE: 你 in 了 !”");
  }
 }else{
  var res= this.compareDocumentPosition(s) ;
  if(  !(s == this || res == 20 || res == 0 )  ){
  alert("FF: 你 in 了 !");
  }
 }
}

function mouseout_x( ae ){
 var e = window.event || ae;
 var s = e.toElement || e.relatedTarget;
 //var temp = document.getElementById(‘but_temp’);
 if(document.all){
  if( !this.contains(s) ){
  alert('IE: 你 out 了');
   //if(this==getid('gamerboom_rss'))
   //showh('gamerboom_rss','h');
   //else
   //showh('share_box','h');
   //hide(‘gamerboom_rss’);
  }
 }else{
  var res= this.compareDocumentPosition(s) ;
  if( ! ( res == 20 || res == 0) ){
   alert('FF: 你 out 了');
   //if(this==getid('gamerboom_rss'))
   //showh('gamerboom_rss','h');
   //else
   //showh('share_box','h');
  }
 }
}


</script>
</body>
</html>

相关文章:

  • 2021-08-26
  • 2021-06-21
  • 2021-05-22
  • 2022-12-23
  • 2021-06-24
  • 2021-06-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2022-01-19
  • 2021-08-07
相关资源
相似解决方案