User:WojPob/wikibrowser
A neat thingy I stumbled upon on http://xarch.tu-graz.ac.at/autocad/wiki/WikiBrowser
You can see it in action here: http://www.pobratyn.com/browser.html
function help1(){
alert('You got this help box by pressing F1. '+'
'+ '
'+
'Press Alt-1 to set the focus on the Commandline.'+'
'+'
'+
'Press a single key to navigate to'+'
'+
'a=AcadWiki:RecentChanges'+'
'+
'b=PhpWiki:RecentChanges' +'
'+
'c=Wiki:RecentChanges' +'
'+
'd=Meatball:RecentChanges' +'
'+
'e=Sci-fi wiki:RecentChanges' + '
'+
'f=PhpWiki:PhpWikiBrainstorm' +'
'+
'g=DseWiki:RecentChanges' +'
'+
'h=Wikipedia:RecentChanges' +'
'+
'x=AcadWiki.Edit:WikiBrowser');
window.event.returnValue = false; //suppressing the general Windows help
}
a=AcadWiki, b=PhpWiki, c=Wiki, d=Meatball, e=sci-fi, f=PhpBrainstorm, g=DseWiki h=wikipediax=editthis
function navigate() { document.all.TheFrame.src = TheAddress.value }
function jumpto(url) { TheAddress.value=url;
window.event.keyCode=0;
navigate();
TheAddress.focus(); // needs to be in a "on target document loaded" handler
}
function clickShortcut() {
cc=window.event.keyCode;
switch(cc){
case 13: navigate();break;
case 97: // a
jumpto("http://xarch.tu-graz.ac.at/autocad/wiki/RecentChanges");break;
case 98: // b
jumpto("http://phpwiki.sourceforge.net/phpwiki/index.php?RecentChanges");break;
case 99: // c
jumpto("http://c2.com/cgi/wiki?RecentChanges");break;
case 100: // d
jumpto("http://www.usemod.com/cgi-bin/mb.pl?RecentChanges");break;
case 101: // e
jumpto("http://www.pobratyn.com/phpwiki/index.php3?RecentChanges");break
case 102: // f
jumpto("http://phpwiki.sourceforge.net/phpwiki/index.php?PhpWikiBrainstorm");break;
case 103: // g
jumpto("http://www.wikiservice.at/dse/wiki.cgi?RecentChanges");break;
case 104: // h
jumpto("http://www.wikipedia.com/wiki.cgi?RecentChanges");break;
case 120: // x
jumpto("http://xarch.tu-graz.ac.at/autocad/wiki/WikiBrowser?action=edit");break;
}
}
TheAddress.focus();
TheAddress.onkeypress =clickShortcut;
:See also : User:WojPob