Geocities adds a number of scripts to the pages displayed on its servers. One of these scripts hijacks two commonly used variables (i & j). This breaks any script using i and/or j placed on a page on Geocities. There could be other problems but, to start with, replace:
Code:
function highlighttab(aobject){
if (typeof tabobjlinks=="undefined")
collecttablinks()
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].style.backgroundColor=initTabcolor
var themecolor=aobject.getAttribute("theme")? aobject.getAttribute("theme") : initTabpostcolor
aobject.style.backgroundColor=document.getElementById("tabcontentcontainer").style.backgroundColor=themecolor
}
with:
Code:
function highlighttab(aobject){
if (typeof tabobjlinks=="undefined")
collecttablinks()
for (xdt=0; xdt<tabobjlinks.length; xdt++)
tabobjlinks[xdt].style.backgroundColor=initTabcolor
var themecolor=aobject.getAttribute("theme")? aobject.getAttribute("theme") : initTabpostcolor
aobject.style.backgroundColor=document.getElementById("tabcontentcontainer").style.backgroundColor=themecolor
}
and replace:
Code:
function detectSourceindex(aobject){
for (i=0; i<tabobjlinks.length; i++){
if (aobject==tabobjlinks[i]){
tabsourceindex=i //source index of tab bar relative to other tabs
break
}
}
}
with:
Code:
function detectSourceindex(aobject){
for (xdt=0; xdt<tabobjlinks.length; xdt++){
if (aobject==tabobjlinks[xdt]){
tabsourceindex=xdt //source index of tab bar relative to other tabs
break
}
}
}
Bookmarks