When the mouse moved to the upper DIV display scroll bars

I saw a scroll bar, when the mouse is moved to the div it is shown, that how to achieve it?

You can write code?

Started by Gwendolyn at December 12, 2016 - 9:06 PM

Vertical scroll bar

Posted by Gwendolyn at December 19, 2016 - 9:36 PM

It is best illustrated

Posted by Jennifer at December 31, 2016 - 10:19 PM

Try the following:
<div onmouseover="scroll()" id="panel"></div>
<script>
function scroll(){
document.getElementById("panel").style.overflowY="scroll";
}
</script>

Posted by Quintion at January 11, 2017 - 11:16 PM