ok….dis is what i gots so far for an html to visual text comverter(ignore tha ~’s):
~
<HTML>
<HEAD>
<TITLE>View It! Editor v. 1.0.2</TITLE>
<script language=”JavaScript1.2″><!–
if (document.getElementById)
document.write(‘<STYLE TYPE=”text/css”>n#SUB {font-family:arial;font-size:10px;background-color:black;font-weight:bold;color:orange;border-width:0;border:solid;border-color:#000000;}n#TXT {background-color:white;color:black;font-family:ocra extended;}n</STYLE>’);
//–>
</script>
</HEAD>
<BODY background=”000000″ leftmargin=”0″ topmargin=”0″ marginwidth=”0″ marginheight=”0″>
<center>
<script language=”Javascript”>
<!–
var x = 0;
var s = ‘/’;
function display() {
srce = open(“”, “displayWindow”, “toolbar=no,scrollbars=yes,status=yes”, “width=100%, height=100%”);
srce.document.open();
srce.document.write(document.html.code.value);
srce.document.close();
}
//–>
</script>
<p align=center border=0>
<br>
<fieldset align=”center” style=”width:50%;height:50%;text-align:center”>
<legend style=”width:auto;height:auto;color:orange;text-align:center;font-family:arial;font-size:9pt;”>View It! Editor v. 1.0.2</legend>
<center>
<form name=”html” target=”dsp”>
<textarea name=”code” id=”TXT” ROWS=15 COLS=42 wrap=”virtual” onfocus=”if(x++ == 0) this.value=”;” align=”center”></textarea>
<br>
<input type=”button” id=”SUB” onclick=”display()” value=”View It!”>
<input type=”reset” id=”SUB” value=”Reset”>
</form></center>
</fieldset>
</p>
</center>
</BODY>
</HTML>
~
howeva…….dis code creates a popup output area…….
and i need ta target da input to tha frame named “dsp”.
i believe you change the target preferences here:
~
srce = open(“”, “displayWindow”, “toolbar=no,scrollbars=yes,status=yes”, “width=100%, height=100%”);
srce.document.open();
srce.document.write(document.html.code.value);
srce.document.close();
~
howeva, i may be wrong. if ya can, pleaz help me out.
thanx
XaTaKu_NaKuSuTe