|
The Dreamweaver behaviors panel can be used to create simple pop-up windows for ads and news. It can be also used to create small browser windows too. This tutorial shows how to create a pop-up windows using DreamweaverMX. The tutorial provides the code to be used in your web page.
The ‘open Browser Window’ Behavior help you to open a browser in any size you may specify. To see the demo click here.
The code for the function is given below:
And the code for the link is as follows:
Following are the steps to be followed to open a new browser window in Dreamweaver:
- First click on Windows/Behaviors to open the behaviors panel and the text to be linked to the new browser window must be selected.
- Then the ‘+’ symbol in the behavior panel must be clicked.
- Open the browser window by clicking ‘Open Browser Window’ and select the URL and set the height and width of the window. Status bar or scroll bar can also be selected. And then click ok.
- The browser window will open when it is clicked by the mouse if you choose onClick in the Events column of the behavior panel.
- The following are the other favorite Behaviors:
Pop-up Windows
The pop-up windows can be used while creating promotional ads, zooming into pictures etc that will help you to open a browser window in any size that you specify.
To know more about pop-up windows see our Dreamweaver pop-up windows tutorial.
Jump Menus
If you have too many links and the space is not enough to fit the links in the page the jump menu can be used to fit as many link as possible in the page.
To see the working click here.
Play sound
You can play sound when mouse cursor is rollover or when you load a page etc.
To see the tutorial click here.
Swap Images
Add attraction and interactivity to your site by using swap images. A sample is given below. See our fireworks tutorial to know more about how to make swap images. Click on the link to see the sample.
|