]> err.no Git - sope/blob - skyrix-sope/samples/TestSite/plone/plone_formtooltip.js
added svn:keywords and svn:ignore where appropriate. removed CVS artifacts.
[sope] / skyrix-sope / samples / TestSite / plone / plone_formtooltip.js
1
2
3
4
5 // Tooltip-like help pop-ups used in forms
6
7   function formtooltip(el,flag){
8     elem = document.getElementById(el);
9     if (flag) { 
10       elem.parentNode.parentNode.style.zIndex=1000;
11       elem.parentNode.parentNode.style.borderRight='0px solid #000';
12       // ugly , yes .. but neccesary to avoid a small but very annoying bug in IE6
13       elem.style.visibility='visible';
14     }
15     else {
16       elem.parentNode.parentNode.style.zIndex=1;
17       elem.parentNode.parentNode.style.border='none';
18       elem.style.visibility='hidden' };
19   }
20
21