[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread Nazgulled
Yes, all I want is to get a color for a specific class in the CSS. Basically is this: I have a class for the links when they are a:link, a:visted and a:active which has color A, then, I have a different class for a:hover which has color B. This way, the links will have different colors when the mo

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread Nazgulled
I think you missunderstood my issue John Resig. Switching style sheets won't help me at all... On Aug 7, 9:42 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > How about this simple stylesheet switcher plugin? That seems to be > close to what you need: > > http://www.kelvinluck.com/article/switch-st

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread Dan G. Switzer, II
>> In IE6/7, some things just don't work correctly if an element isn't in >the >> DOM. Most of these issues are based upon visual aspects of the element. >> Also, the cloneNode method in IE 6/7 also has some issues (see >> http://192.168.1.70/working/jquery/cloneNode_issue.htm ) > >Is that URL a t

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread Dan G. Switzer, II
>You are right, I created the element in the DOM and it worked fine. >However I found this: >http://www.javascriptkit.com/dhtmltutors/externalcss.shtml >And it seems it's exactly what I was looking for in the first place, >but I don't if I should use it as some browsers (though they are less >used

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread Erik Beeson
> In IE6/7, some things just don't work correctly if an element isn't in the > DOM. Most of these issues are based upon visual aspects of the element. > Also, the cloneNode method in IE 6/7 also has some issues (see > http://192.168.1.70/working/jquery/cloneNode_issue.htm ) Is that URL a typo, or

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread John Resig
How about this simple stylesheet switcher plugin? That seems to be close to what you need: http://www.kelvinluck.com/article/switch-stylesheets-with-jquery --John On 8/7/07, Nazgulled <[EMAIL PROTECTED]> wrote: > > You are right, I created the element in the DOM and it worked fine. > However I

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread Nazgulled
You are right, I created the element in the DOM and it worked fine. However I found this: http://www.javascriptkit.com/dhtmltutors/externalcss.shtml And it seems it's exactly what I was looking for in the first place, but I don't if I should use it as some browsers (though they are less used) do n

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread Dan G. Switzer, II
>I'm trying to do that due to this issue: >http://groups.google.com/group/jquery- >en/browse_thread/thread/0a3630dc90b2c10b/1026fc07b5cd587f?#1026fc07b5cd587f > >If you have any other and better solution, I'm all hears :) > >You say the DOM element does not exist, but isn't that what clone is >sup

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread Nazgulled
I'm trying to do that due to this issue: http://groups.google.com/group/jquery-en/browse_thread/thread/0a3630dc90b2c10b/1026fc07b5cd587f?#1026fc07b5cd587f If you have any other and better solution, I'm all hears :) You say the DOM element does not exist, but isn't that what clone is supposed to

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread Nazgulled
About the second one, got it. I guess I'll have to wait for that fix or keep using the code as I have it now. For the first one, that didn't work. Thanks though... On Aug 7, 2:54 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > > I'm having 2 little issues regarding IE6/7 with 2 instructions that >

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread Dan G. Switzer, II
>I'm having 2 little issues regarding IE6/7 with 2 instructions that >seem to work just fine in most browsers but not in IE6/7. > >First one, using clone() method: >$('div#content a').each(function(elem) { > if(elem === 0) { > var color = $(this).clone(false).addClass('content-

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread John Resig
> I'm having 2 little issues regarding IE6/7 with 2 instructions that > seem to work just fine in most browsers but not in IE6/7. > > First one, using clone() method: > $('div#content a').each(function(elem) { > if(elem === 0) { > var color = $(this).clone(false).addClass('

[jQuery] Re: Two IE6/7 issues: clone() & creating DOM element

2007-08-07 Thread Nazgulled
Anyone? :(