// JavaScript Document //Yulie Great //ie7 fix function moveBox(){ var hoverBox = document.getElementById("hoverBox"); var currentId = document.getElementById("current"); hoverBox.style.display = "block"; var currentPos = currentId.offsetLeft; var currentWidth = currentId.offsetWidth; hoverBox.style.left = currentPos +'px'; hoverBox.style.width = currentWidth +'px'; } moveBox();