Dreamweaver How to make a navigation bar button

Source: Internet
Author: User
Tags dreamweaver

See the navigation bar above? You can click to see the effect of it, please note that this is done in the form, do you believe? In fact, the code is very simple, now let's see what to do.

1. First create a 1x6 table, the parameters are: border=0 cellspacing=3 cellpadding=0;

2. Insert a table in each cell of the table, with width and height set to 100%;

3. Create a CSS style. Up and. Down; code is as follows:

<style>

. up{

Border:4 outset Royalblue;color:yellow;background:blue;cursor:hand

}

. down{

Border:4 inset Royalblue;color: #33ff33; background:blue;cursor:hand

}

</style>

4. Invoke the style and behavior of the inserted table, the code is as follows:

Class=up onmousedown= "Classname=" "onmouseup=" classname= ' Up ' "onmouseout=" classname= ' Up ' "Onclick=window.open ("button.htm", "_blank")

Note: Link please use onclick, do not use HREF, because the latter access after the dotted box, not beautiful. Now save to see the effect of it!

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.