Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
function info()
{
this.visible = false;
this.id = 0;
this.inElement = null;
this.infoBox = null;
this.show = function(id, mode, message){
this.inElement = document.getElementById(id);
this.visible = true;
this.infoBox = document.getElementById('infoBox');
this.infoBox.style.display = 'block';
this.infoBox.style.position= 'absolute';
this.infoBox.style.zIndex = '99';
// im modus std soll der letzte Inhalt des elements beibehalten werden
if(mode=='std'){
this.inElement.insertBefore(this.infoBox, this.inElement.firstChild);
return true;
}
elseif(mode=='node'){
var include = node;
}else{
var include = document.createTextNode(message);
}
//alte Daten entfernen
for (var i=0; i < this.noticeContent.childNodes.length; i++)
this.infoBox.removeChild(this.infoBox.childNodes[i]);
this.infobox.appendChild(include);
//neue Daten einfügen
this.inElement.insertBefore(this.infoBox, this.inElement.firstChild);
return true;
}
}
var info = new info();
info.show(1, "std", "");