每个RFC 3261信息头有一个相应的存取标识. 但是,许多信息头拥有同样的形式。 例如。To和From的信息头都是由显示名和一个URI组成。 To和From信息头用来管理与处理NameAddr实例的
源代码在线查看: javascript.js
/* $Id: javascript.js,v 1.1 2003/07/09 01:11:06 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ function toggleBox(szDivID) { if (document.layers) { // NN4+ if (document.layers[szDivID].visibility == 'visible') { document.layers[szDivID].visibility = "hide"; document.layers[szDivID].display = "none"; document.layers[szDivID+"SD"].fontWeight = "normal"; } else { document.layers[szDivID].visibility = "show"; document.layers[szDivID].display = "inline"; document.layers[szDivID+"SD"].fontWeight = "bold"; } } else if (document.getElementById) { // gecko(NN6) + IE 5+ var obj = document.getElementById(szDivID); var objSD = document.getElementById(szDivID+"SD"); if (obj.style.visibility == 'visible') { obj.style.visibility = "hidden"; obj.style.display = "none"; objSD.style.fontWeight = "normal"; } else { obj.style.visibility = "visible"; obj.style.display = "inline"; objSD.style.fontWeight = "bold"; } } else if (document.all) { // IE 4 if (document.all[szDivID].style.visibility == 'visible') { document.all[szDivID].style.visibility = "hidden"; document.all[szDivID].style.display = "none"; document.all[szDivID+"SD"].style.fontWeight = "normal"; } else { document.all[szDivID].style.visibility = "visible"; document.all[szDivID].style.display = "inline"; document.all[szDivID+"SD"].style.fontWeight = "bold"; } } } function changeStyle(what, how) { if (document.getElementById) { document.getElementById(what).style.fontWeight = how; } else if (document.all) { document.all[what].style.fontWeight = how; } } function changeText(where, what) { if (document.getElementById) { document.getElementById(where).innerHTML = what; } else if (document.all) { document.all[where].innerHTML = what; } }