Scripts | JS tutorials | Applets | Web Tutorials | Forum | Freewarejava

spacer.gif (810 bytes)

Home / Free JavaScripts / Clocks, Calenders, And Timers / Here

Website Abstraction

Cut & Paste  Time limit on viewing document script (Required NS 3.x, 4.x, or IE 4.x)

Credit: Website Abstraction

Description: A script that sets a time limit on how long a surfer can spend viewing the document. The time left will be constantly shown at the status bar below. After time has expired (ie: 1 minute and 30 seconds), the browser will automatically navigate to another page, forcing the surfer out.

Example: Look at your status bar after the document has loaded to see how much time remains before you get ejected!

Directions:

Step 1: Insert the below in the <head> section of your page. Change var limit from 1:30 (1 min and 30 secs) to your own limit. If you want the limit to be less than 1 min (ie, 30 seconds), enter 0:30. Be sure to also change the target URL to be forced to from http://www.wsabstract.com to your own.

Step 2: Add the below to the <body> tag itself, like this:

<body onLoad="begintimer()">


Omnis web hosting- $1/month!
Omnis Network provides full-featured, affordable web hosting ($1/month) and domain name registration for small to mid-sized businesses. When you combine hosting on most plans with domain registration, there's a 50% discount. Get your site up today with Omnis!


spacer.gif (810 bytes)

.
CopyRight © 1997-1999 Website Abstraction. All rights reserved


spacer.gif (810 bytes)


Copyright © 2001 bogolubow@narod.ru BYN., ALL RIGHTS RESERVED
SE@RCHER BYN  logo are registered trademarks  Online in RuNet
 Last Updated:  Oct 10, 2001