i have pages set up using css classes for hyperlinks.
a.buttons:link {
etc.
}
i would like to put a second hyperlink class to the page.
say :
a.buttonstwo.link {
etc.
}
if i know what page the view is on, i would be able to assign that class to the particular link. two problems.
i don't know how to determine the page the user is on. and how do i change the class of the hyperlink. i can do this with asp.net using :
request.rawurl to determine the page and
hyperlink1.cssclass = "buttonstwo" for the link switch.
would like to do it without the asp.net or at least know how.
ty.
a.buttons:link {
etc.
}
i would like to put a second hyperlink class to the page.
say :
a.buttonstwo.link {
etc.
}
if i know what page the view is on, i would be able to assign that class to the particular link. two problems.
i don't know how to determine the page the user is on. and how do i change the class of the hyperlink. i can do this with asp.net using :
request.rawurl to determine the page and
hyperlink1.cssclass = "buttonstwo" for the link switch.
would like to do it without the asp.net or at least know how.
ty.