- Menu scripts
- Window scripts
- Calendar scripts
- Gallery scripts
- Form widgets
- Tab view scripts
- Table widgets
- Drag and drop
- Folder trees
- Tooltips
- AJAX scripts
- Content Effects

- Misc scripts
- Javascript games
- Chess widgets
- DHTML Suite
- Resources
- cbolson.com
Download tooltip for forms
Download script
You can download the entire script from this Zip file
Files included in the package:
- form-field-tooltip.html = Main demo HTML file
- js/form-field-tooltip.js = Main JS file for the script
- js/rounded-corners.js = JS file created to add rounded corners dynamically to the tooltip
- css/form-field-tooltip.css = Main CSS file for the tooltip
- images/* = Arrows used by teh script.
Configuration
Include files
First, you need to include the js files and css files as in the demo(form-field-tooltip.html)
Define tooltip text
Tooltip text is something you add manually to your <INPUT> or <TEXTAREA> tags by creating a tooltipText attribute. Example:
<input type="text" id="firstname" name="firstname" tooltipText="Type in your firstname in this box">
Initialize and configure the script
At the bottom of your page, add code similar to this:
<script type="text/javascript">
var tooltipObj = new DHTMLgoodies_formTooltip();
tooltipObj.setTooltipPosition('right');
tooltipObj.setPageBgColor('#EEE');
tooltipObj.setCloseMessage('Exit');
tooltipObj.initFormFieldTooltip();
</script>
Which methods you want to call depends on what you need. Look at the complete documentation for more help.
Comments
Post your comment
Please wait...



Please post and mail it to me :(
b.pasmans@rszk.nl
The IE9 problem has now been solved
How i can to put zIndex for arrow images?
I put this tooltip on popup, seems to be that work , but the problem is for arrow.
Thank you.
and give me an example
plz reply....
How to change the color of arrow?
thanks in advance
Thanks for this post.
I also put the tooltip to the left of the input object.
I made some changing I am happy its working in all browsers.
arrowDiv.styles.zIndex=1005;
in the js file.