Hey guys,
I don’t know much about javascript, but I can at least read through basic scripts and see how they function and what is happening. This code is basically just used to set up alternating row colors in a table. Its needed because the information is being filled dynamically form a database. The code is pretty simple:
[code] <script type=”text/javascript”>
function makeAltRows() {
var myTable = document.getElementsByTagName(‘tbody’);
for (i=0; i<myTable.length;i++) {
var rows = myTable[i].getElementsByTagName(‘tr’);
for (f=0; f<rows.length;f++) {
if (!(f % 2)) {
} else {
myTable[i].rows[f].setAttribute(“style”, “background-color:#e5e5e5;”);
}
}
}
} // END makeAltRows()
makeAltRows();
</script>
It works fine in FF, but does not appear in IE. Any ideas? Here is the page:
[url]http://industryweapon.com/i7:Web,IndustryWeapon,customers,findaReseller