Menu
i use this script, several times on 1 page
[code=html]
onmouseover=”this.style.MozOpacity=1;this.filters.alpha.opacity=100″
onmouseout=”this.style.MozOpacity=0.5;this.filters.alpha.opacity=50″
what can i chage it to to get it as a function instead?
i tried this
[code=html]
<script type=”text/javascript”>
function fadeover() {
this.style.MozOpacity = “1”;
this.filters.alpha.opacity = “100”;
}
function fadeoff() {
this.style.MozOpacity = “0.5”;
this.filters.alpha.opacity = “50”;
}
</script>
i get error this.style is null or not an object