Skip to content
Snippets Groups Projects
Commit a385b588 authored by Martin Haase's avatar Martin Haase
Browse files

hicks

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@10410 7c539038-3410-0410-b1ec-0f2a7bf1c452
parent e76b92e3
No related branches found
No related tags found
No related merge requests found
jQuery.fn.center = function () {
this.css("position","absolute");
this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px");
this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px");
return this;
}
function displayhelp(inTitle, inText) {
var objTitle = $(inTitle);
var objText = $(inText);
var objReplace = $("<div id=\"div_helpContent\"><h3>" + inTitle + "</h3><p>" + inText + "</p></div>");
$("#div_helpContent").replaceWith(objReplace)
$("#div_helpWindow").css( "display", "block" );
$("#div_helpWindow").center();
}
//<div id=\"div_helpTitle\"><img src=\"closehelp.png\" class=\"closeHelp\" alt=\"Close\" /></div>
$(document).ready(
function() {
$("body").append(
"<div id=\"div_helpWindow\"><div id=\"div_helpContent\"><h3>Titel</h3><p>Text</p></div><div id=\"div_helpBottom\"><input type=\"button\" value=\"Schließen\" class=\"button closeHelp\" /></div></div>" );
$("#div_helpWindow").css( "display", "none" );
$("#div_helpWindow").center();
$("#div_helpWindow").find(".closeHelp").css( "cursor", "pointer" );
$("#div_helpWindow").find(".closeHelp").click(
function() {
$("#div_helpWindow").css( "display", "none" );
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment