I got a simple problem here. what I want is when I recieve message from the user the links must be color blue, then if I read it it must change into a color red, then when they reply again, there message must turn into un-visited again or the message must turn to color blue.

its like...

if(message == read){

            color: red;
}else{ color: blue}

the basic logic must be like this..

please help.

Following your pseudo logic, closest answer would be

if (refreshed == TRUE)
{
    revertColor(red)
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.