Working with Layers

Dreamweaver MX.

1. Layers are very important, at least you should know how to use them, because they are very flexible in designing something of your own. When you want to create your own navigation system, or to make a mouse over actions, or even tooltip you can do all these with layers very easily. In this tutorial I will show you how to use layers, and we will do a little navigation system. Then once you know how to use them, you can implement them according to your own creativity.

Save this image, we will work with it to create a menu

image 1

Before we start here is the example of what we will be doing click here

2. OK Let"s start creating our menu, open a new page in your dreamweaver and save it as menu.html

Place the above image in your page. Select the Draw Layer from the toolbar and draw a layer as shown below.

image 2

3. Now click inside the layer and Create a Table, to do that go to Insert > Table (Ctrl + Alt + T) with the following specifications.

image 3

After creating the table give it a background color of #999999

Now click inside the table you have just created and create one more table, Insert > Table (Ctrl + Alt + T) with the following specifications now.

image 4

Now select the rows (not the whole table) only and give them a background color lighter that is for example #F9F9F9

4. By now your page should look like this

image 5

Fill the table rows with Menu items, in my case I will use menu 1, menu 2...etc

image 6

5. Next click inside the table and select the layer handle at the left top to select the whole layer.

image 7

Now inside the properties panel Choose the layer visibility: Hidden - This means when the page first time opens the layer won"t be visible, unless the user mouse overs, which we will do next.

image 8

6. Next step is to create Mouse Over and Mouse Out actions, when the user mouse overs the image it will show the layer and when mouse outs it will hide the layer. That is quite easy to do.

Select the "Mouse Over Me" image of yours and open Behaviors Panel Window > Behaviors Shift + F3. Then click on the "+" sign and select Show-Hide Layers. You will see a new window, click on the Show button, and click OK

image 9

In the Behaviors Panel change onLoad to onMouseOver Action.

image 10

7. You need to repeat Step 6 one more time, but this time in the Show-Hide Layers click on the Hide button. Because this time we want to hide the layer when users mouse goes away from the image. Click OK.

And in the Behaviors panel, change the onLoad to onMouseOut. Your behaviors panel should look like this now. Save the page and preview it. It should be showing the layer when you mouse over and hide it when you mouse out it.

image 11

8. Now you know how to use layers you can start building your navigarional system which is more complicated then this one, it will all be the same when you build a bigger menu system. One thing you need to remember is, when you show one layer you should hide the rest, unless you want it otherwise.

Another trick in show/hide thing is sometimes you will have to use hide action on (2nd image) different image to hide particular (1st image) image. If you don"t know what I am talking about, you will get it when you start building your menu. Good Luck.


Close    To Top
  • Prev Article-Web Design:
  • Next Article-Web Design:
  • Now: Tutorial for Web and Software Design > Web Design > HTMLCSS > Web Design Content
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Geek Tutorial
     

    Blogging Tutorial

      RSS Tutorial
      Podcasting Tutorial
    Graphic Design Tutorial
      Coreldraw Tutorial
      Illustrator Tutorial
      3D Tutorials
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial/ Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial/ Articles
     

    XML Style

      AJAX Tutorial
      XML Mobile
    Flash Tutorial/ Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial/ Articles
      Linux Tutorial
      Symbian Tutorial
      MacOS Tutorial
    Personal Tech
      Hardware Tutorial
      Software Tutorial
      Online Auction