473,394 Members | 1,878 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ie and cssText

Hi, is there a way to get the rule text of a rule?

in firefox I have the property cssText of the rule object but in ie I
can only use
the property selectorText that return me the name of the
selector...but for its content?

Thanks
Jan 8 '08 #1
2 5887
On Jan 8, 3:27 am, josh <xdevel1...@gmail.comwrote:
Hi, is there a way to get the rule text of a rule?

in firefox I have the property cssText of the rule object but in ie I
can only use
the property selectorText that return me the name of the
selector...but for its content?
IE thinks cssText is part of style.

Normal:
rule.cssText

IE:
rule.style.cssText

Thanks
Jan 8 '08 #2
On 9 Gen, 00:10, "dhtmlkitc...@gmail.com" <dhtmlkitc...@gmail.com>
wrote:
On Jan 8, 3:27 am, josh <xdevel1...@gmail.comwrote:Hi, is there a way to get the rule text of a rule?
in firefox I have the property cssText of the rule object but in ie I
can only use
the property selectorText that return me the name of the
selector...but for its content?

IE thinks cssText is part of style.

Normal:
rule.cssText

IE:
rule.style.cssText
Thanks
Thanks it works well!
Jan 9 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: relaxedrob | last post by:
Hi All! I have a page with with the following style information: <link rel="stylesheet" type="text/css" href="/eEmployment/eTech.css" /> <style type="text/css"> DIV.Application {...
5
by: googlegroups | last post by:
I have a large table in html created dynamically. This table can grow to several hundred rows or more. I have the ability to hide or display individual rows (using row.style.display = "none") and...
3
by: pantagruel | last post by:
Is there any way to get the value of cssText in the various Gecko browsers when the properties are not themselves understood by the browser. I'm supposing the answer is no but wanted to check.
2
by: Eero Tuomenoksa | last post by:
Hi Does someone knows how i can show/hide multible divs at one click? -- Käytössä Operan vallankumouksellinen sähköpostiohjelma: http://www.opera.com/mail/
3
by: Capricorn | last post by:
Hi, can anybody tell me how you can create a new stylesheet inside a (X)HTML page with JavaScript and Firefox, if the stylesheet is only available as a variable value, like: var CSSStyle =...
8
by: pamelafluente | last post by:
Hi guys, Is it possible to add "onload" (via Javascript) a new class to the <styleheader section? If yes, how would that be done ? <style type="text/css" media="screen"> .NewStyleClass{...
10
by: pamelafluente | last post by:
Hi, this time I am trying to add a style on the fly.I wish equivalency with this one (only the menuItemStyle line): <head> <style type="text/css" media="screen"> ... some static styles ......
3
by: mfc1981 | last post by:
Hi. I need to access to the hover style of an element with javascript. How can i do this? Best regards Manuel
1
by: Jeff | last post by:
In IE you can change a stylesheet rule: rule_reference.style.cssText='color: blue'; but the Moz equivalent appears to be read only, or am I doing this wrong?: rule_reference.cssText='span {...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.