Dreevoo.com | Online Learning and Knowledge Sharing
 
Home | Programs | Adobe Dreamweaver | Navigation | How to use Swap image behavior in Dreamweaver
Guest
Click to view your profile
Topics
Programs
Languages
Recipes
Home
Shortcuts
 
 

How to use Swap image behavior in Dreamweaver

Dreamweaver provides several tools in determining the behavior of individual elements on the page. In this lesson we will show you an interesting one, how to change an image above the link.

 
  Author: bole | Version: CS5 | 9th November 2013 |  
 
 
1.
 

Create new HTML document.

 
 
2.
 

Click Insert and select Image. Than select any image and click OK.

 
 
3.
 

Below the image write Picture 1 and Picture 2 and then select an image.

 
 
4.
 

At properties specify a name for the picture.

 
 
5.
 

Select text Picture 1.

 
 
6.
 

At Link field insert sign # or write a web page address.

 
 
7.
 

Click Windows and select Behaviors. Behaviors must be marked.

 
 
8.
 

Behaviors window appears on the right side. Click + icon…

 
 
9.
 

…and select Swap image.

At Images field select the picture you have named under Properties.

At Set source to field select the picture you want to be shown when you will be above selected text.
 
Select Preload text and click OK.

 
 
10.
 

We have set the first rule.

Now select text Picture 2 and repeat the procedure, only this time select other picture in the Set source to field.

 
 
11.
 

Save the document (Ctrl + S) and press F12 to open the page in a browser.

 
 
12.
 

Now go with the mouse above Picture 1 link and the picture should change.

 
 
13.
 

Now go with the mouse above Picture 2 link and the picture should change to the other picture.

 
 
 
   
  Please login to post a comment
   
 
 
online learning made for people
Dreevoo.com | CONTRIBUTE | FORUM | INFO