Hi,
I'm trying to figure out how I can use javascript and css to change the background of a cell in a navigation table when the link in that cell is the current page being viewed.
I'm thinking something like comparing this.href to document.location, but I'm a newbie and can't get beyond that.
Can I create a function up in the head that will loop through all of the links and change the id or class depending on if the url's match?
Thanks a bunch for any suggestions!
I'm trying to figure out how I can use javascript and css to change the background of a cell in a navigation table when the link in that cell is the current page being viewed.
I'm thinking something like comparing this.href to document.location, but I'm a newbie and can't get beyond that.
Thanks a bunch for any suggestions!