Harlem Of Nem
08-05-2007, 05:36 PM
I have had the following code input on my website.....:
<script>
var statusMessage = 'Welcome to Nemesis Clan!';
window.status = statusMessage;
var tCell= document.getElementsByTagName('TD');
for (i=0;i<tCell.length;i++){
if (tCell[i].className=="row4"){
if (tCell[i].innerHTML.match("showforum=")){
tCell[i].onmouseover=function(){this.style.backgroundColor="#330000";this.style.cursor='hand';window.status=this.getElementsByTagName('a')[0].innerHTML;}
tCell[i].onmouseout=function(){this.style.backgroundColor="";window.status=statusMessage;}
tCell[i].onclick = function(){location = this.getElementsByTagName('a')[0].href;}
}}}
var tCell2= document.getElementsByTagName('TD');
for (i=0;i<tCell.length;i++){
if (tCell2[i].className=="row4"){
if (tCell2[i].innerHTML.match("showtopic=")){
tCell2[i].onmouseover=function(){this.style.backgroundColor=" #330000";this.style.cursor='hand';}
tCell2[i].onmouseout=function(){this.style.backgroundColor=""}
tCell2[i].onclick = function(){location = this.getElementsByTagName('a')[0].href;}
}}}
</script>
.....for quite a while, but when i updated my explorer to IE7 the code would not work on the new browser but it works on any other... Is there anyway of fixing it so it would work in IE7???
<script>
var statusMessage = 'Welcome to Nemesis Clan!';
window.status = statusMessage;
var tCell= document.getElementsByTagName('TD');
for (i=0;i<tCell.length;i++){
if (tCell[i].className=="row4"){
if (tCell[i].innerHTML.match("showforum=")){
tCell[i].onmouseover=function(){this.style.backgroundColor="#330000";this.style.cursor='hand';window.status=this.getElementsByTagName('a')[0].innerHTML;}
tCell[i].onmouseout=function(){this.style.backgroundColor="";window.status=statusMessage;}
tCell[i].onclick = function(){location = this.getElementsByTagName('a')[0].href;}
}}}
var tCell2= document.getElementsByTagName('TD');
for (i=0;i<tCell.length;i++){
if (tCell2[i].className=="row4"){
if (tCell2[i].innerHTML.match("showtopic=")){
tCell2[i].onmouseover=function(){this.style.backgroundColor=" #330000";this.style.cursor='hand';}
tCell2[i].onmouseout=function(){this.style.backgroundColor=""}
tCell2[i].onclick = function(){location = this.getElementsByTagName('a')[0].href;}
}}}
</script>
.....for quite a while, but when i updated my explorer to IE7 the code would not work on the new browser but it works on any other... Is there anyway of fixing it so it would work in IE7???