You need that dollar sign, a la
if ($.browser.mozilla && $.browser.version < 3.0)

-- Josh


----- Original Message ----- From: <[EMAIL PROTECTED]>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Thursday, June 05, 2008 2:38 PM
Subject: [jQuery] Trying to write a MacFF2 Transparency Fix - Need help with .version



Here is my code:

// Mac FireFox 2 Transparent Background Fix
   if ($.browser.mozilla && (browser.version < 3.0)) {
       $(function(){
           alert('This is FireFox 2!');
           $('body').css('background', 'red');
       });
   }

I think that .version is blowing up the script. Can someone help me
with what I am doing? Lemme know what I missed.

Thanks.

Dave

Reply via email to