MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Specifications Page 136

  • Download
  • Add to my manuals
  • Print
  • Page
    / 504
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 135
136 The Dreamweaver Document Object Model
To find the specific version of Dreamweaver, check first for the existence of appVersion and
then for the version number, as shown in the following example:
if (dreamweaver.appVersion && ¬
dreamweaver.appVersion.indexOf('3.01') != -1){
// execute code
}
The dreamweaver object has a property called systemScript that lets you query the
language of the user’s operating system. Use this property if you need to include special cases
in your extension code for localized operating systems, as shown in the following example:
if (dreamweaver,systemScript && (dreamweaver.systemScript.indexOf('ja')!=-
1){
SpecialCase
}
The systemScript property returns the following values for localized operating systems:
Operating systems for all European languages return
'en'.
The site object
The site object has no properties. For information about the methods of the site object, see
the Dreamweaver API Reference.
Language Value
Japanese
ja
Korean
ko
TChinese
zh_tw
SChinese
zh_cn
Page view 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 503 504

Comments to this Manuals

No comments