craazycanuck
Technical User
Could someone please shed some light on what I am missing to allow this mouseover to function
Thank you in advance
<style type="text/css">
.oneclass { width:40; height:15; background-color:yellow; color:red;}
.anotherclass {width:40; height:15; background-color:red; color:yellow;} </style>
<span id=thisspan class=oneclass onmouseover=somefunction()>button
<script>
somefunction(){
document.all.thisspan.className = anotherclass;
}
</script>
Thank you in advance
<style type="text/css">
.oneclass { width:40; height:15; background-color:yellow; color:red;}
.anotherclass {width:40; height:15; background-color:red; color:yellow;} </style>
<span id=thisspan class=oneclass onmouseover=somefunction()>button
<script>
somefunction(){
document.all.thisspan.className = anotherclass;
}
</script>