Posts: 239
Location: print_r($serbia);
|
Quote:
Originally Posted by stivens
im not very sure if this is even possible and if it is a php topic or JS topic?
|
A little bit of both.
It depends on how you want to do it.
You need to have that note state stored somewhere so you can compare it.
It can be done with cookies, session or mysql.
Choose what best suits you, i would do it with cookies.
After you store that note ID for example, and it's state, you can write a javascript and change it's state once the user has view it.
Then you can easily change that note css class.
|