|
uCoz Community Archives Locked Do Multiple Timed PopUp Windows (Tutorial) |
Do Multiple Timed PopUp Windows |
Step One:
Make up your popup code per usual with PopUp Maker. Important: Remember to use a different Function Name and PopUp Name for each one if you are using more than one popup in a given page. Insert the script(s) in the head of the page, just as you usually do. We'll show an outline of how this all goes together at the end -- it's fairly easy to do. Step Two: For each popup -- after the popup scripts you inserted in Step One -- then you will insert a call for a timer, like this: Call the popup function as shown in red. The 15000 shown in this sample is how long to wait before launching the popup. The figure is in milliseconds (1000 = 1 second), so, for example, the sample above is set to wait 15 seconds before launching the popup. General Outline: This shows how it will all go together in the section of your page. Here, we show how to do two such poppers with different start times. Thus, we have two different popups -- doPopUp1( ) and doPopUp2( ) -- which will fire respectively at 15000 milliseconds (15 seconds) and 30000 milliseconds (30 seconds). To do more than two -- just follow the overall pattern. I've written this to try to make it as clear as possible to newcomers to the art. More experienced coders can clean up the code by removing the // comment lines and all but the very first tags around the code, as they're redundant. Keep Background Fixed When Page Scrolls Call More Than One Function From An Event Make Window Pop Under Set Window Size Set Window Position Make Window Come To Front Stop Window From Losing Focus Scroll To Top Of Page With Javascript Link Bring Window To Front Periodically Prevent Page Being Captured In Frameset Redirect Page With Or Without JavaScript Reload Page At Given Time Interval Reload Page From JavaScript Link or Button Put Scrollbar On Left Instead Of Right Stop Window Scrollbar From Showing Attach Multiple Styles To An Element Use JavaScript Link To Return To Previous Page Protect Page Code Close Window From JavaScript Close PopUp Window After Specified Period of Time Rules For Naming JavaScript Variables Check To See If JAVA Is Enabled Automatically Show the Last Modified Date/Time of a Page |
| |||
| |||