I was wondering if it is possible to do this? Page is in HTML, uses javascript
I have left navgation which uses a style On certain pages I want to use another style so I have created a new class
so what I want to do is:
if page = a
display leftmenu class
else
display
left class
Can someone help me with the code so that it will work?
I always have an
idon thehtmlelement that represents the current page, something like:etc.
With that at hand you can easily accomplish what you’re after using:
Also, leftmenu is a really bad name. What if you want it on the right on the #home-page?