Homepage selbermachen 7.846 Themen, 35.563 Beiträge

HTML-Area

real_burner / 7 Antworten / Flachansicht Nickles

Hi, hab ein Problem mit HMTL Area und zwar wie kann ich eigene CSS-Styles einfügen. Das mit der Area-Hilfe funkt net so wirklich, oder ich mach was falsch


<<CODE Anfang>>


<html>
<head>
<title>HTMLArea</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!--  -->


<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = "";                     // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
 document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
 document.write(' language="Javascript1.2"></scr' + 'ipt>'); 
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>


<!--  -->
</head>


<body>
<script language="JavaScript1.2" defer>
var config = new Object(); // create new config object


config.width = "72%";
config.height = "200px";
config.bodyStyle = 'background-color: #FFFFFF; font-family: "Verdana"; font-size: 10pt;';
config.debug = 0;


// Add additional editor config settings here...


config.toolbar = [
  ['fontname'],
  ['fontsize'],
  ['bold','italic','underline','separator'],
  ['strikethrough','subscript','superscript','separator'],
  ['justifyleft','justifycenter','justifyright','separator'],
  ['OrderedList','UnOrderedList','Outdent','Indent','separator'],
  ['forecolor','backcolor','separator'],
//['custom1','custom2','custom3','separator'],
  ['HorizontalRule','Createlink','InsertImage','htmlmode','separator'],
  ['about','help']
];


 


editor_generate('textfield',config);
</script>
<input type="text" name="textfield">
</body>
</html>


<<CODE ENDE>>


so, kann mir jetzt jemand sagen was ich ändern muss, damit meine eigenen CSS'es erscheinen!


 


mfg & thx

bei Antwort benachrichtigen