On 29 Oct 98, Gentry Wilson wrote:

> but in
> 2 dif places for a menu on the top (identical to the home page) and on the
> side.  Can anyone help me with this.  Ive been up all night and am getting
> a bit erm, preturbed.  heh.  Also, if anyone knows how to make that JS
> (taken from the MS site and edited) work in NS too, I would be MOST
> appreciative. 

There are several problems with your Jscript (as opposed to Javascript: 
your code is *not* standard Javascript, as you likely know).  First, you're 
defining the same pair of functions twice, when you should only define 
them once; and that (duplicated) pair of functions tells the browser: 
"Change the background color of table cells, in a single row, of a single 
table that has the ID of 'toolbar'."

However, your code has *two* tables with the ID 'toolbar', one with a 
single row and the other with several rows.  This simply won't work.  You 
need to either define a second set of functions for the second table, with 
a different ID specified, or define a single set where the ID is a variable, 
not hard-coded into the function.  Either option gets complicated to 
explain, and in any case I don't use Microsoft's proprietary take on  
Javascript so I'm not up to speed on it.

And this code will not work period in Netscape, because it uses various 
kinds of proprietary MS properties and event handlers.  

I would *strongly* recommend starting over with a generic, cross-browser 
image-rollover script, rather than using code designed to work in one 
context in one version of one browser only.

And yes, as noted in your code comment, your CSS stuff is MS-proprietary 
too.  There's no such thing as 'A:hover' in the specs.  'hover' is a rather 
nonsensical property in any case, because it produces the same effect as 
the 'onMouseover' event handler.  The proper syntax to set link properties 
is A:link { foo }, A:visited { foo }, and so on.


- Brent "fed up to the damn eyeballs and beyond with inter-browser 
bickering and subversion of perfectly good specs and standards" Eades

-----------
Brent Eades, Almonte, Ontario
   E-mail: [EMAIL PROTECTED]
           [EMAIL PROTECTED]
   Town of Almonte site: http://www.almonte.com/
   Business site: http://www.federalweb.com

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to