Javascript target anchors to apply a css element in IE8

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
bryans
Forum Newbie
Posts: 2
Joined: Tue Sep 22, 2009 9:42 pm

Javascript target anchors to apply a css element in IE8

Post by bryans »

I found some code that I like on suckerfish:target (link to the article: http://htmldog.com/articles/suckerfish/target/). It uses css3 element :target (for the browsers that take css3) and the javascript for IE6/7 but in IE8 this will not work. Here is a link to a page running this script (link: http://htmldog.com/articles/suckerfish/target/example/). If you load that link in any browser except IE8, you will see it works, but not in IE8. Can comeone take a look at this and help me out? Im kinda new to javascript.

--Bryan
Last edited by bryans on Tue Sep 22, 2009 10:07 pm, edited 2 times in total.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Javascript target anchors to apply a css element

Post by josh »

Hey Bryan,

glad to see you signed up :D

Like I was saying it would be helpful if you posted exactly what is not working? Do you get javascript errors? IE supplies very crappy debugging tools for us but there should be a little yellow "warning" icon. I am trying to install IE8 now.
bryans
Forum Newbie
Posts: 2
Joined: Tue Sep 22, 2009 9:42 pm

Re: Javascript target anchors to apply a css element in IE8

Post by bryans »

Josh,

Sorry man, I dont see any errors reporting in IE8.
Post Reply