[jQuery] Re: please support :target

2009-02-24 Thread brian
Doesn't this work? $('#' + location.target).css('background', 'url(fade-yellow.gif)').css('font-weight', 'bold'); On Tue, Feb 24, 2009 at 9:42 AM, dccrowley dccrow...@gmail.com wrote: http://www.w3.org/TR/css3-selectors/#target-pseudo :target makes it very easy to style a part of a page

[jQuery] Re: please support :target

2009-02-24 Thread seasoup
It is possible to write your own selectors. There are a bunch of tutorials around the web. here is one: http://www.coderanch.com/t/121354/HTML-JavaScript/Writing-custom-JQuery-Selectors and here is another: http://www.bennadel.com/blog/1457-How-To-Build-A-Custom-jQuery-Selector.htm Hope they

[jQuery] Re: please support :target

2009-02-24 Thread dccrowley
Thank you! On Feb 24, 5:31 pm, seasoup seas...@gmail.com wrote: It is possible to write your own selectors. There are a bunch of tutorials around the web. here is one:http://www.coderanch.com/t/121354/HTML-JavaScript/Writing-custom-JQue... and here is

[jQuery] Re: please support :target

2009-02-24 Thread dccrowley
Must try this. Thank you for the tip On Feb 24, 5:11 pm, brian bally.z...@gmail.com wrote: Doesn't this work? $('#' + location.target).css('background', 'url(fade-yellow.gif)').css('font-weight', 'bold'); On Tue, Feb 24, 2009 at 9:42 AM, dccrowley dccrow...@gmail.com wrote:

[jQuery] Re: please support :target

2009-02-24 Thread D.Kreft
I think $(window.location.hash) is what you're after here. (https://developer.mozilla.org/en/DOM/window.location) -dan On Feb 24, 8:11 am, brian bally.z...@gmail.com wrote: Doesn't this work? $('#' + location.target).css('background', 'url(fade-yellow.gif)').css('font-weight', 'bold');