var scrollFunc=function(e){
e=e || window.event;
// var t1=document.getElementById("mesid");
alert(11);
// t1.value=map.getZoom();
}
/*註冊事件*/
if(document.addEventListener){
document.addEventListener('DOMMouseScroll',scrollFunc,false);
}//W3C
window.onmousewheel=document.onmousewheel=scrollFunc;//IE/Opera/Chrome
百度地圖鼠標滑輪
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.