Didn't want to create a new thread, but i have a new question. What would make:
Code:
<script type="Javascript">
startHover = function() {
if (document.all&&document.getElementById) {
hover = document.getElementsByTagName("div");
for (var i = 0; i < hover.length ; i++) {
if (hover[i].className == " item") {
hover[i].onmouseover = function() {
this.className = " over";
}
hover[i].onmouseout = function() {
this.className=this.className.replace(" over", " item");
}
}
}
}
}
window.onload=startHover;
</script>
Not work in IE6?
The HTML is only
Code:
<div class="item">I love hovers</div>