OH MY GOD!!!

Just found this post, been having problems with jQuery and SQF for
ages and, by wrpping it in the $(document).ready(function(){ ... }};
worked a treat.  Inspirational.  Fairly new to jQuery but always had
good results except when it came to SWFObject.

However did you find this, it this something in the jquery manual
about using "other" javascripts that wrapping them like this keeps
jquery in control as it were?

Thankyou!  Looks like I'll be going to bed at a reasonable time
tonight!!!

On Nov 28 2007, 6:13 pm, Jay Fallon <[EMAIL PROTECTED]> wrote:
> Turns out that the swfobject config was wrong to begin with, thus it
> was causing multiple problems. Both scripts, swfobject.js and
> superfish.js are able to work seamlessly and on top of that,
> swfobject.js will not cause any conflicts, and still perfom flash
> detection, if you wrap it in a factory function:
>
> $(document).ready(function(){
>                                 var so = new 
> SWFObject("flash/promo_area.swf", "sotester", "706",
> "155", "7", false);
>                                 so.addParam("menu", false);
>                                 so.addParam("wmode", "transparent");
>                                 so.addParam("FlashVars", 
> "xml_path=/flash/xml_files/my.xml");
>                                 so.addVariable("pageContent", location.href);
>                                 so.write("promo_area");
>                         });

Reply via email to