<script type="text/javascript">
function showinfo(index)
{
if(index=="0")
{
pie1info.className="vshow";
pie1info.style.left=get_left(document.getElementById("imgOS"))+150;
pie1info.style.top=get_top(document.getElementById("imgOS"))-10;
}
else
{
pie2info.className="vshow";
pie2info.style.left=get_left(document.getElementById("imgCPU"))+150;
pie2info.style.top=get_top(document.getElementById("imgCPU"))-10;
}
}
function hideinfo()
{
pie1info.className="vhide";
pie2info.className="vhide";
}
function get_top(obj)
{
var nleft=0;
var ntop=0;
var o=obj;
while(o!=document.body)
{
nleft+=o.offsetLeft;
ntop+=o.offsetTop;
o=o.offsetParent;
}
return ntop;
}
function get_left(obj)
{
var nleft=0;
var ntop=0;
var o=obj;
while(o!=document.body)
{
nleft+=o.offsetLeft;
ntop+=o.offsetTop;
o=o.offsetParent;
}
return nleft;
}
</script>