eHow launches Android app: Get the best of eHow on the go.

How To

How to Create a Button on a Web Page

Contributor
By eHow Contributing Writer
(0 Ratings)

Buttons, or rollover images, as they are sometimes called, are an easy way to enhance the look of a website and create a more professional appearance. A rollover image is an image on a Web site that changes in appearance when a user rolls her mouse over it or clicks on it. Learn how to create a rollover image for a web page in Adobe Dreamweaver.

Difficulty: Easy
Instructions
  1. Step 1

    Create an image in Photoshop that will serve as the default or "up" image for the rollover. Use the .JPG or .GIF file format, as these are the most common file formats.

  2. Step 2

    Save this image to the root folder of the website on which it will appear. The root folder is where all web pages and elements on those pages that make up a site are saved. Every website has one root folder.

  3. Step 3

    Create another image using the same dimensions as the first image. This second image, the "down" image, should differ from the first image.

  4. Step 4

    Save the second image into the root folder of the website on which it will appear. Use the same file name as the first image, but add "_down" to the end of the file name. This naming convention makes it easier to tell the two images apart when viewing them in a web-design program.

  5. Step 5

    In Dreamweaver, open the web page on which the button will go.

  6. Step 6

    Place the cursor on the page in the place where the button will go.

  7. Step 7

    Select the insert rollover image icon from the "Common" tab on the Insert Bar at the top of the screen.

  8. Step 8

    In the window that opens, type the name of your image in the "Name" blank.

  9. Step 9

    Click the browse button by the "Original Image" blank and select the "up" image from the root folder.

  10. Step 10

    Click the browse button by the "Rollover Image" blank and select the "down" image from the root folder.

  11. Step 11

    Click the browse button by the "When clicked go to URL" blank, and select the web page the button will link to. If the button will link to a page not on in your existing website's root folder, then type the URL in the blank.

  12. Step 12

    Click the preview browser button at the top of the HTML document and look at the page in a web browser.

  13. Step 13

    Click on the button with a mouse. The "down" image should appear when clicked and the link to the page the button links to should open.

  14. Step 14

    Save the web page.

Resources
Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Get Free Internet Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

Demand Media
eHow_eHow Technology and Electronics