When browsing a free homepage, a small window will often pop up with some advertisements or surveys, etc., which can easily attract attention. This is often forced by the service provider, and people have to bow their heads under the roof! Sometimes the content of certain pages is not too much. It is still very popular to customize a relatively small window for it (Yimeng uses this technology extensively). We can also DIY such a window ourselves. This is what this section says. Content--Open Browser Window (customized browser window)
1. Get to know the Open Browser Window editing window.
Press F8 in the DW editing box to bring up the Behaviors panel. Click to select Open Browser Window. The following window will appear immediately:
RUL to Display: To display the file path in the customization window, click the Browse... button to select a path.
Window Width, Window Height: are the width and height of the customized window respectively, the unit is Pix.
Attributes (window attributes), customize the interface of your new window.
Navigation Toolbar: navigation toolbar; Location Toolbar: address bar; Status Bar: status bar; Menu Bar: menu; Scrollbars as Needed: scroll bar; Resize Handles: window size is variable.
Window Name: the name of your customized window
2. Common applications of Open Browser Window
Before I talk about the examples, let me talk about a few events (Events) to be used:
Onload: The event is triggered when the specified object (web page, picture, Flash plug-in, etc.) starts to be loaded in the browser.
OnUnload: The event is triggered when the user leaves the current page.
The first application in this section: Open a page and bring up a customized small window.
1. Use the mouse to click on a blank space on the page and press F8 to bring up the Behaviors panel. Click to select Open Browser Window to bring up the edit box shown above.
2. Click the Browser... button to select the file you want to display.
3. Window Width and Window Height fill in the width and height of your customized window respectively.
4. Fill in the Attribute option again, so that the wise can choose the appropriate parameters according to specific needs. These parameters do not need to be filled in.
5. Fill in your window name in Windows Name: and click OK.
6. If the Events in the display area of the Behaviors editing window is not Onload, you can open the Browser Window action and click a small triangle on the left to select the OnLoad event. This example is completed.
Note: The mouse in the first step must click on a blank space on the page, not a blank space in the table or other objects. Otherwise, there will be no Onload event selection when performing step 6. You can also replace the Onload event with an OnUnload event. , exit the current page and a customization window will pop up, and you can put advertisements in this window (to earn some advertising fees). No one will be disgusted by this.
The second application in this section: Click a link to bring up a customized small window
1. First select the text object and make an empty link.
2. Click the text link object with the mouse, and then add the Open Browser Window behavior according to the first application method. Just change the Events in step 6 to OnClick