Forum Moderators: open
You don't need a link, it sounds as if you just need the
title attribute to add a tooltip. A couple of examples: Tooltip associated with a word:
<p>This is a sentence with a <acronym title="Your title text here">word</acronyn> highlighted.</p> Tooltip with a link:
<p><a href="link.html" title="Your title text here">A highlighted link</a></p> Tooltip on a heading:
<h1 title="Your title text here">This is your title</h1> Browsers won't add styles to visibly distinguish the text, though, although this only matters for the first example. For
acronym, Mozilla/Firefox adds a dotted underline, but Internet explorer doesn't. To fix this, you need to use a bit of CSS in your page head. Something like:
acronym {
border-bottom:1px dotted #000;
cursor:help;
} I hope that is what you are looking for!
If so, it's pretty easy. Some sort of a hyperlink is involved. It might look something like this:
<p><input type="checkbox" name="expert" value="1">
I am an expert in Quantum Mechanics.
<a href="javascript:window.open("WhatIsAnExpertInQuantumMechanics.htm","Expert",
"toolbar=yes,resizable=yes,width=400,height=400,scrollbars=yes");">Help?</a>
</p>note: a line break was added before"toolbar=yes to remove
the side scroll on this page - but the javascript should all be on
one line, so if you use it on your page, delete that line break.
Just reuse that link every time you want the window to pop up, but change the "WhatIsAnExpertInQuantumMechanics.htm" to be the name of a page with the Help information you want to display.
[edited by: tedster at 10:09 pm (utc) on Dec. 23, 2004]
[edit reason] fix side scroll [/edit]