mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
3118d32464
- adding new files for help display
16 lines
539 B
JavaScript
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';
|
|
}
|
|
|
|
|
|
|