Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by fsfl2k fsfl2k is offline
Developer Last Online: Jan 2004 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-01-2002 Last Update: Never Installs: 0
 
No support by the author.

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:
onMouseover="this.style.backgroundColor='#F1F1F1';"
onMouseout="this.style.backgroundColor='#13486D';" 
Code:
function NavRollOver(oTd) {if (!oTd.contains(event.fromElement)) {oTd.bgColor="#1C5780";}}
  function NavRollOut(oTd) {if (!oTd.contains(event.toElement)) {oTd.bgColor="#13486D";}}
thanks,
Anthony

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-02-2002, 02:10 PM
fsfl2k fsfl2k is offline
 
Join Date: Dec 2001
Location: Denton, Tx (north of Dallas/Ft.Worth)
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

** bump **

No one has an opinion on this ??
Reply With Quote
  #3  
Old 02-02-2002, 06:37 PM
JTMON's Avatar
JTMON JTMON is offline
 
Join Date: Oct 2001
Posts: 279
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I'm using this one now and it seems just fine:

http://vbulletin.com/forum/showthrea...threadid=38735
Reply With Quote
  #4  
Old 02-02-2002, 07:34 PM
fsfl2k fsfl2k is offline
 
Join Date: Dec 2001
Location: Denton, Tx (north of Dallas/Ft.Worth)
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would be the non-java one then.

java=0 non-java=1 :up:

Thanks for responding,
Anthony
Reply With Quote
  #5  
Old 02-03-2002, 08:56 AM
Kaffeerappel Kaffeerappel is offline
 
Join Date: Nov 2001
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 02-03-2002, 01:44 PM
fsfl2k fsfl2k is offline
 
Join Date: Dec 2001
Location: Denton, Tx (north of Dallas/Ft.Worth)
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Kaffeerappel
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.
Well see .... that just proves my "noob-iness". I had no clue that they were both javascript.
(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
Reply With Quote
  #7  
Old 02-25-2002, 04:44 AM
jcroft jcroft is offline
 
Join Date: Nov 2001
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04631 seconds
  • Memory Usage 2,255KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete