Javascript Zoom on different tabs
问题 I have made a simple zoom in and out function with button as well as mousewheel function. The main concept is to limit the maximum zoom level and minimum zoom level. I have successfully made it in two ways BIN 1 BIN 2 But i tried to make this in a tab section with unique ID or by class. My script var zoomLevel = 100; var maxZoomLevel = 150; var minZoomLevel = 50; var initW=0,initH=0; function zoom(zm) { var img=document.getElementById("pic"); if(zm > 1){ if(zoomLevel < maxZoomLevel){