Return to Main Menudzigns by ShivSpacer


Download this Script Free Web Mail - Check/Reply/Compose Paid Custom Scripts
Sign Our GuestBook Deepa's Indian Recipe Cookbook Paid Web Development
Explanation

Posted - February, 2001.
(This Script is Netscape6 Compliant and
Fail-Safe on Netscape4.7)


A small note: My original plan was to update all the DHTML scripts to make them Netscape6 compliant. However, because of other commitments & because I had to move to another Web Host (Be very careful if you ever choose 9 Net Avenue as your Host!! Similar warning is applicable for Host Save! They couldn't transfer my domain to theirs even in 7 days!! Bad part was - they didn't even refund my $34 set-up cost!!).

Now, about this script. Simple but useful (I think!). Here's what it does -

OnMouseOver the table cell background colour changes. Reverts back to original OnMouseOut. You may have seen this effect elsewhere but (possibly) didn't realise, it's so easy & simple! One WARNING though:

It won't work on Netscapes older than version 6. If you are a Netscape user - time you upgraded to version 6 anyway!

The script itself is very simple. Points to remember are:
  1. Because it works on IE4+ & NS6 - the script should sniffed all other browsers. This is achieved through use of DOM norms.
  2. Remember to specify the MouseOut function call colour same as the DEFAULT table cell colour. (In this example, both are #ffffe1).
  3. Finally, insert the MouseOver & MouseOut function calls into each >TD< tags as I have done.

That's it folks! It's all yours if you want it.

Copyright DBS © 1998-2003. All Rights Reserved