指定したクラスで複数の要素を取得するJavaScriptを作成できません。意図的にクラスを使用しています。同じクラスのdivが5つある場合、どのように呼び出す必要がありますか?
onmouseover="document.getElementById('logo').style.display='inline';"
onmouseout="document.getElementById('logo').style.display='none';"
onmouseover="document.getElementsByClassName('new')[0].style.MozOpacity=0.4;"
onmouseout="document.getElementsByClassName('new')[0].style.MozOpacity=1;"
そして、私は次のようなものを作ることができます:.getElementsByClassName('new,new2,new3')