Используйте вот эти функции
sID - ID ссылки, например "navSalesProcess"
sText - новый текст
// *
function SetNavBarItemText(sId, sText)
{
if (sId == null || sId == '' || sText == null || sText == '') return;
var oItem = document.all(sId);
if (oItem == null) return;
var nobr = oItem.getElementsByTagName('NOBR');
if (nobr == null || nobr.length != 1 || nobr[0] == null) return;
nobr[0].innerText = sText;
}
// *
function SetNavBarItemTitle(sId, sText)
{
if (sId == null || sId == '' || sText == null || sText == '') return;
var oItem = document.all(sId);
if (oItem == null || oItem.title == null) return;
oItem.title = sText;
}
Последний раз редактировалось EvgenijM; 15.10.2007 в 01:07.
|