JS または CSS を使用して div のカーソルのスタイルを動的に変更するにはどうすればよいですか? 複数の状況があるため...以下のコードを試しました:
div.addEventListener("mouseover", function(evt) {
if (tool == "BC"){
div.style.cursor = "url(/icons/bc.cur)";
}
if (tool == "pan"){
div.style.cursor = "url(/icons/pan.cur)";
}
}