Jump to content

colored tr background when not visited


nashsaint

Recommended Posts

If the link fills up the whole tr element (CSS of link set to 100% width and height, basically) You could simply use the CSS pseudo-classes ":link" and ":visited".

 

<style type="text/css">
/* Background color of unvisited link with id="urgent" */
a#urgent:link {
background-color: yellow;
}

/* Background color of visited link with id="urgent" */
a#urgent:visited {
background-color: transparent;
}
</style>

<a id="urgent" href="link_here">Please check this link!</a>

Or, the PHP solution could be done by setting either a cookie or a database entry containing the user IP, on the page you want the user to be sure have visited, and then check for this on the page with the table, and color the background either blank or yellow.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.