I have a line of script that works:
document.getElementById('layername').filters.alpha.opacity = 0;
What I would like to do is pass the variable via a function. Something like this:
function DoIt([COLOR=blue ]nameoflayer[/color]){
document.getElementById(nameoflayer).filters.alpha.opacity = 0
}
Onmouseover="DoIt('layername')"
BUT it doesn't like this, must be the syntax, any ideas?
document.getElementById('layername').filters.alpha.opacity = 0;
What I would like to do is pass the variable via a function. Something like this:
function DoIt([COLOR=blue ]nameoflayer[/color]){
document.getElementById(nameoflayer).filters.alpha.opacity = 0
}
Onmouseover="DoIt('layername')"
BUT it doesn't like this, must be the syntax, any ideas?