Page 162 - DCAP408_WEB_PROGRAMMING
P. 162

Windows Programming




                    Notes                          //  Display  the  main  window  after  a  short  while
                                           new Timer()
                                           {
                                               @Override
                                               public void run()
                                               {
                                                   w.show();
                                               }


                                                   }.schedule(500);
                                       }

                                   Self Assessment

                                   Fill in the blank:
                                   12.  ......................... Window opens child Window - Menu displayed behind child.

                                   9.4 Pop Up Windows


                                   A window that suddenly appears (pops up) when you select an option with a mouse or press a
                                   special function key. Usually, the pop-up window contains a menu of commands and stays on
                                   the screen only until you select one of the commands. It then disappears.

                                   A special kind of pop-up window is a pull-down menu, which appears just below the item you
                                   selected, as if you had pulled it down.
                                   A popup window is a web browser window that is smaller than standard windows and without
                                   some of the standard features such as tool bars or status bars. For instance, this link opens a
                                   medium-sized popup window.



                                     Did u know?  Popup windows (aka popups) are popular for small sidebar-style pages that
                                     are digressions from the main page.
                                   Popups are one of the trickiest effects in web development. More than one web developer has
                                   been reduced to tears trying to get popups to work correctly. Furthermore, some irresponsible
                                   popup techniques have made many web pages handicapped and search engine inaccessible.

                                   This topic will walk you step-by-step through creating popup windows, including giving you a
                                   complete set of copy-and-paste JavaScript code. We’ll start with a basic example, showing the
                                   main pieces to a popup. Then we’ll show the techniques for targeting a link inside the popup
                                   back to the main page. Finally we’ll work through the many parameters for the open() command
                                   that adds features to your popups.

                                          Example: Use the Dreamweaver behaviors panel to create small pop-up windows for
                                   ads or news!
                                   This behavior  helps to  create pop-up  ads,  small  browser windows  etc. If  you don’t  have
                                   Dreamweaver we have provided the code that you can cut ‘n’ paste and use in your web page.






          156                               LOVELY PROFESSIONAL UNIVERSITY
   157   158   159   160   161   162   163   164   165   166   167