When I saw the source code of that page I almost had to laugh. Three external script tags to jQuery (fortunately all the same version), and cufon! Cufon has been known to mess things up and cannot be tested in a local mock up without downloading all of the fonts. There are also some script errors.
But it looks like you're not really using cufon, and that even if you are, it might not be a factor (Note: further testing shows cufon is being used and that it does cause problems). The other script errors appear not to affect this one thing.
To get rid of cufon, remove:
Code:
<script type='text/javascript' src='javascript/cufon-yui.js'></script>
<script type='text/javascript' src='javascript/nevis_700.font.js'></script>
and:
Code:
<script type="text/javascript">
Cufon.replace('h2, h3, h5, .footer, #nav', { hover: 'true' });
</script>
To make a long story short, the main problem is that you have two elements with the id 'rotator'. In javascript, the parser will at best find the first and use it, at worst throw a fatal script error.
The 'rotator' element without your links in it is first, so the one you want to target never gets processed.
Since you use jQuery, you can get around that by changing:
Code:
<script type="text/javascript">
function highlightLinks(obj) {
var linkList = document.getElementById("rotator").getElementsByTagName("a");
for (i = 0; i < linkList.length; i++) {
linkList[i].className = "";
}
obj.className = "selected";
}
</script>
to:
Code:
<script type="text/javascript">
function highlightLinks(obj) {
var linkList = $('#rotator a');
for (i = 0; i < linkList.length; i++) {
linkList[i].className = "";
}
obj.className = "selected";
}
</script>
But this is a pretty dirty solution. Considering the rest of the problems with the page, it's perhaps the best that can be hoped for. These other problems should be addressed though.
Bookmarks