Persönliche Werkzeuge

Vorlage:SetHTMLContent

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
 
(Der Versionsvergleich bezieht 19 dazwischenliegende Versionen mit ein.)
Zeile 1: Zeile 1:
-
{{#switch:{{{Typ|-}}}
+
<noinclude>
-
|JS=<html><script type="text/javascript">
+
(1) <tt><nowiki>{{SetHTMLContent|JS}}</nowiki></tt>
-
function SetDBZelleInfo(Bg,Sp,Info)
+
{{SetHTMLContent|JS}}
 +
 
 +
(2) <tt><nowiki>{{SetHTMLContent|Bg1-S1|yyy}}</nowiki></tt> <br>
 +
Type=InfoSet: "xxx" => "<html><span id="Bg1-S1">xxx</span></html>" <br>
 +
{{SetHTMLContent|Bg1-S1|yyy}}
 +
 
 +
</noinclude><includeonly>{{#switch:{{{1|-}}}
 +
|JS=<html>
 +
<script type="text/javascript">
 +
function SetHTMLContent(ID,HTMLText)
{
{
-
  sCellID = Bg+'-'+Sp;
+
   eCell = document.getElementById(ID);
-
   eCell = getElementByID(sCellID);
+
   if (eCell) {
   if (eCell) {
-
     eCell.innerHTML = Info;
+
     eCell.innerHTML = HTMLText;
   }
   }
}
}
</script></html>
</script></html>
-
|InfoSet=s<html><script type="text/javascript">SetDBZelleInfo('</html>{{{Bg}}}<html>','</html>{{{Sp}}}<html>','</html>{{{Info}}}<html>');</script></html>s
+
|#DEFAULT=<html><script type="text/javascript">SetHTMLContent('</html>{{{1}}}<html>','</html>{{{2}}}<html>');</script></html>
-
|InfoAdd=a<html><script type="text/javascript">AddDBZelleInfo('</html>{{{Bg}}}<html>','</html>{{{Sp}}}<html>','</html>{{{Info}}}<html>');</script></html>a
+
}}</includeonly>
-
|InfoRep=r<html><script type="text/javascript">ReplaceDBZelleInfo('</html>{{{Bg}}}<html>','</html>{{{Sp}}}<html>','</html>{{{Info}}}<html>');</script></html>r
+
-
|DEFAULT=<span style="color:red">BD-Satz-BDZelleInfo: Typ fehlt oder unbekannt ({{{Typ}}}) !!!</span>
+
-
}}
+

Aktuelle Version vom 18:55, 7. Feb. 2022

(1) {{SetHTMLContent|JS}}

(2) {{SetHTMLContent|Bg1-S1|yyy}}
Type=InfoSet: "xxx" => "xxx"