Jup, hat geklappt!
Dankeschön!
Für alle dies auch mal machen wollen:
[php]$_SESSION['session']['hotkeyaus']=1;
Hierher die Navs die keinen Hotkey haben sollen.
$_SESSION['session']['hotkeyaus']=0;
[/php]
[php] $hotkeyanzeigen=TRUE; // Hotkeys aus Anfang
if ($_SESSION['session']['hotkeyaus']==1)$hotkeyanzeigen=FALSE;
if ($hotkeyanzeigen==TRUE){
if ($key==""){
for ($i=0;$i<strlen($text); $i++){
$char = substr($text,$i,1);
if ($ignoreuntil == $char) {
$ignoreuntil="";
}else{
if (($accesskeys[strtolower($char)]==1) || (strpos("abcdefghijklmnopqrstuvwxyz0123456789", strtolower($char)) === false) || $ignoreuntil<>"") {
if ($char=="<") $ignoreuntil=">";
if ($char=="&") $ignoreuntil=";";
if ($char=="`") $ignoreuntil=substr($text,$i+1,1);
}else{
break;
}
}
}
}
if ($i<strlen($text)){
$key=substr($text,$i,1);
$accesskeys[strtolower($key)]=1;
$keyrep=" accesskey=\"$key\" ";
}else{
$key="";
$keyrep="";
}
//output("Key is $key for $text`n");
if ($_SESSION['session']['hotkeyaus']==1)$hotkeyanzeigen=FALSE;
if ($key=="" && $hotkeyanzeigen==TRUE){
//$nav.="<a href=\"".HTMLEntities($link.$extra)."\" class='nav'>".appoencode($text,$priv)."<br></a>";
//$key==""; // This is useless
}else{
$text=substr($text,0,strpos($text,$key))."`H".$key."`H".substr($text,strpos($text,$key)+1);
if ($pop){
$quickkeys[$key]=popup($link.$extra);
}else{
$quickkeys[$key]="window.location='$link$extra';";
}
}
} // Hotkeys aus Ende[/php]
und diese kleine Änderung in der Addnav (Am Anfang und am Ende)