Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
So I am going to go to File and choose Open. Now if you are on a Mac, click on Applications and browse to find Adobe Dreamweaver CS3. If you are on a PC, you will go to your Program Files and you will go in the Adobe folder and you will find Adobe Dreamweaver CS3. Now from there, it's pretty much the same path. We will click on the Configuration folder and in Configuration, we will open up the Behaviors folder. Now in the Behaviors folder, you are going to find two folders, Actions and Events. Now the Events are already pre-scripted; we don't have to work with those guys at all.
So what the applyBehavior does is it inspects the function and it attaches the proper code to the object that's doing the call. So in this case, it will be the link or the graphic or whoever you are applying this to. So usually there is a lot of functionality in here and instead of trying to break down all this code, we will explore the applyBehavior function in more detail as we are creating our own behavior. Now the last of the four required functions as I continue to scroll down is the inspectBehavior. Now the inspectBehavior function allows your users to modify the behavior after they have applied it. So in our case we have our Style Switcher.
Maybe that they decide that they want to choose a different style for that particular link, so they go back to Behaviors panel, they can double-click it. It brings back up the dialog box and they can change it. So the inspectBehavior what that does is sort of finds out what they entered in the parameters the last time it was filled out. It opens that dialog box back up and repopulates all these form elements with their previous parameters and allows them to modify them. So even though most behaviors are going to have more than those four; those four core functions are required for every behavior that you are going to create.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.