Jump to content
php.lv forumi

Nelasītie topiki ar css.


shurix
 Share

Recommended Posts

parādot lasītu:

<div class="topiks">lasīts topiks</div>

Parādot nelasītu:

<div class="topiks nelasits">nelasīts topiks</div>

 

CSS:

.topiks{
/* te aprakstam topika izskatu... */
}
.nelasits{
border-color: #FFCC00; /* Papildus elements, kas izcels nelasīto topiku*/
}

Link to comment
Share on other sites

a {
 color: #00f;
}

a:visited {
 color: #ccc;
}

Šis risinājums visus linkus iezīmēs zilus, bet linkus, kuros tu jau esi kādreiz bijis iegājis (brouzera history), pelēkus.

 

Foruma topiku lasījumiem es gan izvēlētos sekot līdzi servera pusē, piešķirot elementam klasi. Tieši tā, kā ohmygod jau norādija.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...