Just one remark: I think you better use the CSS
class rather than the
id, because refs to one node can occur more than one time, and the ID attribute is supposed to be unique within one document (at least for well formed (x)html). This is also what
adrianh suggested in his post.
Also, I'm not completely sure about CSS classes consisting of only numbers being legal, so we have:
...posted by <a href="...?node_id=186362"
class="id186362">adrianh</a>...
And in your stylesheet:
.id186362 { background-color: orange; }
As for this idea being expensive at execution time, I hardly doubt so, as the
node_id value should be known at page render time anyway for the
href attribute; printing the same variable a second time should be rather trivial IMHO.
--
Cheers, Joe
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.