India seo web development website designer freelance

How Behaviors work

When a user selects an HTML element in a document and clicks the plus (+) button, the following events occur:

  1. calls the canAcceptBehavior() function in each Action file to see whether this action is appropriate for the document or the selected element.
  2. If the return value of this function is false , dims the action in the Actions pop-up menu. (For example, the Control Shockwave action is dimmed when the user's document has no Shockwave movies.) If the return value is a list of events, compares each event with the valid events for the currently selected HTML element and target browser until it finds a match. populates the Events pop-up menu with the matched event from canAcceptBehavior() at the top of the list; if no match exists, the default event for the HTML element (marked in the Event file with an asterisk [*]) becomes the top item. The remaining events in the menu are assembled from the Event file.

  3. The user selects an action from the Actions pop-up menu.
  4. calls the windowDimensions() function, if defined, to determine the size of the Parameters dialog box. If windowDimensions() is not defined, the size is determined automatically.
  5. A dialog box always appears, with OK and Cancel buttons appearing at the right edge, regardless of the contents of the Body element.

  6. displays a dialog box that contains the BODY elements of the Action file. If the Action file's BODY tag contains an onLoad handler, executes it.
  7. The user fills in the parameters for the action. executes event handlers that are associated with the form fields as the user encounters them.
  8. The user clicks OK.
  9. calls the behaviorFunction() and applyBehavior() functions in the selected Action file. These functions return strings that are inserted into the user's document.
  10. If the user later double-clicks the action in the Actions column, reopens the Parameters dialog box and executes the onLoad handler. then calls the inspectBehavior() function in the selected Action file, which fills in the fields with the data that the user previously entered.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117

India web developer website development India