[Javascript] FireFox Question
Terry Riegel
riegel at clearimageonline.com
Sat Nov 8 14:32:38 CST 2008
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);
Thanks in advance for any help given,
Terry Riegel
On Nov 8, 2008, at 1:35 PM, java.script wrote:
> Look at one of the rounded corner plugins for JQuery and see how
> they do
> it. All of them are cross browser.
>
> Steve 'Cutter' Blades
> Adobe Certified Expert
> Advanced Macromedia ColdFusion MX 7 Developer
> ____________
> http://blog.cutterscrossing.com
>
> "The best way to predict the future is to help create it"
>
> Terry Riegel wrote:
>> Hello everyone,
>>
>> I have the following test code.
>>
>>
>>
>>
>>
>>
>> This is the test paragraph.
>> Get CSS attributes> BUTTON>
>> This is the test paragraph1.
>> Get CSS attributes1> BUTTON>
>>
>>
>>
>> I am doing this in IE only. My end goal is to build a rounded corner
>> plug in for IE, all the other browsers support this natively so
>> getting my "fix" to work with other browsers is not necessary.
>>
>> If I click on the button using the inline style="" tag the cssText
>> property returns my styles, but if I move the styling to the head
>> section then the cssText is empty.
>>
>> Any ideas on how I can determine the css properties for the second
>> paragraph?
>>
>> Test page can be found at...
>> http://clearimageonline.com/playground/roundedcorners/cssText.html
>>
>>
>>
>> Thanks,
>>
>> Terry Riegel
>> _______________________________________________
>> Javascript mailing list
>> Javascript at lists.evolt.org
>> http://lists.evolt.org/mailman/listinfo/javascript
>>
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
More information about the Javascript
mailing list