Instant Info

This article shows you how to code an instant information system that can place

   ~~ definitions,
   ~~ instructions, and
   ~~ other information

near your site visitor's cursor. The information appears when the cursor hovers over certain links or when certain form fields are clicked.

The information pre-loads as the web page loads. Thus, it can appear instantly.

This instant info system uses layers to present the info. If you would like to use alert boxes or popup windows instead, see the "FastInfo, Build Your Own JavaScript Pop-Up Windows" ebook, sold at http://willmaster.com/a/17/pl.pl?pie4

Why instant info? Here are examples of how it may be used:

  1. As additional information related to a link, to be presented when the cursor is over the link. For example, your link might be "Best Widgets" and the instant info could be "We searched far and wide for the best of the best. This is it!"
  2. You offer many colors of each item. To print them all, would make your web page appear cluttered. With this system, you could have a "Colors" link that launches an instant list of colors.
  3. You have a list of ingredients, parts, or other components. The instant info for each component could be a list of amount and quality required, what it's function is, whether or not it's actually necessary, substitution suggestions, alternate measurements, and so forth.
  4. Instant hints, for quiz or problem solving pages.
  5. Instant explanation of what data is expected or required, for form fields.
  6. Instant help at any point on your web page.

The instructions are in this article instead of in the JavaScript. The JavaScript has instructions related only to the one section in the script that needs to be customized.

You implement it in three steps:

  1. Create your web page with your instant info links and/or instant info form fields.
  2. Create the content that will be instantly available.
  3. Install the JavaScript.

Each step requires the prior step to be completed.

If you prefer to have a complete example at hand as you go through the instructions, you'll find it linked from http://willmaster.com/a/17/pl.pl?art179

The code has been tested to work with IE 5, Netscape 4, Netscape 6, and Opera 6.

I. Creating Your Instant Info Links and Form Fields

For links, it is rather straight-forward. Go ahead and create the links.  If the href="____" attribute of any links do not contain a URL to another web page, replace the attribute with href="javascript:Null()"

Once you've created the links, insert

into each link anchor tags.

See the number 1 between the parenthesis? The numbers need to be sequential -- (1), (2), (3), and so forth. It would look something like this:

For form fields, add the following two attributes to the form field tag:

That number (1) needs to be sequential with other instant info form fields and instant info links. Let's suppose you had three instant info links above a form, and your form has two instant info form fields. The form fields might look something like this:

II. Creating the Instant Info Content

This needs to be done in two parts, creating a CSS Style in the HEAD area and creating the content itself in the BODY area.

III. Installing the JavaScript

At this point, unless you've already done so, pick up the JavaScript from the demonstration page at http://willmaster.com/a/17/pl.pl?art179

The JavaScript has instructions and is, itself, an example of how to do it.

 

Will Bontrager

Copyright 2002 Bontrager Connection, LLC
"WillMaster Possibilities" ezine
http://willmaster.com/possibilities/

traffic

WebDesigners-Directory 

 

ROR  

www.bessed.com

code_an_instant_info_systemdlperry.com

design     develop    enhance     manage     software

dlperry.com

HOME

XML Content FeedsRSS Content FeedsROR Search Engine Feeds 

[website services] [site enhancements] [professional cgi] [contact us] [web site resources] [Free Info Center] [business resources]
[dlperry.com] [internet website resources] [InstantInfo System]

H O M E

About dlperry.com:
   Sitemaps
   Contact Info
   Designers Bio
   References
        -->portfolio
        -->testimonials
   Legal
        -->orders & payments
        -->privacy

Website Services:
   Website Design
        -->intuitive design?
        -->the design process
        -->design guide
        -->cost estimator
   RSS Feeds
   Site Management
   Website Promotion
   in Google in days
        -->boost your site traffic.
        -->Google on Sitemaps.
           PageRank and more.

Site Enhancements:
   Autoresponders
   Custom 404
   Forms
   Syndicators
   Free scripts

Professional CGI:
   B-mailer™
   ClickWatch
   FormJobber
   Grab-n-Code

Business Resources:
   Finance
   Data Management
   Directories & Forums
   Programming
   Software
   Web Development
   Misc. Tools

Internet Resources:
   Bontragers’ weekly
   Possibilities ezine
   FAQ
        -->cgi faq
        -->design
        -->domain names
        -->general
   Free Info Center
   Free-Wares
   Website Resources:
        -->How To’s:
        -->Tips:
        -->Tools:
   SpiderSite
   More -->

Intuitive website design, enhancements, functionality for websites, site management and web site promotion, RSS, ROR, SEO


 

Resources for Website Managers and Designers

 

 

Intuitive InSite

~ Blog-Etiquette ~

Google Sitemaps Beta
"We use Google Sitemaps to inform Google's crawler about all your pages and to help people discover more of your web pages."

Add to Google 

I <3 SEOmoz 

 

Master Form V4