SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Resource

HTML Tooltips

Categories...
Client User Group
Site Design, Write Once!
Language
JavaScript
Product
IE4, NS4
Task
Cross-Browser DHTML, Menus/ Popups, Rollovers
Technology
Dynamic Positioning, HTML

Sponsored Links
Developer's Paradise : Inside Technique :
HTML Tooltips
Submission by SiteExperts Staff

Go to the resource:
HTML Tooltips

Add to Assistant

Short Description
Cross-browser technique for adding HTML pop-up tips to any link on your web page.

Long Description
Cross-browser technique for adding HTML pop-up tips to any link on your web page.

Author
Scott Isaacs
Submission URL
http://www.SiteExperts.com/tips/elements/ts10/page1.asp
Submission Date
Mar 6,1998
 

Discussion and Rate this Resource
Overall Rating: 4

cpyofkev on Dec 27, 2003 at 12:08:49 AMRating: 4

It works with IE6 but not NS7.

In any case if you replace the last statement "window.onload = doLoad" with the following code, you don't have to insert <div> element in the HTML page:

function initTooltip() {
  window.onload = doLoad;

  var docBody = document.getElementsByTagName("body").item(0);
  var tipBox = document.createElement("div");
  var tipText = document.createTextNode("This is a new sentence.");
  tipBox.appendChild(tipText);
  tipBox.id = "tipBox";
  docBody.appendChild(tipBox);
}

initTooltip();

Jim Williams on Jun 28, 2001 at 10:23:32 AMRating: 4
I like the approach that works for Netscape 6 (which is a new case, having neither layers nor document.all).

I looked around the Web for an update, but the closest thing I could find was the "rollover helper function" at http://www.insidedhtml.com/tips/elements/ts28/page1.asp.
ydlooi on May 20, 2001 at 11:08:30 PMRating: 4
This is a very nice piece of work,but when i put it into frame, i experienced a problem.It is an object undefined error, maybe same the problem which PhoenixDataCIS meet.
So any mistake i made?
Pls help me to find a solution.
mail me at:
ydlooi@hotmail.com
syrynj on Mar 9, 2001 at 1:28:28 AMRating: 3

The invention of hot water ??

http://www.webreference.com/js/column16/

(from at least 2 years ago....)

nikita on Mar 8, 2001 at 4:44:34 AMRating: 4
Nice tool, but I can't use it since
it doesn't work properly if you have
layers (DIV) in your page...

:^(

More Ratings/ Comments


To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.