gecko-dev/webtools/litmus/js/Help.js
ccooper%deadsquid.com 3118d32464 b=335382
- adding new files for help display
2006-05-01 21:42:54 +00:00

16 lines
539 B
JavaScript

function toggleHelp(helpTitle,helpText) {
var em = document.getElementById("help");
if (toggleHelp.arguments.length < 1) {
em.innerHTML="";
em.style.display = 'none';
return;
}
var closeLink = '<div class="closeLink"><a name="closeHelp" onClick="toggleHelp();"><img class="chrome" src="images/close.png" />Close Help</a></div>'
em.innerHTML = '<div class="container"><div class="title">' + helpTitle + '</div><div class="content">' + helpText + '</div>' + closeLink + '</div>';
em.style.display = 'block';
}