• Page 1 of 1
  • 1
Do Multiple Timed PopUp Windows
SirDarknight
Posts: 247
Reputation: -5

Message # 1 | 2:18 AM
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:

Available for users only

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.

Available for users only

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.


To Get The Followings,Join My Site:

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
.
Maximize Window From JavaScript

Rules For Naming JavaScript Variables

Check To See If JAVA Is Enabled

Automatically Show the Last Modified Date/Time of a Page
with JavaScript

CodeResolution
Posts: 1570
Reputation: 58

Message # 2 | 9:51 AM
SirDarknight, please provide either a demonstration, live preview or a screenshot
Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Natashko
Posts: 3366
Reputation: 171

Message # 3 | 3:09 PM
SirDarknight, and please stop advertising your website in each and every thread
  • Page 1 of 1
  • 1
Search: