Danke schonmal für deine schnelle Antwort.
Hi,
<option>Comic</option>
<option>Normal</option>
<option>Kursiv</option>verwende das value-Attribut, um dem Klartext den technischen Bezeichner zuzuordnen.
Ich verstehe schon wieder nur Bahnhof *sorry* ich sag ja ich bin voll der Anfänger. Ist alles garnicht so leicht. Wo muss ich das value denn dann hinsetzen?
<font size="10"><font face="Comic Sans MS">
Für die Darstellung ist CSS da. Verwende *NICHT* das <font>-Element.
Hab ich mal versucht, siehe Beispiel - ich hoffe so ist es richtig?
<head>
Sowieso wäre <font> nur weit innerhalb des <body> erlaubt, keinesfalls außerhalb von <head>.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
Verwendest Du HTML4, HTML5 oder XHTML1?
ähmmmm *sorry*
<div id="ausgabe"style="position:absolute;top:10px;left:20px;z-index:4;" font size="5;" body bgcolor="transparent;">
Wo zur Hölle hast Du diese Attribute her?
Irgendwo hier im selfhtml gefunden :o) Warum? Ist das etwa so schlimm? :o) Ich dachte das wäre so okay, weil es ja auch funzt.
</body></font></font>
<html>
<head>
<title></title>Und diese Schachtelung? Zweiköpfiger Oger?
*hööö, ähm, ich weiß es leider auch nicht. Irgendwo hab ich das wohl gefunden.
Cheatah
Sorry, mir ist das voll peinlich, tut mir leid das ich so unwissend bin. Ich fange gerade erst an mich damit zu beschäftigen und bin echt dankbar über Hilfe.
So, hier jetzt nochmal:
<head> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Test</title>
<script type="text/javascript">
function schreibe() {var ausgabe1 = document.formular.ein.value;
document.getElementById('ausgabe').innerHTML = ausgabe1;
}
</script>
<style type="text/css">
s1 {
font-family: Comic;
}
s2 {
font-family: Arial;
}
s3 {
font-family: Monotype Corsiva;
}
F1 {
color: #FF0000;
}
F2 {
color: #000000;
}
F3 {
color: #840000;
}
</style>
</span>
<body>
<form name="formular">
<input type="text" name="ein" />
<input onclick="schreibe();" type="button" value="Eintragen" />
</form>
<div id="ausgabe"style="position:absolute;top:120px;left:10px;z-index:4;" font size="5;" body bgcolor="transparent;">
</div>
</body></font></font>
<html>
<head>
Schriftart:
<label>
<select name="Schrift[]" size="1" id="Schrift">
<option selected="Schrift">Wählen Sie die Schrift</option>
<option>Comic</option> <
<option>Normal</option>
<option>Kursiv</option>
</select>
</label>
<br>
Farbe:
<label>
<select name="Farbe[]" size="1" id="Farbe">
<option selected="Farbe">Wählen Sie die Farbe</option>
<option>Rot</option>
<option>Schwarz</option>
<option>Braun</option>
</select>
</label>
</form>