TravisMath
03-15-2005, 01:34 AM
In this code
<script language="JavaScript" type="text/javascript>
code = "<body>";
code += "<table border="1" width="750" height="383">";
code += "<tr height="17.5">";
code += "<td width="302" height="1" align="center" valign="top"><b>Title: </b>" + title + "<br><b>Author: </b>" + author + "</td>";
code += "<td valign="top" rowspan="2" height="377"><u><b>Synopsis</b></u><font size="2">: " + synopsis + "</font>";
code += "<p> <p> <p> <p> <p> <p> <p align="center">";
code += "<img border="0" src="http://users4.ev1.net/~java4jim/" + condition + "_small.jpg">";
code += "<p align="center">";
code += "<a href="http://users4.ev1.net/~java4jim/condition.htm">condition=" + condition + "</a></td>";
code += "</tr>";
code += "<tr height="17.5">";
code += "<td width="302" height="320" align="center">";
code += "<img border="0" src="" + picture + ""></td>";
code += "</tr>";
code += "</table>";
code += "<p> </p>";
code += "<p>Please click <a href="http://users4.ev1.net/~java4jim/condition.htm">here</a> to see our rating system for the";
code += " condition of books.</p>";
code += "<p>Happy Bidding</p>";
document.write("<form name='form1'><textarea name='code' rows='20' cols='70' readonly='readonly'>" + code + "</textarea></form>");
is there a way to create a line break between each "code" line. So that when it writes the value code in the textbox there are designated line spaces.
<script language="JavaScript" type="text/javascript>
code = "<body>";
code += "<table border="1" width="750" height="383">";
code += "<tr height="17.5">";
code += "<td width="302" height="1" align="center" valign="top"><b>Title: </b>" + title + "<br><b>Author: </b>" + author + "</td>";
code += "<td valign="top" rowspan="2" height="377"><u><b>Synopsis</b></u><font size="2">: " + synopsis + "</font>";
code += "<p> <p> <p> <p> <p> <p> <p align="center">";
code += "<img border="0" src="http://users4.ev1.net/~java4jim/" + condition + "_small.jpg">";
code += "<p align="center">";
code += "<a href="http://users4.ev1.net/~java4jim/condition.htm">condition=" + condition + "</a></td>";
code += "</tr>";
code += "<tr height="17.5">";
code += "<td width="302" height="320" align="center">";
code += "<img border="0" src="" + picture + ""></td>";
code += "</tr>";
code += "</table>";
code += "<p> </p>";
code += "<p>Please click <a href="http://users4.ev1.net/~java4jim/condition.htm">here</a> to see our rating system for the";
code += " condition of books.</p>";
code += "<p>Happy Bidding</p>";
document.write("<form name='form1'><textarea name='code' rows='20' cols='70' readonly='readonly'>" + code + "</textarea></form>");
is there a way to create a line break between each "code" line. So that when it writes the value code in the textbox there are designated line spaces.