Vorlage:SetHTMLContent
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
| (Der Versionsvergleich bezieht 15 dazwischenliegende Versionen mit ein.) | |||
| Zeile 1: | Zeile 1: | ||
<noinclude> | <noinclude> | ||
| - | {{ | + | (1) <tt><nowiki>{{SetHTMLContent|JS}}</nowiki></tt> |
| - | Type= | + | {{SetHTMLContent|JS}} |
| - | {{ | + | |
| - | </noinclude><includeonly>{{#switch:{{{ | + | (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> | |JS=<html> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
| - | function | + | function SetHTMLContent(ID,HTMLText) |
{ | { | ||
| - | + | eCell = document.getElementById(ID); | |
| - | eCell = | + | |
if (eCell) { | if (eCell) { | ||
| - | eCell.innerHTML = | + | eCell.innerHTML = HTMLText; |
} | } | ||
} | } | ||
</script></html> | </script></html> | ||
| - | | | + | |#DEFAULT=<html><script type="text/javascript">SetHTMLContent('</html>{{{1}}}<html>','</html>{{{2}}}<html>');</script></html> |
| - | + | ||
| - | + | ||
| - | + | ||
}}</includeonly> | }}</includeonly> | ||
Aktuelle Version vom 18:55, 7. Feb. 2022
(1) {{SetHTMLContent|JS}}
(2) {{SetHTMLContent|Bg1-S1|yyy}}
Type=InfoSet: "xxx" => "xxx"
