home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1999 November / PCOnline_11_1999.iso / muenchen / hhel.js < prev    next >
Text File  |  1999-09-28  |  757b  |  21 lines

  1. var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
  2.  
  3. if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && 
  4.  (navigator.userAgent.indexOf("Windows 95")>=0 || 
  5.   navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
  6.  document.write('<script language=VBScript\> \n');
  7.  document.write('Sub hhel_FSCommand(ByVal command, ByVal args)\n');
  8.  document.write('  call hhel_DoFSCommand(command, args)\n');
  9.  document.write('end sub\n');
  10.  document.write('</script\> \n');
  11. }
  12.  
  13. function hhel_DoFSCommand(command, args) {
  14. var mapObj = InternetExplorer ? parent.fmap.hmap : parent.fmap.document.hmap;
  15. if ( command=="hilfe" ) {
  16.    mapObj.Zoom(0);
  17.    mapObj.GotoFrame(50); 
  18.   } 
  19. }
  20.  
  21.