n applyBehavior()??”Attaches the runtime function to the selected tag and inserts the chosen
event.
n inspectBehavior()??”Enables the user to reopen the parameter form and make modifications
to the original settings.
One of the easiest ways to start an action file is to adapt one that is already built. You can
open and modify any of the existing Dreamweaver standard action files, as long as you remember
to use the File ??? Save As feature command to give the file a new name.
Behaviors and other extensions can include external JavaScript files through the construct. All the Dreamweaver behaviors
take advantage of this facility. Its key benefit is to enable easy sharing of JavaScript code among different
functions. Although you can still combine the user interface and JavaScript aspects of a behavior in one file,
the standard practice is to store the parameter form instructions in the HTML file, such as Play
Sound.htm, and the JavaScript in a JS file with an identical name, such as Play Sound.js. You can link
to an external JavaScript file to make commonly used functions accessible in the script.
Here are the steps to follow in the initial behavior-creation phase:
1. Choose File ??? New to open a new HTML file.
Pages:
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903