Dreamweaver MX 2004 Exchange image of behavior

Source: Internet
Author: User
Tags insert dreamweaver
Dreamweaver

· Swap images

The Swap image action swaps an image and another image by changing the SRC attribute of the img tag. Use this action to create a button with the mouse over an image and other image effects. Inserting a mouse through an image automatically adds an "swap image" behavior to your page.

Note: Because only the SRC attribute is affected by this action, you should swap an image with the same size (height and width) as the original image. Otherwise.... Try it yourself!

Specific production steps:

1. Select "Insert"-->> "image" to insert an image. Select the image, and in the property inspector, enter a name for the image in the leftmost text box. This example is named: Img1. The following figure:

If you do not name the image, the swap image action will still work, and it is easier to distinguish them in the Swap Images dialog box if you are recommended to name all the inserted images in advance.

2. Select an object (usually the image you will swap) and open the Behaviors panel.

3. Click the plus (+) button and choose Swap Image from the pop-up menu. Eject the Swap Image dialog box as shown below:

4. From the image list, select the source image you want to change.

5. Click Browse to select a new image file, or enter the path and filename of the new image in the set source file as text box.

6. Select the pre-load image option to load a new image into the browser's cache when the page is loaded.

Click OK. Click F12 Preview.

The corresponding code added in the Code view, we can be familiar with:



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.