javascript - Trying to get a bit of jQuery to work on IE7 -


This code will be sent to each menu item. NAV is to take in the bar and place them across equally shipping it is currently nothing in IE7.

  $ (document) .ready (function () {var a = $ ('.nav & gt; li & gt; a'). Length; var b = $ ('# navholder ') (Width) - $ ('. NAV '). Width (); var C = (B / A) / 2; $ ('. NAV & gt; Li '). CSS (' margin ',' 0 '+ Math Floor (C3) +' PX ');); Do anyone know?   

Try this:

  var b = $ ('# navholder '). CSS ('width') - $ ('. NAV'). CSS ('width'); Instead of   

:

  var b = $ ('# navholder'). Width () - $ ('. NAV'). Width ();    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -