Function MM_Openbrwindow (Turl, WinName, Features) {//v2.0
Window.open (Theurl, WinName, Features);
}
// ->
script>
hEAD>
Pop-up window effect
body>
html>
You can understand the above code: When the online event is excited (ie, when the image or page is loaded), the mm_openbrwindow () method is called, and the value "'YourPage.htm', 'WinName', 'Toolbar = YES , Location = YES, STATUS = YES, MENUBAR = YES, SCROLLLBARS = YES, Resizable = YES, Width = 300, Height = 200 '"(hereinafter referred to herein) Incoming Correspondence -" Turl, WinName, Features "for use in WINDOW.OPEN (). Note that three parameters must be enclosed in single quotes. In these codes, the most critical sentence is: "Window.Open (Turl, WinName, Features)". It means that in a window named WinName, open the page on the theurl address in accordance with the specified features of Features.
After understanding the meaning of the code, we can know that the code can be written directly: add online = "Window.htm ',' WinName ',' Toolbar = YES, Location = Yes, Status = Yes, menubar = yes, scrollbars = yes, resizable = yes, width = 300, heiGHT = 200 ') ". This method of automatically generates code from Dreamweaver is different.
We already know the meaning of three parameters in Window.Open () - the first one for the address of the page, the second is the name of the target window, and the third is a description of the appearance characteristics of the window. First, the two parameters don't talk more, let's talk about the third parameter. For the third parameter, we can write "'Toolbar = no, location = no, Directories = no, status = no, menubar = no, scrollbars = no, resizable = no, width = 300, height = 200, left = 100, TOP = 100 '"Here Toolbar represents the toolbar, local represents the address bar, Directories represents the navigation bar, status is the status bar, mebar is the menu bar, and scrollbars is the scroll bar, and resizable is changing the size of the size, and Width, Height respectively Indicates the width and height of the window, the Left, TOP represents the position where the window pops up. Toolbar, Location, Directories, Status, Menubar, Scrollbars, Resizable Values are set to Yes, NO, 1 or 0, yes (1) indicates that the new window has this feature, no (0) is. Width, Height, Left, the value of TOP should be filled in a digital, and the unit is PX. Tell more, do you understand? Add behavior to Dreamweaver, is it easy to make a pop-up window? It is not very difficult to handwritten code! As long as you add practice again, in a short period of time, you will feel: It turns out to make a pop-up window, it is so simple!