logo

New Response

« Return to the main article

You are replying to:

  1. Small change, but well get it working i firefox...

    var noDocumentsFound; var tagH2, textH2;

    if (document.getElementsByTagName) { noDocumentsFound = document.getElementsByTagName("H2"); } else if (document.body.all){ noDocumentsFound = document.body.all.tags("H2"); } for (var i = 0; i < noDocumentsFound.length; i++){ tagH2 = noDocumentsFound[i]; if (document.getElementsByTagName) { textH2 = tagH2.innerHTML; } else if (document.body.all){ textH2 = tagH2.innerText; } if (textH2.toLowerCase() == "no documents found"){ tagH2.innerHTML = '<BR><FONT SIZE=2 FACE="Arial" Color =#00673>Nothing found. Please search again.</FONT>'; } tagH2.style.display = "block"; }

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: