[jQuery] Re: Question about jQuery + CSS

2007-04-18 Thread Jeffrey Kretz
: [jQuery] Re: Question about jQuery + CSS You can access the stylesheet object using JavaScript. However, each browser represents CSS rules differently. There is no cross-browser way to access/manipulate the rules. I *had* to manipulate the stylesheet object in Safari to avoid the a:hover

[jQuery] Re: Question about jQuery + CSS

2007-04-18 Thread Brian Cherne
You can access the stylesheet object using JavaScript. However, each browser represents CSS rules differently. There is no cross-browser way to access/manipulate the rules. I *had* to manipulate the stylesheet object in Safari to avoid the a:hover over swf bug... but even Safari represented the ru

[jQuery] Re: Question about jQuery + CSS

2007-04-18 Thread Scott Sauyet
Klaus Hartl wrote: howard chen schrieb: sorry, a:hover is just an example, what i want is to style pseudo class, such as a:visited, a:active etc There are no properties in JavaScript that represent these pseudo classes, thus it cannot be done. However, as long as what you want is not

[jQuery] Re: Question about jQuery + CSS

2007-04-18 Thread Klaus Hartl
howard chen schrieb: sorry, a:hover is just an example, what i want is to style pseudo class, such as a:visited, a:active etc There are no properties in JavaScript that represent these pseudo classes, thus it cannot be done. -- Klaus

[jQuery] Re: Question about jQuery + CSS

2007-04-18 Thread Yansky
You could change stylesheets onmouseover. On Apr 18, 4:28 pm, "howard chen" <[EMAIL PROTECTED]> wrote: > sorry, a:hover is just an example, what i want is to style pseudo > class, such as a:visited, a:active etc > > >>Try > >>jQuery("a").mouseover( function() { $(this).css("fontSize", > >>"20

[jQuery] Re: Question about jQuery + CSS

2007-04-17 Thread howard chen
sorry, a:hover is just an example, what i want is to style pseudo class, such as a:visited, a:active etc Try jQuery("a").mouseover( function() { $(this).css("fontSize", "20px"); } );

[jQuery] Re: Question about jQuery + CSS

2007-04-17 Thread Yansky
Oh wait, disregard my previous attempt. It doesn't remove the css onmouseout. Try this instead: jQuery("a").hover(function(){ $(this).css("fontSize","20px"); },function(){ $(this).css("fontSize", ""); }); On Apr 18, 2:35 pm, "howard chen" <[EMAIL PROTECTED]> wrote: > hody > > 1. How to s

[jQuery] Re: Question about jQuery + CSS

2007-04-17 Thread Yansky
Try jQuery("a").mouseover( function() { $(this).css("fontSize", "20px"); } ); howard chen wrote: > hody > > 1. How to set the css in each() iteration? > > e.g. > > jQuery("a").each(function() { > // change css > > // do the rest > ) > > I don't want to use jQuery("a").css as it as imply