// JavaScript Document
function disappear(){
   var floatDiv = document.getElementById("floatDiv"); //找到floatDiv对象
   if(floatDiv == null){alert("找不到对象！"); return;}
   floatDiv.style.display = "none";
}
function getEvent(event,obj){
if(event == null){alert("error!"); return;}
    var scrollHeight = document.documentElement.scrollTop;
    var x =event.clientX;   //当前的鼠标的X坐标
    var y =event.clientY + scrollHeight; //当前的鼠标的Y坐标
	//alert(event.clientX+"::"+event.clientY+"::"+event.x+"::"+event.y);  //IE中两个属性都一样有值：在FF中event.x event.y的值为undefined
var floatDiv = document.getElementById("floatDiv"); //找到floatDiv对象
if(floatDiv == null){alert("找不到对象！"); return;}
//alert("浮动框的高度="+floatDiv.scrollWidth+floatDiv.scrollHeight); //第一次的值都等于0，从第二次开始正常
//BODY的宽度
var width = document.body.scrollWidth;
//BODY的高度
var height = document.body.scrollHeight;
if((x+360 < width)){
     floatDiv.style.top=y+"px";
     floatDiv.style.left=x+"px";

   }else if((x+360 >= width)){
     floatDiv.style.top=y+"px";
	 floatDiv.style.left=x-360+"px";   
	// alert(height+"---"+width +"..."+document.body.clientWidth+":"+document.body.clientHeight); 正常
   }
 floatDiv.style.display="block";
 floatDiv.innerHTML = ""
 if(obj){
     floatDiv.innerHTML = "<img src=\""+obj.src+"\" width=\"360\"/>";
    
 }
}