Steve.

If you look at the source of 2.2, the only reference to addRule() is within
the createCCS() method:

 /* Cross-browser dynamic CSS creation
  - Based on Bobby van der Sluis' solution:
http://www.bobbyvandersluis.com/articles/dynamicCSS.php
 */
 function createCSS(sel, decl, media, newStyle) {
  if (ua.ie && ua.mac) { return; }
  var h = doc.getElementsByTagName("head")[0];
  if (!h) { return; } // to also support badly authored HTML pages that lack
a head element
  var m = (media && typeof media == "string") ? media : "screen";
  if (newStyle) {
   dynamicStylesheet = null;
   dynamicStylesheetMedia = null;
  }
  if (!dynamicStylesheet || dynamicStylesheetMedia != m) {
   // create dynamic stylesheet + get a global reference to it
   var s = createElement("style");
   s.setAttribute("type", "text/css");
   s.setAttribute("media", m);
   dynamicStylesheet = h.appendChild(s);
   if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF &&
doc.styleSheets.length > 0) {
    dynamicStylesheet = doc.styleSheets[doc.styleSheets.length - 1];
   }
   dynamicStylesheetMedia = m;
  }
  // add style rule
  if (ua.ie && ua.win) {
   if (dynamicStylesheet && typeof dynamicStylesheet.addRule == OBJECT) {
    dynamicStylesheet.addRule(sel, decl);
   }
  }
  else {
   if (dynamicStylesheet && typeof doc.createTextNode != UNDEF) {
    dynamicStylesheet.appendChild(doc.createTextNode(sel + " {" + decl +
"}"));
   }
  }
 }


Cheers,
Aran

On Tue, Jun 9, 2009 at 10:46 AM, Steve <[email protected]> wrote:

>
> Can anyone tell me what swfObject 2.0 is looking for here?
>
> Thanks!
>
> Steve
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to