MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Specifikace Strana 172

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 504
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 171
172 Commands
The next part of the return statement (&& (theSelNode.nodeType == Node.TEXT_NODE)
checks to see if the selected node type is text. If so, the
canAcceptCommand() function
returns the value
true. If the node type is not text, the test continues to see if the node has
children (
|| theSelNode.hasChildNodes()), and if the type of the first child node is text
(
&& (theChildren[0].nodeType == Node.TEXT_NODE))). If both conditions are true,
canAcceptCommand() returns the value true, and Dreamweaver enables the menu item at
the bottom of the Commands menu, as shown in the following figure:
Otherwise,
canAcceptCommand() returns the value false and Dreamweaver dims the item,
as shown in the following figure:
Zobrazit stránku 171
1 2 ... 167 168 169 170 171 172 173 174 175 176 177 ... 503 504

Komentáře k této Příručce

Žádné komentáře