Displaying 4 results from an estimated 4 matches for "cssrules".
2006 Feb 16
3
Retrieve a property defined in a css
Hi all,
I have a property, defined in an external stylesheet:
.my_class {
   background-color: #FF0000;
}
I want to retrieve the value of this background-color of the class my_class.
How can I do that with prototype/scriptaculous ?
Thanks in advance,
Nicolas Terray
2006 Jun 13
0
Code comments?
...lectorUpdate2:        function(sSelector, sProperty, sValue) {
// Update the property value for a specific sSelector in a stylesheet
            for(var i = 0; document.styleSheets.length > i; i++) { //
Mozilla
                var oRules = document.styleSheets[i].rules ||
document.styleSheets[i].cssRules;
                for(var j = 0; oRules.length > j; j++)  {
                    var sSelectors = oRules[j].selectorText;
// string of all selectors on this line
                    var aSelectors = sSelectors.split('','');
// separate all selectors
                    for(var k=0;...
2006 Jan 31
5
resizing multiple images using getElementsByClassName
I am building a iPhoto like (Read rip-off) interface for thumbnails  
and I am having a couple problems that I thought some one on the list  
might be able to assist me on ...
first off here is the page: http://v4.incontrolsolutions.com/galltest/
I am no Javascript whizz and I am sure there is a FAR more efficient  
way to do what I am trying. Having said that, the 2 things I was  
looking for
2008 May 30
7
Styling an Anchor Tag With Prototype
I have a question: How do you style the various components of the
anchor tag? I am doing it this way:
$$(''a:link,a:visited'').each(function(link){	//links
	link.setStyle({ color: ''#''+$F(''cp4_Hex'') });
});
$$(''a:hover'').each(function(link){	//links
	link.setStyle({ color: ''#''+$F(''cp5_Hex'')