Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best solution for 'pop-up' help

Status
Not open for further replies.

Glasgow

IS-IT--Management
Jul 30, 2001
1,669
GB
I want to be able to display very brief (i.e. a few words or a short sentence) of 'pop-up' help in some shape or form when a user hovers over (or clicks on) a 'button' or text. At the moment, I am achieving this via an <a> tag whose 'title' property is set to the value of the text AND, when clicked, the code below is triggered to fire a new window containing the same message but I have a few problems:

a) How can I achieve an empty title bar in the window that pops up.
b) Can I make it appear as a task in the Windows task bar?
c) How can I clear the previous content of the pop-up window on susbsequent calls?

Or is there a better way of doing this altogether - via CSS perhaps? My problem with using the title tag alone is that it's not obvious to the user that a hover action will trigger the help and if they follow an instinct to click, the displayed text disappears.


Code:
<SCRIPT LANGUAGE="JavaScript" Type="text/javascript">
<!--
function OpenHelpWindow(HelpMsg)  {
  NewWindow=window.open ("", "myWindowTwo", "toolbar=no, menubar=no, width=200, height=100, top=300, left=500, scrollbars=no, resizable=yes");
  NewWindow.document.write('<title>.</title><p style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:8.5pt; color=green; }">' + HelpMsg + '</p>');
  NewWindow.document.close;
}
//-->
</SCRIPT>

Thanks in advance
 
Take a look at OverLib . Very configurable pop-ups. You can make the popup appear on hover or on click, and control its disappearance.

To see how I implemented it, click here. Hovering over individual events pops up a description.

Mike Krausnick
Dublin, California
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top