<< Click to Display Table of Contents >> Navigation: Using script in HTML document > Interactive hints |
When script is running inside HtPanel, it is possible to show interactive hint window with HTML document.
Example:
<script type="passcript">
procedure showhint;
begin
document.control.ShowFloatHint(this, '<h3>This is hint</h3>', true);
end;
</script>
<a onclick="showhint()">Click me</a>
function ShowFloatHint(Element: TElement; Hint: string; Animated: boolean);
Element: hint element - hint will be hidden when mouse leaves this element.
Hint: hint text.
Animated - animated show.