fsfl2k
02-01-2002, 04:27 PM
I've seen posts on a couple of different ways to do this effect and have a question conserning the different codes.
Of the two, what is the main difference between the two on performance issues.
Basically, for browser compatibility / easier to incorporate into later modifications or upgrades / server issues? / etc.
OTHER than one is Java script and one is not.
If I can use both, but only need one .... which would be the better overall performer and be the best for visitors.
Here they are (the parts I'm asking about):
onMouseover="this.style.backgroundColor='#F1F1F1';"
onMouseout="this.style.backgroundColor='#13486D';"
function NavRollOver(oTd) {if (!oTd.contains(event.fromElement)) {oTd.bgColor="#1C5780";}}
function NavRollOut(oTd) {if (!oTd.contains(event.toElement)) {oTd.bgColor="#13486D";}}
thanks,
Anthony
Of the two, what is the main difference between the two on performance issues.
Basically, for browser compatibility / easier to incorporate into later modifications or upgrades / server issues? / etc.
OTHER than one is Java script and one is not.
If I can use both, but only need one .... which would be the better overall performer and be the best for visitors.
Here they are (the parts I'm asking about):
onMouseover="this.style.backgroundColor='#F1F1F1';"
onMouseout="this.style.backgroundColor='#13486D';"
function NavRollOver(oTd) {if (!oTd.contains(event.fromElement)) {oTd.bgColor="#1C5780";}}
function NavRollOut(oTd) {if (!oTd.contains(event.toElement)) {oTd.bgColor="#13486D";}}
thanks,
Anthony