Answered
Is there a better way to do this?
I've got a menu I'm programing, but I am starting to forsee
it being a lot of code.. Is there a way to cut down this code
specifically? I've got it so that the alpha level of a button goes
down to 60 onRollOver and the alpha goes back to 100 onRollOut. Is
there a better way to do this? Here is my code:
calendar.onRollOver = function() {
calendar._alpha = 60;
}
calendar.onRollOut = function() {
calendar._alpha = 100;
}
programs.onRollOver = function() {
programs._alpha = 60;
}
programs.onRollOut = function() {
programs._alpha = 100;
}
media.onRollOver = function() {
media._alpha = 60;
}
media.onRollOut = function() {
media._alpha = 100;
}
bios.onRollOver = function() {
bios._alpha = 60;
}
bios.onRollOut = function() {
bios._alpha = 100;
}
serving.onRollOver = function() {
serving._alpha = 60;
}
serving.onRollOut = function() {
serving._alpha = 100;
}
calendar.onRollOver = function() {
calendar._alpha = 60;
}
calendar.onRollOut = function() {
calendar._alpha = 100;
}
programs.onRollOver = function() {
programs._alpha = 60;
}
programs.onRollOut = function() {
programs._alpha = 100;
}
media.onRollOver = function() {
media._alpha = 60;
}
media.onRollOut = function() {
media._alpha = 100;
}
bios.onRollOver = function() {
bios._alpha = 60;
}
bios.onRollOut = function() {
bios._alpha = 100;
}
serving.onRollOver = function() {
serving._alpha = 60;
}
serving.onRollOut = function() {
serving._alpha = 100;
}
