when the mouse is over either txtTimeFrom or txtTimeTo i want the scroll bar to be hidden and and the right margin of the page to be 17px
Here is my javascript code it seems to work fine in firefox but does not work in IE:
window.onload =
function(){ txtTimeTo.onmouseover = function(){DisableScroll();}
txtTimeFrom.onmouseover =
function(){DisableScroll();} txtTimeTo.onmouseout = function(){EnableScroll();}
txtTimeFrom.onmouseout =
function(){EnableScroll();}
}
function DisableScroll()
{
document.body.style.marginRight = '17px';
document.body.style.overflow = 'hidden';
}
function EnableScroll()
{
document.body.style.marginRight =
'0px'document.body.style.overflow = 'visible';
}
Any suggestions
thanks in advance