home *** CD-ROM | disk | FTP | other *** search
/ Practical Internet Web Designer 86 / PIWD86.iso / pc / contents / dreamweaver / software / dwmx2004.exe / Disk1 / data1.cab / Configuration_En / Commands / AlertDS.js < prev    next >
Encoding:
JavaScript  |  2003-09-05  |  1.0 KB  |  33 lines

  1.  
  2. // Copyright 2000, 2001, 2002, 2003 Macromedia, Inc. All rights reserved.
  3. var PLATFORM = navigator.platform;
  4. var ICON_URL = (PLATFORM == "Win32") ? "../Shared/MM/Images/alertIconWin.gif" : "dwres:2";
  5.  
  6. function isDOMRequired() { 
  7.     // Return false, indicating that this object is available in code view.
  8.     return false;
  9. }
  10.  
  11. function render() {
  12.   var btnList="", i;
  13.   document.msg.innerHTML = arguments[0]; //Insert the question
  14.   if (arguments.length > 1) {
  15.     for (i=1; i<arguments.length; i++)
  16.       btnList += "<input type='button' value='"+arguments[i]+"' onClick='setResult(\""+arguments[i]+"\")'>";
  17.     document.btns.innerHTML = btnList;
  18.   }
  19. }
  20.  
  21. function setResult(result) {
  22.   if (typeof MMNotes != 'undefined') { // Set values off of MMNotes object if it exists.
  23.     MMNotes.Confirm_RESULT = result;
  24.     MMNotes.Confirm_DONOTSHOW = document.cbDoNotAsk.checked;
  25.   }
  26.   window.close();
  27. }
  28.  
  29. function initialize()
  30. {    
  31.     // Use the right icon for the platform.
  32.     document.confirmIcon.src = ICON_URL; 
  33. }