Since the script is set up to read and work with whatever screen setting you or your users have set up, just copy, paste, and you’re good to go. The triggers for the events are JavaScript links:Ĭlick on a link and one function or the other is triggered. The minimize sets the X and Y to the full screen size and the Maximize sets it to the zero points so the maximized screen goes all the way up to the left-hand corner. The next two lines set a point so that the alwaysLowered command will be able to lower and move the window to the bottom right of the screen. Notice I have the window set to measure 100 by 100 pixels. Those two commands deal with the inner browser window measurements in pixels. There are other methods of getting the same resize effect, but the first time I saw this done, the author used the innerWidth and innerHeight commands, so I kept it that way. If you understand one, then you’ll certainly be able to pick apart the other. You’ll notice that I have actually set up two functions, one that maximizes and one that minimizes. Not only will the screen get smaller, it’ll jump to the bottom right portion of the screen. Once you click “minimize”, wait one moment. Please understand you must be running Netscape Navigator 4 or better to see it. The example will open in a new window so you can see the effect. I get that effect by using an internal browser test script. Mind you, I only offer the code on pages that will display on Navigator 4.0 and above. Often I’ll have two extra windows apart from the parent, and these commands will allow the user to minimize and maximize the windows. ![]() ![]() I mainly use the effect when I open smaller windows, in order to allow the user to see one piece of code while reading over text in the larger, parent window. I’m really sorry to say that at the time of this tutorial (7/28/00 – Kathie Lee’s last day with Regis) it only works on Netscape Navigator 4.0 and above. ![]() This is an effect I have been using for a short while on some other sites I’ve worked on, and I thought it might make a nice tutorial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |