Menu
Hi there,
How would I convert the following code into functions…
[CODE]onMouseOver=”this.style.filter=’alpha(opacity=100)'” onMouseOut=”this.style.filter=’alpha(opacity=50)’;”
Which can then be used like…
[CODE]onMouseOver=”MO();” onMouseOut=”MU();”
I have tried the following, which doesn’t work…
[CODE]funtion MO()
{
this.style.filter=’alpha(opacity=100)’;
}
funtion MU()
{
this.style.filter=’alpha(opacity=60)’;
}
</script>
I have a ton of images on on some pages and would prefer to do it this way if possible, so that I can put it into a .js file and link it to each page.
Thanks very much/…