Hi Jaclyn,
I've asked Alex to have another look at this thread for you but he's extremely busy at the moment so it may take a little longer than usual.
508 compliance for icons in Navigation panel
Moderators: Alexander Halser, Tim Green
- Alexander Halser
- EC-Software Support
- Posts: 4098
- Joined: Mon Jun 24, 2002 7:24 pm
- Location: Salzburg, Austria
- Contact:
You can put all changes into the same loop:
Remove the comments (text after //).
Remove the comments (text after //).
Code: Select all
<script type="text/javascript">
var icons = document.getElementById("tree").getElementsByTagName("img");
for (var i = 0; i < icons.length; i++) { //loop start
//put your own rules here:
//if icon NOT equal "icon5.gif" then set ALT text to...
if (icons[i].src != "cicon5.gif") { icons[i].alt = "Expand or collapse chapter"; }
//if icon IS equal "icon2.gif" then set ALT text to...
if (icons[i].src == "cicon2.gif") { icons[i].alt = ""; }
//etc.
} //loop end
</script>
Alexander Halser
Senior Software Architect, EC Software GmbH
Senior Software Architect, EC Software GmbH