home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2000 July / macformat-092.iso / Dreamweaver 3 / Configuration / Objects / Common / Plugin.js < prev    next >
Encoding:
Text File  |  1999-12-01  |  444 b   |  14 lines

  1. // Copyright 1999 Macromedia, Inc. All rights reserved.
  2.  
  3. //---------------     API FUNCTIONS    ---------------
  4.  
  5. function objectTag() {
  6.   var bDialogState = dw.getShowDialogsOnInsert(); // Was dialog shown?
  7.   var newURL = dw.doURLEncoding(browseForFileURL());
  8.   
  9.   if ((newURL == '')  && bDialogState) {  return ''; }
  10.   
  11.   // Return the html tag that should be inserted
  12.   return '<EMBED SRC="' + newURL + '" WIDTH="32" HEIGHT="32"></EMBED>';
  13. }
  14.