awardsshopping
homespecialfunnostalgia
Boomers
Features
Mission
Boomer Women
Boomer Men
Caregivers
Dr SUSE Is In
Boomer Biz
Business News
General News
Single Boomers
Dr. Guilfoyle
About Boomers
Boomers Team
Affiliates

Internet
Community
Boomer Community
Directory Boomers Chat

Bulletin Board
Boomers Forum
Yahoo Club
Yahoo Singles
TalkCIty Chat
Open Forum!
Member
Homepages

Advertisers
 


Links2Go Key Resource
International Topic

Web Site Story
Pick of the Week! 3/16/98

 


Quick! Click the Button! 

By: William "Will" Bontrager, Programmer & Publisher
Copyright 2001 William Bontrager

A reader suggested an article about popup windows that stay open for only a predetermined number of seconds. The idea was that a special could be offered in the popup that must be taken advantage of before the popup closes.

Several days later, another reader asked for a bit of help installing something similar.

Okay, here's the WillMaster way to do it :)

  1. A cookie is set when the popup is launched so it is displayed only once.
  2. You determine how long the cookie lives on the prospects computer, from 0 days (which means the cookie will delete when the browser is closed) to 3652 days (10 years).
  3. You determine how many seconds the popup will be visible before the window closes automatically.
  4. You can customize a JavaScript function to do anything (or nothing) every time a second of time elapses. The example displays countdown numbers in a form field.

http://willmaster.com/a/10/pl.pl?art107 is the example implementation. It stores a cookie on your hard drive that will delete when you close your browser. The popup stays up for 30 seconds.

The example page also has a link to download the ZIPed set of the example pages.

You can use this code to:

  1. Display immediately pertinent information in a popup window that will close itself after a specified number of seconds (provided the visitor hasn't already closed the window).
  2. Offer a special price if taken advantage of within the specified number of seconds.
  3. Any situation where you want to create a sense of urgency and/or effectively demand immediate action.

Instructions for the Page that Launches the Popup

In the JavaScript source code, you'll find places to specify:

  • The URL of the popup window's HTML page.
  • The height and width of the popup window, and whether or not is may be resizable and/or have scrollbars.
  • The number of days the cookie shall live on the visitor's computer.

You also have choice of when the popup window shall launch.

The example launches the popup window when the page first loads. That is accomplished by putting

onLoad="LaunchPopUp()"

in the BODY tag. If you prefer to launch the popup window when the visitor leaves the page, put

onUnload="LaunchPopUp()"

in the BODY tag, instead. To launch the popup window a certain number of seconds after the page is loaded, use

onLoad="SetTimeout('LaunchPopUp()',10000)"

in the BODY tag. (The 10000 is the number of milliseconds, 10 seconds, to delay before launching the popup window.)

If you prefer not to launch the popup window automatically, you can use a clickable link similar to:

Click for one-time offer, good for only 30 seconds after clicking!

Instructions for the Popup's Page

In the JavaScript source code, you'll find places to specify:

  • At what number the countdown shall begin. That will be the maximum number of seconds the popup window can exist.
  • Optionally, you may modify the function that currently displays the counting down numbers in a form field. The function can do anything, display large graphical numbers representing the number of seconds left, for example. The function can even be made to do nothing.

As in the example, the BODY tag must contain:

onLoad="StartTheCounter()"

Without the above, the counter doesn't start. The BODY tag may also contain

onBlur="self.focus()

so the popup window will remain in focus until it is closed.

The popup window may contain anything you want. If you want the countdown numbers in the form field, like in the example, you must have a form name="time" with a name="timeleft" field. he form may contain other fields, too, if you wish.

If the popup window is a call for action, a button or link must be provided. If the action includes displaying another page, you can launch a new window by putting

onClick="window.open('http://domain.com/')"

into a type="button" or type="submit" input tag. For a text (or image) link, it would be something like this:

Click Here

There you have it; a complete kit :)

William Bontrager

Programmer/Publisher,
"WillMaster Possibilities" ezine


http://willmaster.com/possibilities/


subscribe-possibilities@willmaster.com


Business Home Page: http://willmaster.com/

Free Images!! Free Web Page!!

Download free images for you web site!!
Click here!
Free personal web site!!
COMING SOON!
Click here for Sample!

Button Tool
Need Button Tool for your web designing?
The best animation tool
Sign up and join. Refer customers and You will get commission!

Button Tool

OR

Gif Art
Features:



Prespectives

Technical Questions & Answers by Eric
Coming Soon!!


Creating Killer Web Sites 2nd. ed
BY: David Siegel
Buy your copy of Creating
Creating Killer Web Sites Second Edition
has over 50% new material and HTML updates. the link below to order!

Order or Take a look here:

Also Visit Killer Site Web Page


Creating Great Web Graphics
by Laurie McCanna
1 Ed
Paperback, 167 pages
List: $27.95 -- Amazon.com Price: $22.36 --
You Save: $5.59(20%)
Published by Mis Pr
Publication date: March 1,1996
Dimensions (in inches): 10.04 x 8.02 x .43
ISBN: 1558284796
Availability: This item can be shipped on the next weekday.

Check Out Creating Web Graphics


The Invention that changed the world:
How a Small Group of Radar Pioneers Won
the Second World War and Launched a
Technological Revolution (Sloan tech)
by Robert Buderi
Hardcover, 544 pages
List: $30.00 -- Amazon.com Price: $24.00 -- You Save: $6.00(20%)
Published by Simon & Schuster
Publication date: October 1,1996
Dimensions (in inches): 9.64 x 6.58 x 1.62
ISBN: 0684810212

Check It Out Here




Hot Links - FREE Technical HELP
We are affiliated with Simply Computers - FREE PC Tech Support & Helpdesk that is available 24X7. The website includes - Instant Tech Support, a Hardware Troubleshooter, Computer Diagnostic Software, Links and E-Mail Tech Support. Technicians have backgrounds in all aspects of the personal computer including Hardware, Software, Networking, Programming, and Internet.



Banner 10000024
springtime
Money Cover

Asiatravelmart.com
the best casino online!! click here!
iNetBet.com - The best casino online!! Click here to win $$$!



Copyright 2000 - 2001 Boomers International ™ , All rights reserved.

FastCounter by LinkExchange


 

Internet
Resources
Boomers Index
Research Tools
Featured Sites
LOG IN
 
More
Features
NewsLetter
HOROSCOPES
About B.I.
More Articles
Vietnam Vets
Boomer History
Hippies Web Site
Politics 2000
Love Songs
Bmr Of The Month
Easy Listening
Where Are They
Business WebRing
Information and Fun
Weekly Articles
Serious Side of Life
Awards
Comments
 

Boomer's Musics Land


Do You Like This Internet Resource? Recommend-It (tm) to a Friend!