Wednesday, October 7, 2009

Of menu of fold of the webpage in Dreamweaver make

The website that has been to Microsoft? (If pursue one) if have been to, so should you stand to this above does the navigation column of menu of that fold type feel gasp in admiration? (" hey, old still shell is strong. " " ah, how can the egg fly? ! " ) had you thought you also can make such result? Come, need not envy, enchanted be inferior to the action!



Fold type menu is the indication that passes a layer is mixed actually conceal, will achieve this kind of result. Let now say how to be made for me. Follow Me! Open DreamWeaver first (DreamWeaver is very good to the support of the layer, also be the necessary tool that makes a webpage) .

The first pace: Insert a group, two form first, method: Click menu to go up " insert " (Insert) , reelection is taken " form " (Table) , be in " row " (Row) in input 1, in the row (Columns) in input 2, in click " affirmatory " . (if pursue 2) for beautiful, in the attribute column of form, wide and set high respe ctively for 200px and 30px, and set the frame color of form entirely be #FFFFFF, nod respectively next choose two unit case, in attribute column lieutenant general its frame color is set for #6699FF. Input respectively inside two unit case " data tutorial " and " relevant software " . Set in column of unit case attribute for among right neat (by the way one: In DreamWeaver not only can set table level is right neat means, and can perpendicular position is opposite set neat means, in FrontPage can oneself go writing code, this also is one of accounts that I abandon FrontPage using DreamWeaver! )



The 2nd pace, in " data tutorial " a layer is inserted inside unit case. Method: Those who click menu to go up " insert " (Insert) , reelection is taken " layer " (Layer) . At this moment, can appear in unit case a layer. At this moment we are dissatisfactory the position of the layer, move so it. The shift of the layer is very easy, choose a layer, the arrowhead key th at goes up by clavier next can move, and do not accept any restriction, ah, simple. Same, we for beautiful also can be in the attribute column of the layer set its size, wide and set high respectively for 100px and 90px.

The 3rd pace: A 3 travel, form are inserted in the layer, the method is the same as the first pace. And wide and set high respectively for 100px and 90px, with cram this layer. Be like,do frame color again the setting of the first pace. Input in 3 unit case " DreamWeaver " , " FrontPage " and " HotDog " . Set in attribute column for among right neat.

The 4th pace: The most crucial one step came! The attribute column lieutenant general in the layer " can inspect " set for " conceal " (Hidden) , lose sight of this layer when opening a webpage so (what fold to if look so that see that is returned,call type? ! ) . Choose unit case then, click DreamWeaver next most below of right of column of condition of that one strip " indication behavior " pushbutton (it is that most among, comprise by two circle that) , will to unit case add behavior. Here should notice: Must value! Must be to show on the caption column of behavior column " <td> " just go, this behaviour that this shows to you want to add is added on unit case, if do not have some words to be about to be nodded afresh then,choose unit case, till the success till. (if pursue 3)



In " behavior target " (an appropriate browser chooses in Events For) , it is a choice commonly " IE 4.0 " . Click left next " + " pushbutton, will add behavior. Ch oose in playing the menu that go out " show or conceal a layer " (Show-Hid Layers) , choose in playing the window that give " Layer " Layer1 " , be that layer that we a moment ago added, click again " show " (Show) , went certainly. Be in at this moment this behavior that we just add appeared in be column all right. Click then " incident " (below Events) of right be down arrowhead pushbutton that, choose in playing a menu " move when the mouse on " (OnMouseOver) . Good, load when the page so when, this layer can not appear, the mouse that becomes us only moves on the ability when unit case can appear, how? Cruel? Stop! Not with joy too early, did not forget to still have a problem: The mouse removeds this layer still is of indication move after unit case! Do not meet what disappear automatically. (do not regard computer as full automatic, when you do not tell it how to be done, it just piles scrap iron. ^_^ ) it is very easy also to solve this problem actually, we can add th e behavior of indication layer, also can add the behavior that conceals a layer of course! Click again " + " pushbutton, choose " show or conceal a layer " , still choose " Layer1 " , what this nevertheless we click is " conceal " (Hide) , again affirmatory. Choose next " incident " , click " removed when the mouse " (OnMouseOut) . OK! Finished.

Next, according to arrive from the 2nd pace the process of the 4th pace, right " relevant software " unit case undertakes operating. After everything is finished, press " F12 " , preview, ah, how? Simple a few paces, achieved the result of such dazzle, the contribution of everything or DreamWeaver! (If the effect pursues 4)



Still have attention of a need, the shift of the layer can be not accomplished sometimes " be seen namely earning " the effect, original when the editor position is very satisfactory, but when previewing, be in a complete mess however, this is about to be previewed a few times more, revise m ore, ability gets good result.

No comments:

Post a Comment