D
Dr J R Stockton
<URL:http://www.merlyn.demon.co.uk/js-index.htm>, and js-dates.htm, and
some Easter pages, now include <BODY onload="Cuffs()">.
function Cuffs() { var ThisPage, ThisSite, J, DLJ, HREF
ThisPage = location.href.replace(/#.*/, "")
ThisSite = location.protocol + "//" + location.hostname + "/"
for (J in document.links) {
DLJ = document.links[J] ; HREF = DLJ.href
if (!HREF) continue // why an undefined ?
HREF = String(HREF)
if (HREF.indexOf(ThisPage) == 0) DLJ.title = "." ;
else if (HREF.indexOf(ThisSite) == 0) DLJ.title = "+" ;
else if (HREF.indexOf("http://") == 0) DLJ.title = "#" ;
else DLJ.title = "*" } }
Comment on the code or its effect?
Why does HREF = String(HREF) seem needed?
Only tested in XP sp2 IE6 & FF 2.0.0.3.
some Easter pages, now include <BODY onload="Cuffs()">.
function Cuffs() { var ThisPage, ThisSite, J, DLJ, HREF
ThisPage = location.href.replace(/#.*/, "")
ThisSite = location.protocol + "//" + location.hostname + "/"
for (J in document.links) {
DLJ = document.links[J] ; HREF = DLJ.href
if (!HREF) continue // why an undefined ?
HREF = String(HREF)
if (HREF.indexOf(ThisPage) == 0) DLJ.title = "." ;
else if (HREF.indexOf(ThisSite) == 0) DLJ.title = "+" ;
else if (HREF.indexOf("http://") == 0) DLJ.title = "#" ;
else DLJ.title = "*" } }
Comment on the code or its effect?
Why does HREF = String(HREF) seem needed?
Only tested in XP sp2 IE6 & FF 2.0.0.3.