I did a search on this Forum, but couldn't find exactly what I'm after.
I have a page I'm developing and I want it to look different depending on whether an admin person (with editing rights) is using it, or a regular user.
For example, I might have the following:
...and the styles...
...while the admin person is using the application. I want to put a switch on the screen so the admin user can take a look at what the user will see. Basically, when the switch is thrown, I want to change the styles to:
Is this possible? It would be so much easier to do this than to collect all the items with admin classes and switch the display property one-by-one (and likewise for the elements with the class 'user').
Thanks for your time!
--Dave
I have a page I'm developing and I want it to look different depending on whether an admin person (with editing rights) is using it, or a regular user.
For example, I might have the following:
Code:
<input type='text' size='30' value='LookingForInfo' class='admin' /><span class='user'>LookingForInfo</span>
...and the styles...
Code:
.admin{
display:inline;
}
.user{
display:none;
}
...while the admin person is using the application. I want to put a switch on the screen so the admin user can take a look at what the user will see. Basically, when the switch is thrown, I want to change the styles to:
Code:
.admin{
display:[blue]none[/blue];
}
.user{
display:[blue]inline[/blue];
}
Is this possible? It would be so much easier to do this than to collect all the items with admin classes and switch the display property one-by-one (and likewise for the elements with the class 'user').
Thanks for your time!
--Dave