SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1935 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

substring(0, index);
}
}
NOTE NOTE
BC 50
Creating a Behavior
Behavior API
You??™ve seen most of the behavior API functions applied in a previous section, ???Step 2: Create the action file.???
You use the behavior API to create behaviors. Its primary functions are shown in Table 2-3:
TABLE 2-3
Behavior API Primary Functions
Function Role
canAcceptBehavior() Determines whether an action is allowed for the selected HTML element
windowDimensions() Sets the width and height of the parameter form dialog box; only define
this function if you are creating a Parameters dialog box larger than 640
?— 480 pixels
applyBehavior() Attaches the behavior function to the selected tag
inspectBehavior() Restores user-selected values to the parameter form for re-editing
behaviorFunction() Writes a function within tags in the
of the HTML file
deleteBehavior() Removes a behavior from the HTML file
identifyBehaviorArguments() Notes the behavior arguments that need to be altered if the file is moved
displayHelp() Attaches a Help button to the behavior??™s parameter form dialog box
For discussions of the uses of the canAcceptBehavior(), applyBehavior(), inspectBehavior(),
and behaviorFunction() functions, see the preceding sections.


Pages:
1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946