Adobe Dreamweaver API Reference CS5 Uživatelský manuál Strana 431

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 533
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 430
426
DREAMWEAVER API REFERENCE
Design
Last updated 8/27/2013
Arguments
location
The location argument is a string that represents the location in the document to test, with both the value and units
as one string, with no space between the value and units. The possible units are
"px" for pixels and "%" for
percentage. For example, to specify 10 pixels,
location = "10px"; to specify 50 percent, location = "50%".
Returns
Nothing.
Example
The following example deletes the vertical guide at the specified location in the document:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.hasVerticalGuide("10px") == true) {
currentDOM.deleteVerticalGuide("10px");
}
dom.guidesColor
Availability
Dreamweaver 8.
Description
This mutable color property determines the color of guides in the document. You can set and get this property.
Arguments
None.
Returns
Nothing.
Example
The following example makes guides gray:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.guidesColor != "#444444"){
currentDOM.guidesColor = "#444444";
}
dom.guidesDistanceColor
Availability
Dreamweaver 8.
Description
This mutable color property determines the distance feedback color of guides in the document. You can set and get
this property.
Zobrazit stránku 430
1 2 ... 426 427 428 429 430 431 432 433 434 435 436 ... 532 533

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

Žádné komentáře