Hallo Leute!
Ich möchte gern die Schriftart aus einem Optionsfeld in einen bbcode umwandeln und diesen in einem Textarea wieder ausgeben.
Ich habe folgende Zeilen geschrieben und festgestellt daß das nur im IE funktioniert.
Firefox geht schon mal gar nicht in die Funktion insert rein.
Leider gibt der Firefox und co auch keine Fehlermeldung aus.
Was ist daran falsch?:
Ich möchte gern die Schriftart aus einem Optionsfeld in einen bbcode umwandeln und diesen in einem Textarea wieder ausgeben.
Ich habe folgende Zeilen geschrieben und festgestellt daß das nur im IE funktioniert.
Firefox geht schon mal gar nicht in die Funktion insert rein.
Leider gibt der Firefox und co auch keine Fehlermeldung aus.
Was ist daran falsch?:
PHP-Code:
echo "Schriftart : ";//Schriftart
echo "<select name='art' onchange=\"insert('[font=' + art.options[art.selectedIndex].value + ']', '[/font]', 'te')\">";
echo "<option selected='selected' value=''>Schriftart</option>";
echo "<option style='font-family: Arial;' value='Arial'>Arial</option>";
echo "<option style='font-family: Arial Black;' value='Arial Black'>Arial Black</option>";
echo "<option style='font-family: Century Gothic;' value='Century Gothic'>Century Gothic</option>";
echo "<option style='font-family: Comic Sans MS;' value='Comic Sans MS'>Comic Sans MS</option>";
echo "<option style='font-family: Georgia;' value='Georgia'>Georgia</option>";
echo "<option style='font-family: Verdana;' value='Verdana'>Verdana</option>";
echo "<option style='font-family: Courier New;' value='Courier New'>Courier New</option>";
echo "<option style='font-family: Times New Roman;' value='Times New Roman'>Times New Roman</option>";
echo "<option style='font-family: Trebuchet MS;' value='Trebuchet MS'>Trebuchet MS</option>";
echo "<option style='font-family: Impact;' value='Impact'>Impact</option>";
echo "</select>";
Kommentar