Content-Type: text/html

# WojPob/wikibrowser

HomePage | WojPob | RecentChanges | Preferences
You can edit this page right now! It's a free, community project

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

<html>

     <head>
     <!-- Allows immediate display of various wikis at one keypress event:
          a=mine, c=PPR, d=Meatball, ...
          Highly recommended! Only IE, no Netscape. -->
     <!-- home: http://c2.com/cgi/wiki?HtaWikiBrowser -->
     <!-- author: http://c2.com/cgi/wiki?FridemarPache -->
     <!-- modified: http://www.wikipedia.com/wiki.cgi?WojPob -->
     <title>WikiBrowser? As HtmlApplication? (IE only)</title>
     <HTA:APPLICATION ID="WikiBrowser?"  APPLICATIONNAME="WikiBrowser?" windowstate="maximized">
     <script language=JScript>
      function help1(){
      alert('You got this help box by pressing F1. '+'\n'+ '\n'+
      'Press Alt-1 to set the focus on the Commandline.'+'\n'+'\n'+
      'Press a single key to navigate to'+'\n'+
      'a=AcadWiki?:RecentChanges'+'\n'+
      'b=PhpWiki:RecentChanges' +'\n'+
      'c=Wiki:RecentChanges' +'\n'+
      'd=Meatball:RecentChanges' +'\n'+
      'e=Sci-fi wiki:RecentChanges' + '\n'+
      'f=PhpWiki:PhpWikiBrainstorm' +'\n'+
      'g=DseWiki?:RecentChanges' +'\n'+
      'h=Wikipedia:RecentChanges' +'\n'+
      'x=AcadWiki?.Edit:WikiBrowser?');
      window.event.returnValue = false; //suppressing the general Windows help
      }
      </script>
      </head>

      <body>
      a=AcadWiki?, b=PhpWiki?, c=Wiki, d=Meatball, e=sci-fi, f=PhpBrainstorm?, g=DseWiki? h=wikipediax=editthis

      <label for="TheAddress?" accesskey="1" ></label>
      <input type=text  value=''  onhelp="help1()"  id=TheAddress?  style=width=100%>

      <span onkeypress="help1()">
      <iframe src="" id=TheFrame?  style="width: 100%; height: 100%"> </iframe>
      </span>

      <script language=JScript>
      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;
     </script>
     </body>
     </html>

HomePage | WojPob | RecentChanges | Preferences
You can edit this page right now! It's a free, community project
Edit text of this page | View other revisions
Last edited June 10, 2001 4:37 pm (diff)
Search: