jesse.bo
05-05-2006, 03:32 PM
ok, I've got my CSS rollover navigation working just great.
I want it, however, to somehow check to see what the current page is and give the corresponding image an "in" state.
I would just change that for each page, however, the navigation is, of course in my header file, so that isn't possible.
Is there any sort of php go around so I can put in an if statement to tell the navigation to keep one clicked in?
Here's the code for the stylesheet:
#products{
height: 20px;
width: 85px;
text-indent: 10000px;
overflow: hidden;
background: url(/images/nav/products.gif) top left no-repeat;
display: block;
}
#products:hover{
background-position: bottom left;
}
and here's the code for the corresponding nav button:
<a href="#" id="products">Home</a>
Thanks for the help
Jesse
www.coasttravelmugs.com (http://www.coasttravelmugs.com)
I want it, however, to somehow check to see what the current page is and give the corresponding image an "in" state.
I would just change that for each page, however, the navigation is, of course in my header file, so that isn't possible.
Is there any sort of php go around so I can put in an if statement to tell the navigation to keep one clicked in?
Here's the code for the stylesheet:
#products{
height: 20px;
width: 85px;
text-indent: 10000px;
overflow: hidden;
background: url(/images/nav/products.gif) top left no-repeat;
display: block;
}
#products:hover{
background-position: bottom left;
}
and here's the code for the corresponding nav button:
<a href="#" id="products">Home</a>
Thanks for the help
Jesse
www.coasttravelmugs.com (http://www.coasttravelmugs.com)