Adobe Dreamweaver API Reference CS5 Instrukcja Użytkownika Strona 430

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 533
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 429
425
DREAMWEAVER API REFERENCE
Design
Last updated 8/27/2013
Arguments
location
The location argument is the location of the guide 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 creates a vertical guide in the document at the current location:
var currentDOM = dw.getDocumentDOM();
currentDOM.createVerticalGuide("10px");
dom.deleteHorizontalGuide()
Availability
Dreamweaver 8.
Description
This function deletes the horizontal guide at the specified location.
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 horizontal guide at the specified location in the document:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.hasHorizontalGuide("10px") == true) {
currentDOM.deleteHorizonalGuide("10px");
}
dom.deleteVerticalGuide()
Availability
Dreamweaver 8.
Description
This function deletes the vertical guide at the specified location.
Przeglądanie stron 429
1 2 ... 425 426 427 428 429 430 431 432 433 434 435 ... 532 533

Komentarze do niniejszej Instrukcji

Brak uwag