It's working in Firefox, Chrome, Safari and Opera.
Internet Explorer is throwing errors and stopping the script because document[...] is undefined. If you remove the function roll() entirely (which appears to be irrelevant anyway), it should work fine in IE as well.
Code:
<script type="text/javascript" language="JavaScript">
<!--
// show and hide spans
// Based on "Let Them Eat Cake" code from alistapart.com
function hideSpans(exempt) {
if (!document.getElementsByTagName) {
return null;
}
if (!exempt) exempt = "";
var spans = document.getElementsByTagName("span");
for (var i = 0; i < spans.length; i++)
{
var span = spans[i];
var id = span.id;
if (id != exempt) {
span.className = "hidden";
}
else {
span.className = "shown";
}
}
}
//Start of rolloverimages
function roll(img_name1, img_src1, img_name2, img_src2, img_name3, img_src3, img_name4, img_src4)
{
// Remove
}
//-->
</script>
Bookmarks