![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
| Hi there, | | I am a relative CSS & JavaScript novice and I have a particular | problem that is beyond my level of knowledge so I thought I'd tap the | collective wisdom of this group. | | I would like to know if there is a means of writing JavaScript that | will dynamically display the styles which are currently applied to any | DOM element on a web page ( i.e., those applied by ID, those applied | by class, etc.) as the user moves their mouse over them. | | Ideally the styles would be displayed in a tooltip style pop-up layer | which would remain displayed until the user mouses off the element. | But how exactly the styles are displayed is not critical. The idea is | that the web page itself would act as a sort of live stylesheet | reference, dynamically revealing to the user which styles are being | applied to which elements, allowing a stylesheet author to know which | styles they need to customize to affect a given element. | | I would greatly appreciate any help or suggestions you may have on how | this can be achieved in a way that will work consistently in most | popular modern browsers. | | Many thanks in advance. |
#3
| |||
| |||
|
|
Ideally the styles would be displayed in a tooltip style pop-up layer which would remain displayed until the user mouses off the element. But how exactly the styles are displayed is not critical. The idea is that the web page itself would act as a sort of live stylesheet reference, dynamically revealing to the user which styles are being applied to which elements, allowing a stylesheet author to know which styles they need to customize to affect a given element. |
#4
| |||
| |||
|
|
On Sep 26, 5:22 am, splounx <splo... (AT) gmail (DOT) com> wrote: Ideally the styles would be displayed in a tooltip style pop-up layer which would remain displayed until the user mouses off the element. But how exactly the styles are displayed is not critical. The idea is that the web page itself would act as a sort of live stylesheet reference, dynamically revealing to the user which styles are being applied to which elements, allowing a stylesheet author to know which styles they need to customize to affect a given element. Firebug's DOM inspector perhaps?http://dorward.me.uk/tmp/ZZ19A0D46F....etfirebug.com/ -- David Dorwardhttp://dorward.me.uk/http://blog.dorward.me.uk/ |
#5
| |||
| |||
|
|
Hi there, I am a relative CSS & JavaScript novice and I have a particular problem that is beyond my level of knowledge so I thought I'd tap the collective wisdom of this group. I would like to know if there is a means of writing JavaScript that will dynamically display the styles which are currently applied to any DOM element on a web page ( i.e., those applied by ID, those applied by class, etc.) as the user moves their mouse over them. Ideally the styles would be displayed in a tooltip style pop-up layer which would remain displayed until the user mouses off the element. But how exactly the styles are displayed is not critical. The idea is that the web page itself would act as a sort of live stylesheet reference, dynamically revealing to the user which styles are being applied to which elements, allowing a stylesheet author to know which styles they need to customize to affect a given element. I would greatly appreciate any help or suggestions you may have on how this can be achieved in a way that will work consistently in most popular modern browsers. Many thanks in advance. |
![]() |
| Thread Tools | |
| Display Modes | |
| |