home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2000 July / macformat-092.iso / Dreamweaver 3 / Configuration / Menus / MM / Command_Recording.js < prev    next >
Encoding:
Text File  |  1999-12-01  |  414 b   |  23 lines

  1. // Copyright 1999 Macromedia, Inc. All rights reserved.
  2.  
  3. function toggleRecording()
  4. {
  5.     if ( dw.isRecording() )
  6.         dw.stopRecording();
  7.     else
  8.         dw.startRecording();
  9. }
  10.  
  11. function canAcceptCommand()
  12. {
  13.    return dw.getFocus() == 'document' && dw.getDocumentDOM().getFocus() != 'frameset';
  14. }
  15.  
  16. function setMenuText()
  17. {
  18.    if ( dw.isRecording() )
  19.       return MENU_StopRecording;
  20.    else
  21.       return MENU_StartRecording;
  22. }
  23.