The form of automatic zooming in the picture of the mouse roller movement

xiaoxiao2021-03-06  43

Function bbimg (o) {

Var zoom = parseint (O.Style.Zoom, 10) || 100; // If Style.Zoom is NULL, it is 100, otherwise the value of Style.Zoom

ZOOM = Event.wheeldelta / 12; // According to the direction of the scrolling, zoom adds 10 or minus 10

IF (zoom> 0) o.Style.Zoom = zoom '%'; // Put Zoom's value Style.Zoom

Return false; // Return

}

转载请注明原文地址:https://www.9cbs.com/read-86825.html

New Post(0)