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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

Simple file compression in C -

php - Sorting an multidimension array using usort fails -