508 compliance for icons in Navigation panel

This is the place to discuss Help & Manual 4 issues. Please don't post questions on any other versions here!

Moderators: Alexander Halser, Tim Green

User avatar
Tim Green
Site Admin
Posts: 23155
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Unread post by Tim Green »

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.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Alexander Halser
EC-Software Support
Posts: 4098
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Unread post by Alexander Halser »

You can put all changes into the same loop:
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
Post Reply