Tipster v3.0
by Angus Turnbull - http://www.twinhelix.com.
Updated: 28 August 2002.
Well, welcome to Tipster! I hope you find this script
useful in some way or form.
Feature List:
- Object-orientated for ease of use, and multiple tip systems per page.
- Customisable positions and dimensions for each tip...
- Tips can be offset from mouse position or positioned via
formulae.
- Tips can be static or track the mouse around the screen, with
customisable degrees of stickiness.
- You can have hierarchial nested tips if you want...
- Tips restrained by window -- always appear within screen borders.
- In IE/Windows or NS6, tips can fade in and out at a custom speed.
- You can add tips to any object that supports onMouseOver and onMouseOut.
- Tip template replacement engine means you can customise anything -- colours,
sizes, content...
- Tips can have advanced HTML formatting...
- It's just basically cool, it is. Small code too, naturally...
Enjoy! - Gus.
Conditions of Use:
- This script is provided as-is, without a warranty of any kind, as although I strive
to make it as compatible as possible I cannot guarantee it will work in all target
environments, so test thoroughly.
- You may not redistribute this in any form, either intact or modified, without my consent.
- On sites that use this script, you should place a visible link to the splash page of my
site, with a short description, for example:
"DHTML / JavaScript provided by
TwinHelix Designs". (Please don't link to individual pages within this site as my splash
page detects browser capabilities). Also leave the my 'script name' comment in the source.
These stop interested users emailing the webmaster asking how to acquire the scripts.
If linking me doesn't suit your project...
- COMMERCIAL USERS: This script is 'donation-ware'. If you want to support this script
and/or you are using this script as part of a commercial project, please consider
making a donation via my site. After all, I
have probably saved you several months developing, debugging and documenting a comparable script.
Donors may take an optional exemption from a 'visible link' on the site, if that does not
fit your site design.
Version History
-
v3.0:
- Added ability to nest tips for multilevel tip menus.
- Now only X and Y values are compulsory in the tip arrays -- width and height are now
autodetected by the script and tips can be as large or small as their text requires.
- Made it possible to specify the show and hide delays for tip objects -- this should
also reduce the occurance of permanently visible tips.
- Added min/max alpha settings, so you can have tips remains translucent after showing.
- Included checking for mouse within tip boundaries in NS4 as the mouse event handling
in that browser is rather poor.
- Mouseovering now only stops static tips hiding, others will still fade out.
- Updated cross-browser code and example divs for better strict doctype compliance.
- Quite a few tweaks and another example (nested) tip object.
-
v2.1:
- Added ability to specify 'stickiness' as a constant for 'floating' tips.
- Added NS4 resize bugchecking code.
- Renamed the 'content' string to 'template' to make its function more obvious,
and rewrote parts of the accompanying documentation.
- Changed one template to include a tip header as an example of customisation.
- v2.0:
- Stole a feature from my 'Popup Menu' script. Now strings are interpreted as absolute
positions, while numbers are positioned relative to the current mouse position.
- Added ability to set non-tracking tips, now you can optionally specify that tips are
positioned absolutely/relatively when shown, but don't follow further mouse movements.
- Included my page object to access window dimensions.
- Fixed non-fatal scripting error popups in IE/Mac related to some installations
incorrectly reporting the presence of an active alpha filter.
- Added checking of left and top screen boundaries when positioning.
- Extended example to show off new features, and tweaked the comments a bit.
- v1.1:
- Updated with new Layer API code, with fixed alpha routine for IE installations on
Windows without filters support installed.
- Specified a small width on the div to stop IE4 resizing it to full window width and
causing scrollbars to appear.
- v1.0: