![]() |
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): PHP Code:
Code:
function NavRollOver(oTd) {if (!oTd.contains(event.fromElement)) {oTd.bgColor="#1C5780";}} Anthony |
** bump **
No one has an opinion on this ?? |
Well I'm using this one now and it seems just fine:
http://vbulletin.com/forum/showthrea...threadid=38735 |
That would be the non-java one then.
java=0 non-java=1 :up: Thanks for responding, Anthony |
Actually, both pieces of code are JavaScript, the first one is just a simple event handler while the second calls for an entire function.
I'd go for the first one as well. |
Quote:
(ya think maybe that's why no one was responding??) Anyway, I appreciate you taking the time to reply as you not only educated someone, you made the vote 2 - 0, so I think I will also incorporate the first one. thanks guys, Anthony |
First one is what I use, along with an onClick funtion to make the whole area clickable. I can't see the point of going to the trouble of the second way...first way is cleaner and simpler.
|
All times are GMT. The time now is 10:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|