Design | Web Page design viii. establishment of slices
Our basic navigation and page structure has been set up, and now it's time to add slices. The slices in fireworks are the primary reference object for outputting graphics and interacting, and the exported documents will cut the graphics into different parts based on slices and assemble them together in a browser through tables. At the same time, all interactions are generated through the links between slices, such as flip charts, pop-up menus, and so on.
1, the button we created earlier already has its own slice, so we need to create separate slices for the other objects.
2. Creating slices is usually drawn directly using the slice tool in the tool panel, but if you want to create a slice of the exact size, we can select the object and execute the insert slice in the right-click menu to insert the slice automatically.
3, we use the tool panel in the Slice tool in the middle of the page to draw an information display slices, we will be the next step of the navigation bar for each button related information displayed here.
4, our added slices by default are green translucent objects that are placed on the Web layer layer.
Create drag and drop rollover effects
1, click on the "Enterprise Profile" button at the slice, this slice center will appear with a circular flag, dragging it to the upper-left corner of the slice you created in the previous step, setting a rollover effect, and setting the mouse slide to swap the contents of the second frame in the pop-up dialog box, as shown in the following illustration:
2, repeat the above steps, respectively, "Enterprise talent", "product display" two buttons to increase the rollover effect, and corresponding to the third and fourth frames respectively.
3, we are in the same position in the following frames, respectively, placed corresponding to each button description text.
4, the final effect as shown in the following figure:
10, create pop-up menu
Usually the navigation information in our site must be very concise and practical, only the most important information appears in the navigation bar, and more navigation and content information is usually hidden. For complex display points and multiple information organizations, pop-up menus are the most effective tool for layered navigation, and pop-up menus can set a large number of target options in a small space. FIREWORKS4 New Create pop-up menu features can be very easy to implement this navigation structure, we simply add layered information to the pop-up menu editor, the program will automatically generate the corresponding interactive code.
1, select the "Product Display" button on the navigation bar to ensure that the Web layer is currently displayed and sliced visible.
2, click on this button to slice the center of the circular logo, from the pop-up menu select "Add pop-up menu" Add pop-up menu, as shown in the following image:
3, in the pop-up editor input as shown in the following figure, in the text and link input box, the point and the upper "+" can add a new menu content:
4, continue to enter the level two menu content, select an entry, click on the upper can make the current entry indent, to become the next level menu; Click to restore the current entry to the previous level menu. The final results are shown in the diagram:
5, click Next to enter the next Settings window, where we can set the size of text, menu styles and other properties, you can choose the final menu appearance is the standard HTML format, or image Image format. We select the picture format and set the text size to 10.
6. When you select the image format, you need to set up and over state menu styles in the lower two windows, and your Santa may be different from ours because we use custom style files. We can use custom styles as pop-up menu options based on the needs of different design projects.
7, we first draw a final pop-up menu rectangle, and set the desired fill, stroke and special effects.
The following figure:
8. Open the Style panel, select the rectangle you just created, select New style in the Style Panel pop-up menu, and name it MyStyle, as shown below:
A new style has been added to your style panel at this time.
9, select the Style Panel pop-up menu in the export styles will just this custom style output to the fireworks directory/configuration/nav menu/, and name it Styles.stl, but be aware that the original Styles.stl file must be backed up first.
10, we once again edit the pop-up menu just created, we can choose our custom style.
11, press F12 Preview generated pop-up menu, the following figure:
12, at this point the two-level menu of small arrows defaults to black, so see, we can also modify this arrow at the end of the style and color, specific methods see the previous chapters of this book.
11. Create deformable Animation
Adding animations to a Web site is a very small expense for the visitor's time and money, so before adding your animation, be sure to consider the following questions: whether the animation can improve your message, visitors to download and play the animation is fast, convenient, whether there is enough content and resources to make up the animation. Although the network animation and its way of transmission is constantly changing, but the traditional GIF animation still has a noticeable advantage, we are here to create a GIF animation two ways.
1. Create a new logo layer on the level board and place it under the Web layer layer.
2, we need to change the background layer to a shared layer, open the level board, switch to the background layer, select Share this Layer in the pop-up menu, share the background layer, the content on this layer will be visible in all frames, and a shared icon will appear at the end of this layer, as shown below:
3, switch to the logo layer, in the upper-right corner of the document to create www.karsong.com text.
4, press F8 to convert it to graphical symbols graphic symbol.
5. Open the effect panel and add a red glow effect to the instance of this symbol, as shown in the following illustration:
6, select this instance, in the right key pop-up menu to perform Edit>clone, copy a new instance, and with the same glow effects.
7, in the effect panel to modify the second instance of the effect, change it to yellow, and change the range and size of glow, the following figure:
8, select these two instances, in the right key pop-up menu to perform Symbols>tween instances create a distorted animation, set the number of inserted frames to 6 frames, and check distribute to frames distribution to the frame, as shown in the following figure:
9, open the Web layer layer display, in this animation position to create a slice.
10, open the Optimize Optimization panel, set the type of this slice is animated GIF, and set the number of colors to 32 color, as shown in the following figure:
11, this animation is complete, you can open the frame panel to set the animation frame between the time displayed.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service