Building a behavior function


show more Building a behavior function provides you with in-depth training on Web. Taught by James Williamson as part of the Dreamweaver CS3 Beyond the Basics show less
please wait ...

Building a behavior function

In this lesson, we are going to begin to build out our behavior by adding some of those Core Behavior functions. Now we have got an existing template file that's going to assist us with this. So if you are working from the Exercise Files just go ahead and open this up. In the Chapter 9 Exercise Files directory, you are going to find a subdirectory of _js and this is where we are going to place all of our JavaScript. In that folder, there is a file called behavior_template.js. Go ahead and double-click that to open it up. So this behavior template it just has commented sections and it's actually based off of Adobe's behavior files. So this is using the same commenting structure that they have use for their own behavior files.

Just to do a brief overview of the areas, we have at the top global variables, we would declare any of our global variables that all of our functions are going to use there. Underneath that we have our Behavior Functions and that's where your JavaScr...

Building a behavior function
Video duration: 7m 23s 11h 10m Intermediate

Viewers:

Building a behavior function provides you with in-depth training on Web. Taught by James Williamson as part of the Dreamweaver CS3 Beyond the Basics

Subject:
Web
Software:
Dreamweaver
Author:
please wait ...