SELF-Treffen in Mannheim 2025
SELFHTML wird 30 Jahre alt!
Die Mitgliederversammlung findet am 24.05.2025 um 10:00 statt. Alle Mitglieder und Interessierte sind herzlich eingeladen.
Davor und danach gibt es Gelegenheiten zum gemütlichen Beisammensein. → Veranstaltungs-Ankündigung.
Beispiel:Text automatisch markieren.html
Aus SELFHTML-Wiki
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8" >
<title>Sonderzeichen</title>
<style type="text/css" media="screen,projection" title="Autorenformatvorlage">
body { font-family:georgia,'times new roman',arial,verdana,geneva,serif; text-align:center; }
table { border-collapse:collapse; border-spacing:0; empty-cells:show; margin:auto; }
th, td { padding:0.3em; border:thin solid #aaa; }
tbody th { width:2.5em; padding:0; font-size:3em; line-height:1.2; }
input:focus { background-color:#fffafa; }
</style>
<script type="text/javascript">
// <![CDATA[
Function.prototype.forEach = function (list) {
for (var i = 0; elem = list[i]; i++) {
this(elem);
}
return this;
};
function markieren (elem) {
if (document.selection && document.selection.createRange) {
var textRange = document.selection.createRange();
textRange.moveToElementText(elem);
textRange.select();
} else if (document.createRange && window.getSelection) {
var range = document.createRange();
range.selectNode(elem);
var selection = window.getSelection();
selection.removeAllRanges();
selection.addRange(range);
}
}
window.onload = function () {
// Weise allen th- und td-Elementen den Event-Handler zu
(function (elem) {
elem.onmouseover = function () {
markieren(this);
};
}).forEach(document.getElementsByTagName("th")).forEach(document.getElementsByTagName("td"));
};
// ]]>
</script>
</head>
<body>
<p>Fahren Sie mit der Maus über eine Tabellenzelle, wird der enthaltene Text direkt kopierfertig markiert.</p>
<table>
<thead>
<tr>
<th>Zeichen</th>
<th colspan="2">Windows 1252<br >Dezimal</th>
<th colspan="2">Unicode Dezimal<br >Zeichenreferenz</th>
<th colspan="2">Unicode Hexadezimal<br >Zeichenreferenz</th>
<th colspan="2">Entity-Referenz</th>
</tr>
</thead>
<tbody>
<tr>
<th>› ‹</th>
<td>0155</td>
<td>0139</td>
<td>&#8250;</td>
<td>&#8249;</td>
<td>&#x203A;</td>
<td>&#x2039;</td>
<td>&rsaquo;</td>
<td>&lsaquo;</td>
</tr>
<tr>
<th>» «</th>
<td>0187</td>
<td>0171</td>
<td>&#187;</td>
<td>&#171;</td>
<td>&#x00BB;</td>
<td>&#x00AB;</td>
<td>&raquo;</td>
<td>&laquo;</td>
</tr>
<tr>
<th>‚ ‘</th>
<td>0130</td>
<td>0145</td>
<td>&#8218;</td>
<td>&#8216;</td>
<td>&#x201A;</td>
<td>&#x2018;</td>
<td>&sbquo;</td>
<td>&lsquo;</td>
</tr>
<th>„ “</th>
<td>0132</td>
<td>0147</td>
<td>&#8222;</td>
<td>&#8220;</td>
<td>&#x201E;</td>
<td>&#x201C;</td>
<td>&bdquo;</td>
<td>&ldquo;</td>
</tr>
<tr>
<th>’</th>
<td colspan="2">0146</td>
<td colspan="2">&#8217;</td>
<td colspan="2">&#x2019;</td>
<td colspan="2">&rsquo;</td>
</tr>
<tr>
<th>–</th>
<td colspan="2">0150</td>
<td colspan="2">&#8211;</td>
<td colspan="2">&#x2013;</td>
<td colspan="2">&ndash;</td>
</tr>
<tr>
<th>—</th>
<td colspan="2">0151</td>
<td colspan="2">&#8212;</td>
<td colspan="2">&#x2014;</td>
<td colspan="2">&mdash;</td>
</tr>
<tr>
<th>¼</th>
<td colspan="2">0188</td>
<td colspan="2">&#188;</td>
<td colspan="2">&#x00BC;</td>
<td colspan="2">&frac14;</td>
</tr>
<tr>
<th>½</th>
<td colspan="2">0189</td>
<td colspan="2">&#189;</td>
<td colspan="2">&#x00BD;</td>
<td colspan="2">&frac12;</td>
</tr>
<tr>
<th>¾</th>
<td colspan="2">0190</td>
<td colspan="2">&#190;</td>
<td colspan="2">&#x00BE;</td>
<td colspan="2">&frac34;</td>
</tr>
<tr>
<th>×</th>
<td colspan="2">0215</td>
<td colspan="2">&#215;</td>
<td colspan="2">&#x00D7;</td>
<td colspan="2">&times;</td>
</tr>
<tr>
<th>…</th>
<td colspan="2">0133</td>
<td colspan="2">&#8230;</td>
<td colspan="2">&#x2026;</td>
<td colspan="2">&hellip;</td>
</tr>
<tr>
<th>∗</th>
<td colspan="2"></td>
<td colspan="2">&#8727;</td>
<td colspan="2">&#x2217;</td>
<td colspan="2">&lowast;</td>
</tr>
</tbody>
</table>
</body>
</html>