MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Specifiche Pagina 462

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 692
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 461
462
Example
The first statement in the following example sets up a tag search and specifies that the scope of the
search should be four files. The second statement performs the search and replace operation.
dreamweaver.setUpComplexFindReplace('<dwquery><queryparams ¬
matchcase="false" ignorewhitespace="true" useregexp="false"/>¬
<find><qtag qname="a"><qattribute qname="href" qcompare="=" ¬
qvalue="#"></qattribute><qattribute qname="onMouseOut" ¬
qcompare="=" qvalue="" qnegate="true"></qattribute></qtag>¬
</find><replace action="setAttribute" param1="onMouseOut" ¬
param2="this.style.color='#000000';this.style.¬
fontWeight='normal'"/></dwquery>');
dw.replaceAll();
dreamweaver.setUpFind()
Availability
Dreamweaver 3
Description
Prepares for a text or HTML source search by defining the search parameters for a subsequent
dw.findNext() operation.
Arguments
searchObject
searchObject
is an object for which the following properties can be defined:
searchString is the text for which to search.
searchSource is a Boolean value that indicates whether to search the HTML source.
{matchCase} is a Boolean value that indicates whether the search is case-sensitive. If this
property is not explicitly set, it defaults to
false.
{ignoreWhitespace} is a Boolean value that indicates whether white space differences should
be ignored.
ignoreWhitespace defaults to false if useRegularExpressions is true and
true if useRegularExpressions is false.
{useRegularExpressions} is a Boolean value that indicates whether the searchString uses
regular expressions. If this property is not explicitly set, it defaults to
false.
Returns
Nothing.
Example
The following code demonstrates three ways to create a searchObject object:
var searchParams;
searchParams.searchString = ’/jointfilesconvert/274790/bgcolor="#FFCCFF"’;
searchParams.searchSource = true;
dreamweaver.setUpFind(searchParams);
var searchParams = {searchString: ’/jointfilesconvert/274790/bgcolor="#FFCCFF"’, searchSource: true};
dreamweaver.setUpFind(searchParams);
dreamweaver.setUpFind({searchString: '/jointfilesconvert/274790/bgcolor="#FFCCFF"', searchSource: ¬
true});
Vedere la pagina 461
1 2 ... 457 458 459 460 461 462 463 464 465 466 467 ... 691 692

Commenti su questo manuale

Nessun commento