[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm

www lon-capa-cvs@mail.lon-capa.org
Mon, 10 Nov 2003 16:41:31 -0000


www		Mon Nov 10 11:41:31 2003 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  Allow screen readers to skip over menu
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.99 loncom/interface/lonmenu.pm:1.100
--- loncom/interface/lonmenu.pm:1.99	Mon Nov 10 10:15:08 2003
+++ loncom/interface/lonmenu.pm	Mon Nov 10 11:41:31 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.99 2003/11/10 15:15:08 www Exp $
+# $Id: lonmenu.pm,v 1.100 2003/11/10 16:41:31 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -255,8 +255,8 @@
 	$newmail.='</td></tr></table></font>';
     }
     my $timesync=($textual?'':'swmenu.syncclock(1000*'.time.');');
-    my $tablestart=($noremote?'<font face="Arial,Helvetica,sans-serif"><table bgcolor="'.$pgbg.'" border="0" cellspacing="1" cellpadding="1" width="100%">':'');
-    my $tableend=($noremote?'</table></font>':'');
+    my $tablestart=($noremote?'<font face="Arial,Helvetica,sans-serif"><table bgcolor="'.$pgbg.'" border="0" cellspacing="1" cellpadding="1" width="100%">':'').($textinter?'<br /><a href="#content">'.&mt('Skip to Content').'</a><br />':'');
+    my $tableend=($noremote?'</table></font>':'').($textinter?'<a name="content" />':'');
 # =============================================================================
 # ============================ This is for URLs that actually can be registered
     if (($ENV{'request.noversionuri'}!~/^\/(res\/)*adm\//) || ($forcereg)) {
@@ -646,7 +646,7 @@
 	       '<a href="javascript:'.$act.';">'.$text.'</a>';
        } else {
 	   $inlineremote[10*$row+$col]="\n<br />".
-	       '<a href="javascript:'.$act.';">'.$desc.'</a>';
+	       $desc.' <a href="javascript:'.$act.';">'.$text.'</a>';
        }
    } else {
 # Inline Remote