<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> 悬浮信息条 for IE </title>
<meta name="Generator" content="Editplus">
<meta name="Author" content="bailing">
<meta name="Keywords" content="">
<meta name="Description" content="">
<style>
*{font:12px verdana;}
</style>
</head>
<body>
<input type="button" value="显示" onclick="postToBbs();" />
<div style="position:absolute;z-index:1000;width:250px;height:30px; padding:6px;border:1px solid #666;
background:green;color:white;display:none;"
id="tbMsg"><span id="msg">软件详细资料已被复制到粘贴板</span></div>
<script language="javascript" type="text/javascript">
<!--
function postToBbs()
{
fShowWaiting();
window.setTimeout(hiddenMsg,1000);
}
function hiddenMsg()
{
var obj = document.getElementById('tbMsg');
obj.style.display="none";
}
function fShowWaiting(){
try{
var msg = document.getElementById("tbMsg");
var o = get_position();
msg.style.left=o.x;
msg.style.top=o.y;
msg.style.display = "";
}catch(e){
}
}
//预计更改此函数兼容FF
function get_position(){
var e = window.event.srcElement;
var e1=e;
var l=e.offsetLeft;t=e.offsetTop;
while(e=e.offsetParent){t+=e.offsetTop;l+=e.offsetLeft;};
l+=e1.scrollWidth;
t+=e1.scrollHeight;
return {x: l, y: t};
}
//-->
</script>
</body>
</html>
<html>
<head>
<title> 悬浮信息条 for IE </title>
<meta name="Generator" content="Editplus">
<meta name="Author" content="bailing">
<meta name="Keywords" content="">
<meta name="Description" content="">
<style>
*{font:12px verdana;}
</style>
</head>
<body>
<input type="button" value="显示" onclick="postToBbs();" />
<div style="position:absolute;z-index:1000;width:250px;height:30px; padding:6px;border:1px solid #666;
background:green;color:white;display:none;"
id="tbMsg"><span id="msg">软件详细资料已被复制到粘贴板</span></div>
<script language="javascript" type="text/javascript">
<!--
function postToBbs()
{
fShowWaiting();
window.setTimeout(hiddenMsg,1000);
}
function hiddenMsg()
{
var obj = document.getElementById('tbMsg');
obj.style.display="none";
}
function fShowWaiting(){
try{
var msg = document.getElementById("tbMsg");
var o = get_position();
msg.style.left=o.x;
msg.style.top=o.y;
msg.style.display = "";
}catch(e){
}
}
//预计更改此函数兼容FF
function get_position(){
var e = window.event.srcElement;
var e1=e;
var l=e.offsetLeft;t=e.offsetTop;
while(e=e.offsetParent){t+=e.offsetTop;l+=e.offsetLeft;};
l+=e1.scrollWidth;
t+=e1.scrollHeight;
return {x: l, y: t};
}
//-->
</script>
</body>
</html>