var scale = 0.5; 
var scaleInterval = 0.1; 
var timeInterval = 10; 
var iZoomInIntervalID = -1; 
var iZoomOutIntervalID = -1; 
var oImg = document.getElementById("imgLogo"); 
oImg.width = oImg.width * scale; 

var oDiv; 
var oLImage; 

oImg.onmouseover = function() { 

if (oDiv) 
{ 
    alert(); 
} 
else 
{ 
    oDiv = document.createElement("div"); 
    oLImage = document.createElement("input"); 
    oLImage.type = "image"; 
    oLImage.src = this.src; 
    oDiv.appendChild(oLImage); 

    oLImage.extOriginalWidth = this.width / scale; 
    oLImage.extOriginalHeight = this.height / scale; 
    oLImage.extCurrentScale = scale; 

    oLImage.width = this.width; 
    oLImage.height = this.height; 

    oDiv.style.border = "1px dashed red"; 

    oDiv.style.position = "absolute"; 
    oDiv.style.posLeft = this.offsetLeft; 
    oDiv.style.posTop = this.offsetTop; 
    oDiv.style.zIndex = 100; 

    oDiv.onmouseout = function() { 
        iZoomOutIntervalID = window.setInterval(zoonOutImgage, timeInterval); 
    }; 

    document.body.appendChild(oDiv); 

    iZoomInIntervalID = window.setInterval(zoonInImgage, timeInterval); 
} 
}; 

function zoonInImgage() 
{ 
    if (oLImage 
        && Math.round(oLImage.extCurrentScale*100) < 100) 
    { 
        oLImage.extCurrentScale += scaleInterval; 
        oLImage.width = oLImage.extOriginalWidth * oLImage.extCurrentScale; 
        oLImage.height = oLImage.extOriginalHeight * oLImage.extCurrentScale; 
    } 
    else if (iZoomInIntervalID != -1) 
    { 
        window.clearInterval(iZoomInIntervalID); 
        iZoomInIntervalID = -1; 
    } 
} 

function zoonOutImgage() 
{ 
    if (oLImage 
        && Math.round(oLImage.extCurrentScale*100) > scale*100) 
    { 
        oLImage.extCurrentScale -= scaleInterval; 
        oLImage.width = oLImage.extOriginalWidth * oLImage.extCurrentScale; 
        oLImage.height = oLImage.extOriginalHeight * oLImage.extCurrentScale; 
    } 
    else if (iZoomOutIntervalID != -1) 
    { 
        oDiv.style.display = "none"; 
        oDiv.removeChild(oLImage); 
        oLImage = null; 
        document.body.removeChild(oDiv); 
        oDiv = null; 

        window.clearInterval(iZoomOutIntervalID); 
        iZoomOutIntervalID = -1; 
    } 
} 


 
<!-- Hide
function killErrors() {
return true;
}
window.onerror = killErrors;
// -->
 


