Actually it does....see the top of the forum.
Could it have anything to do with the fact that I already assigned a color to it using css. But this loads before the javascript does right...so that couldn't be it...could it?
I am using FireFox so that's probably it. I tried using
<script type=\"text/javascript\">
if( \"#term{$term->tid}\" == location.hash){
document.getElementById(\"term{$term->tid}\").style.color=\"#ff0000\";
}
</script>";
But that didn't work either. When I put the alert in I get a true as...
For my website I had to add javascript with my PHP site in order to get the anchor tag from the current page. This in order to compare it to the id of an <span> tag in the page. Javascript is not my strong side. So of course the script doesn't work.This is the problem:
Here is my...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.