The disservice with layers is, they can be seen uniquely with 4.0 or more programs. Here in this instructional exercise let me accept that you are utilizing 4.0 or above rendition of the program.
In this instructional exercise we will utilize different layers stacked over another, and make it perceptible, when the mouse is turned over in an Image. image map For this situation study I have taken 2 rollover pictures Image1, Image 2 and three layers:Layer1, Layer2 and Layer3.
At the point when we mouse over on the Image1, the subsequent layer will show up while Layer1 and Layer 3 will be covered up alongside its substance. Similarly for the Image 3, Layer1 and 2 will be covered up and just Layer3 will show up with its substance. At the point when we mouse out from the Images Layer 1 will come up once more. To accomplish this Follow the means and appreciate!
1. Making rollover Images:
First as I said let us make 2 Images,we can utilize Macromedia Fireworks to make the pictures, For our situation I have planned 4 catches; 2 for the up state and 2 for the down state. In the wake of planning the catches, open another page in Dreamweaver, make a 2X1 table. Presently Insert the pictures utilizing, Insert>Interactive Images>Rollover Image. Peruse and select the first for the up state and the second one for the down state. ( I accept the pictures or in the appropriate envelope). Presently do it for the following Image, with the goal that both the Images are in the principal section of the table as appeared in this model). Presently it should resemble this.
2. Putting Layers:
Open Insert>Layer and spot the Layer1. Move the layer into the column2 of the table. Presently you can compose the substance inside the Layer. Select the layer in the Properties Inspector and select Overflow as ‘obvious’. This makes this first layer as default layer and makes noticeable while the page is stacked.
Note down the situation of the Layer(566px and 163px). Supplement the second and third layers on a similar position, so they will sit over the main layer. Presently embed the content on those layers. (Note: Due to the over lapping of layers the content may not be clear. Along these lines, You can put the layers at elsewhere, record the content and afterward change the situation of the layers to sit on the principal layers position)
3. Changing the Layer properties:
Select Window>Layers. You will get the Layer Inspector, with all the three layer subtleties. Select the Layer2 and Layer3 and If the eye is open snap on it to close for the two of them. In the properties Inspector you can see the OverFlow is chosen as covered up for Layer2 and Layer3. This empowers the Layer2 and 3 to be covered up while the page is stacked.
4. Adding Behaviors:
Presently select the Image1 where we will add the dynamic Layer impacts. At that point Open Window > Behavior. You can see the Events and activities made by Dreamweaver for the Rollover Images which we did in the step1. Snap on the catch and select “Show-conceal Layers”. You will get this container to ‘Show or Hide” the Layers.
Presently do the accompanying…
a. Select Layer1 than click on ‘Cover up’
b. Select Layer2 and snap on ‘Show’ at that point,
c. Select Layer3 and snap on ‘Stow away’.
This activity will make the Layer1 and 3 to vanish and to show the Layer2 while you move your mouse over the Image1.
Note here, You can utilize different occasions additionally as you like. For instance rather than onMouseOver you can utilize onClick. To do this you need to tap on the small dark, rearranged bolt close to the occasion. Utilize this to choose different occasions, ie OnClick, Down and so on, At the foot of the rundown there is a classification which permits you to pick which programs to help, ensure a check is close to 4 and higher programs. (Simply in the wake of picking the program 4 or higher you will have the option to see all the Events in elite)
Follow the stage 4 by choosing Image2. At that point, a.Select Layer1 than click on ‘Cover up’; b.Select Layer2 and snap on ‘Stow away’ at that point, c.Select Layer3 and snap on ‘Show’. This activity will make the Layer1 and Layer2 to vanish and to show the Layer2 while you move your mouse over the Image1.
5. Bringing default layer once more:
Presently as a last advance, you need to bring back the Layer1 when you move your mouse out of the Image(Or when you mouse away from the pictures at some place on that page). Select the Image1 and snap on the catch and select “Show-shroud Layers”. You will get this case to ‘Show or Hide” the Layers.
Presently do the accompanying…
a. Select Layer1 than click on ‘Show’
b. Select Layer2 and snap on ‘Cover up’ at that point,
c. Select Layer3 and snap on ‘Cover up’.
This activity will make the Layer2 and Layer3 to vanish and to show the Layer1 while you move your mouse out of the Image1. Additionally remember to change the Events to onMouseOut.
Article Source: http://EzineArticles.com/61635