I can’t make javascript to get more than one element with the class I specify.. I’m using classes on purpose!! If I have 5 divs with the same class, how should I call them?
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;"
And can I make something like : .getElementsByClassName('new,new2,new3')
If you are able to use jQuery, I would highly recommend it, it makes such things trivial: