Friday, October 22, 2010

The production of sliding menu


Today should be my friends asked to me on a sliding menu effect site write a simple tutorial; in the tendon the Department of the University of software to have a slide on the layer the effect, as if Itnow ads also used this effect when not in use hidden, with the click of a button when the layer on the sliding slowly out to save the limited page space, but also achieved an enviable visual effects, and it seems pretty good. This effect we can look here.



Closer to home, no BS. Preparation are as follows:

1. In dw create a new blank document (or open the page you want to add effect).

2. Set up your own css style.

3. Insert the page form a long 500pix (here Description: The purpose is to insert a form control layer in different resolutions to maintain the relative position of the same, if you have not done the relevant settings page before, then this department you may want to Fee something about what to tell your page structure).

4. Cursor in the form, click on the menu [Insert - Layer] to insert a long high of 20 layers of 500 and named layer1.

5. Then the cursor into layers layer1, click the menu [Insert - Layer] and then insert a long 500 high 130 layers layer2; and layer2 of the property on the left margin and the margins are set to 0, and it specifies a background color you like.

6. Then repeat step 5 of method, and then insert a layer layer3, no special use of this layer, in my this tutorial, I was only a few buttons to put it. Finally, I open up as follow:



TIPS: The goal here is to give you plus a sliding layer in front baffle, only when clicked only when the layer under this layer from your slowly slide out.

Now, before we officially entered into the sliding menu to make the production process.



Let us now repeat the above step 5, then insert a layer layer4, set the layer property to width 500, 150 high, which happens to be just the height of layer2 and layer3 and will adjust to the other two layers layer4 map layer below. Figure:



Then we click on Layer layer2 him in front of the eyes closed, so we can see the layer below it layer4.



At this point, we click ALT + F9 to open Timeline panel, DW has been added to our default timeline Timeline1, then, we have chosen we have to slide the layers layer4, in the above right-click and select [Add to Timeline] Then we can see in the Timeline panel layer we have just developed layer4, this shows that we have added a success!





Then we click on the timeline on frame 15, the layer layer4 properties panel to adjust the top margin of 150. Here, a sliding layer can even do a good job, you can drag the timeline above the red box slowly from 1 to 15, you can see you slowly from this layer below layer2 and layer3 slide out!








[Next]



Well, now we will just give this set a sliding layer layer4 can activate his actions even if over a:) Before that, I have added layer3 I insert a table, and set up two layer4 button.





We first set the active layer sliding action. Choice to start this button, go to the behavior panel, click on the menu out [Timeline - Play Timeline] DW will pop up a form, in the above drop-down menu, select timeline1.



Recognized in the behavior panel and event nclick



Well, here you can preview, when you click on the start button, your layer will slowly slide out from the top down!



How, see it:) We give a simple layer to add the closing movement, just click the Close button hidden layer. Select on Close button, to conduct panel, click in the menu out, select [Show hidden layer], in the form of out of choice layer4, then click the hide button, set it to hidden, as shown:





Well, then preview, click Close after the commencement of the layer was found, there is no:) However, it seems that there is a problem, click again to start the time, it seems that no reaction, it was not an action we have set.

Repeat step 5, select the start buttons, add the action [Timeline - Timeline to frame], in the out of form in the drop-down menu to select timeline1, add a few frames.



Well, the preview found that this issue is resolved. But we still seem to ignore a problem, click after the closure of this layer is set to hidden, then click the start did not respond. Or use the old method, start button to add an action can be solved!



Repeat step 5, select [Show hidden layer], and just step 6 On the contrary, this time we choose to show, once determined, to ensure the conduct panel display hidden layers of the time nclick. Expand button at the moment conduct panel shown in Figure:



Well, again, preview, everything works!

So far, this effect even if completed, of course, we can fully realize their potential to produce better results, but remain the same timeline as long as we master the use of behavior with the action, all the effect is only operational problems: )






Recommended links:



Waterproof Wall - TERMINOLOGY to explain



Sogou Pinyin Input Method And How To Do Conflict Game?



Approach new and successful



Let the SPIRIT soar your football career



Gates shot to help AFRICA out of poverty



ASF to MPEG



MP4 to 3GP



introduction Games Sports



Female Employment: Shuobo difficult job There is the cycle undergraduate



Flash To MPEG



Good Registry Tools



Dressing appropriately, moderate Conversation interview etiquette all captures



INTRODUCTION Adventure And Roleplay



The Fate Of Sina And Sohu, Sina Too Poor To Only Ads



Alert not working in ie repair it here



No comments:

Post a Comment