Newbie sucht Hilfe. Ich möchte spanische Sonderzeichen darstellen. Bei Kleinbuchstaben kein Problem, bei Goßbuchstaben rutschen die aus der Mitte. Versuche nun die Großbuchstaben mittels SUB-Tag tieferzustellen. Klappt aber nicht, irgendwas mache ich falsch. Hier mein Codeschnipsel:
<body>
<form name="ScriptForm">
<input type="button" onclick="alert(document.body.outerHTML)" value="Click here to see HTML">
</form></body>
<script language="vbscript">
TestSub
Sub TestSub
Set TextFeld = document.createElement("<input type='text'>")
                TextFeld.name = "TextFeld"
	TextFeld.value = Chr(195) ' = Uppercase, Chr(227) = Lowercase
	TextFeld.id = "TextFeld"
	TextFeld.readonly = "yes"
	TextFeld.style.borderstyle = "solid"
	TextFeld.style.borderwidth = "2px"
	TextFeld.style.fontweight = "bold"
	TextFeld.style.fontsize = "62pt"
	TextFeld.style.height = "100px"
	TextFeld.style.width = "100px"
	TextFeld.style.top = "163px"
	TextFeld.style.left = "250px"
	TextFeld.style.color = "#0000FF"
	TextFeld.style.textAlign = "center"
	TextFeld.style.backgroundcolor = "#FFFF00"
	document.getElementById("ScriptForm").appendChild(document.createElement("sub"))
	document.getElementById("ScriptForm").appendChild(TextFeld)
	document.getElementById("ScriptForm").insertBefore(document.createElement("sub"))
End Sub
</script>
</html>
Egal, ob ich appendChild oder insertBerfore verwende, die Sub's werden im Quellcode nicht um den entsprechenden Buchstabe gelegt.
Hat jemand eine Idee ?
Gruß aus Spanien
Bertlmusch
 
		 
		
		
	