Private Message Icon in Menu Code:

Global Header:

<script type="text/javascript"><!--
// Originally created by Peter
// Editted by Charles Stover

// Image to show when there are new private messages
var newPM = "URL HERE";

// Image to show when there are no new private messages
var noPM = "URL HERE";

// Don't edit below this line.
var pmLink = document.createElement('a');
var pmImg = document.createElement("img");
var pmCell = document.getElementsByTagName("td").item(2).innerHTML;
pmImg.setAttribute("border", '0');
pmLink.setAttribute("href", "index.cgi?action=pm");
if (pmCell.match(/you have <.+?>, (\d+) /i))
{
    var pms = RegExp.$1;
    pmImg.setAttribute("src", ((pms) newPM : noPM));
    pmImg.setAttribute("title", "You have " + ((pms) ? pms : "no") + " new private message" + ((pms != 1) ? 's' : "") + '.');
    pmLink.appendChild(pmImg);
    document.getElementsByTagName("td").item(5).appendChild(pmLink);
}
//--></script>

Code Database:

If you have a Code Database (a forum that serves as a collection of scripts) on your message board, you may paste the following code into that forum to add it your own code list.

[b]Title:[/b] [url=http://proboards.gamingmedley.com/codes/private-message-icon-in-menu.html]Private Message Icon in Menu[/url]
[b]Creator:[/b] Peter, editted byCharles Stover (a.k.a. GAMEchief, SegaDragon)
[b]Cross-Browser:[/b] Yes
[b]Placement:[/b] Global Header
[code]<script type="text/javascript"><!--
// Originally created by Peter
// Editted by Charles Stover

// Image to show when there are new private messages
var newPM = "URL HERE";

// Image to show when there are no new private messages
var noPM = "URL HERE";

// Don't edit below this line.
var pmLink = document.createElement('a');
var pmImg = document.createElement("img");
var pmCell = document.getElementsByTagName("td").item(2).innerHTML;
pmImg.setAttribute("border", '0');
pmLink.setAttribute("href", "index.cgi?action=pm");
if (pmCell.match(/you have <.+?>, (\d+) /i))
{
    var pms = RegExp.$1;
    pmImg.setAttribute("src", ((pms) newPM : noPM));
    pmImg.setAttribute("title", "You have " + ((pms) ? pms : "no") + " new private message" + ((pms != 1) ? 's' : "") + '.');
    pmLink.appendChild(pmImg);
    document.getElementsByTagName("td").item(5).appendChild(pmLink);
}
//--></script>[/code]