|
I am currently making a website and for the navigation bar I have a series of pictures which act as links and was wondering if there is a way that if a certain page is loaded it shows a diffrent picture for the link depending on the url. Eg. the brackets are the links they would go to home (www.something.com) pie (www.something.com/pie)
cheese (www.something.com/cheese)
I would have a picture for each section and if that section (www.something.com/pie) or its subsection (www.something.com/pie/2) was the active page url then a diffrent picture would be displayed. So, is it possible and if so how would I go about doing it? |
|
There is a way to do that with PHP.. EDIT: I found the way to do it in PHP, here's a tutorial on how to do it, it's fairly simple. In HTML you're going to have to make the navigation bar and paste it onto each page, then you'll have to change the link's image manually. So, for instance
If you're on the about page you change the image so that it's highlighted or whatever you want to do with it. :) |
