[Javascript] FireFox Question

Roger Roelofs rer at datacompusa.com
Sat Nov 8 15:59:03 CST 2008


Terry,

Terry Riegel wrote:
> Thanks for the info on jquery. It isn't quite what I was looking for.  
> I found the following code that gets what I need for IE...
>
> document.styleSheets[t].rules[i].style....
>
> Now I have another question regarding FireFox. Firefox uses a CSS  
> property called...
>
> -moz-border-radius-topleft
>
> and I know its value via...
>
>
> alert(document.styleSheets[t].cssRules[i].style.cssText);
>
> Does anyone know how to get at its value via javascipt?
>
> I have tried all the variations of -moz-border-radius-topleft that I  
> can think of like...
>
> alert(document.styleSheets[t].cssRules[i].style.MozBorderRadiusTopleft);
>   
>>>
>>> Test page can be found at...
>>> http://clearimageonline.com/playground/roundedcorners/cssText.html
>>>       
It's your lucky day.  this came up on StackOverflow recently

Try  document.styleSheets[t].cssRules[i].style.MozBorderRadius ||

See:
http://stackoverflow.com/questions/18077/the-best-way-of-checking-for-moz-border-radius-support

-- 
Roger Roelofs
Datacomp Appraisal Services
3215 Eaglecrest, NE            E: rer at datacompusa.com
Grand Rapids, MI  49525        W: http://www.datacompusa.com




More information about the Javascript mailing list