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
Javascript target anchors to apply a css element in IE8
Moderator: General Moderators
Javascript target anchors to apply a css element in IE8
Last edited by bryans on Tue Sep 22, 2009 10:07 pm, edited 2 times in total.
Re: Javascript target anchors to apply a css element
Hey Bryan,
glad to see you signed up
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.
glad to see you signed up
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.
Re: Javascript target anchors to apply a css element in IE8
Josh,
Sorry man, I dont see any errors reporting in IE8.
Sorry man, I dont see any errors reporting in IE8.