To make a window open when users click on an image:
Create a new HTML page.
Add an image to the page.
Select the image.
In the Behaviors panel, click the + (plus) button and select Open Browser Window from the drop-down menu.
The Open Browser Window dialog box will appear (Figure 13.5).
Figure 13.5 The Open Window dialog box allows you to specify the size and style of the window.
In the URL to Display text box, specify the file you want to open.
Specify the size of the window in the height and width text boxes.
In the Window Name text box, enter a name for the window. We'll ignore all the other options, but you can find out more about them in the Dreamweaver help files.
Click OK to close the Window. The behavior will appear in the Behaviors panel.
Click on the arrow to the left of the behavior name, and select onClick from the drop-down menu.
You can now preview the file in your browser, and a new window will pop up when you click on the image (Figure 13.6).
Figure 13.6 Now you can pop open a new window-which might actually come in handy for things such as messaging windows, Flash movies, and registration gadgets.
Fortunately, we have figured out a way to specify the window location, and it's not hard at all.
To specify the location of a new window:
Figure 13.7 Now we get our hands dirty messing with the code manually!
Right after the height=200 (or whatever height you specified) add the following ode:
The top and left correspond to the number of pixels from the top and left of the screen, so expect some variation over different monitors.
Make sure you add the code inside the single quotes, and also make sure you don't add any spaces anywhere. Your code should look something like:
onClick="MM_openBrWindow('./test. html','','width=200,height=200, top=400 left=600,3')"
That's all there is to it. You can now badger users on any part of the screen.