Thursday, October 8, 2009

Dreamweaver 4 compendious tutorial (8, add interactive effect for the webpage 2)

8, add interactive effect for the webpage

  Make mixedder interactive effect

In Dreamweaver, more complex result calls the function of Behaviors implementation through, of Behaviors understanding from literal is " behavior " , we call the response of incident again. Adopt the change of webpage element, the shift that is like a mouse, click etc " incident " (Events) , spark play a window, shut a page to wait " answer " (Actions) , be an incident answer. And worth while and glad is, "Behavior " the process that make is goofy type almost.


Press Shift+F3, open behavior face plate, pursue as follows:



Action is joined in the webpage, need is the following 3 measure:

1, the element that chooses generation action, for example the picture, character that takes a link, layer. If need to load to begin occurrence effect in the page, can choose the label on condition column
2, by pushbutton the choice is answered one kind (different element, corresponding response also differs somewhat) , install the attribute that this answers in subsequently dialog box; It is to be able to offer the response of the choice to explain below:



   Call JavaScript: Call a paragraph of JavaScript;

   Change Property: Change the CSS style of Html label;

   Check Browser: According to different browser, enter different page;

   Check Plugin: Whether does examination browser hold the plug-in unit that be necessary;

   Control Shockwave Or Flash: Control Shockwave or Flash animation broadcast;

   Drag Layer: The person that make browse can pull the element in eating a layer;

   Go To URL: The link goes to appointed network address;

   Jump Menu, Jump Menu Go: Jump the menu of page type and Go pushbutton;

   Open Browser Window: Open the new window that browse;

   Pl ay Sound: Broadcast voice;

   Popup Message: Play an admonitory window;

   Preload Images: Read in a picture ahead of schedule;

   Set Nav Bar Image: The picture of set navigation column;

   Set Text: The character shows in specific place;

   Show Hide Layer: Show or conceal a layer;

   Swap Image, Swap Image Restore: Commutation picture and restore original photograph;

   Timeline: Those who control time route broadcast;

   Validate Form: The validity of proof list sheet;

   Get More Behaviors: Download more behavior incident.


3, choose incident (Events) , the decision sparks below what circumstance answer. Common incident has:

   OnMouseOver: The mouse moves to go up to the target;

   OnMouseUp: When pressing the mouse unlocks Zun Jian again;

   OnMouseOut: When the mouse removeds;

   OnMouseDown: Press when the mouse (do not need to unlock Zun Jian) ;

   OnClink: When clicking;

   OnDblClick: When doubleclicking;

   OnLoad: When be record in a webpage;

   OnUnload: When leaving a page;

   OnResize: When the size that changes the window that browse when the person that browse;

   OnScroll: The person that should browse procrastinates use roll when.

No comments:

Post a Comment