Mnemonic
07-18-2003, 08:18 AM
I need a sctipt that simply does a find and replace on some html code.... its to change daily rates on a website for a calculation form.... here's the current code:
<input name="submit" type="image" src="images/button.gif" onClick="calculate(5.875,5.75,5.375); return false;" value="Calculate")>
it would be for a 30 year, a 20 year, and a 15 year mortgage. but i also need to change the text that displays that.
<tr bgcolor="#FAF4DC">
<td style="border-style:solid;border-width:1 1 1 1px;border-color:#8288C2;">
<p>Rate:</p></td>
<td style="border-style:solid;border-width:1 1 1 1px;border-color:#8288C2;">
<p>5.875%</p></td>
<td style="border-style:solid;border-width:1 1 1 1px;border-color:#8288C2;">
<p>5.750%</p></td>
<td style="border-style:solid;border-width:1 1 1 1px;border-color:#8288C2;">
<p>5.375%</p></td>
</tr>
Now once i change it once, the script wont find the text its looking for, right?
I dont know how to do this, please help
<input name="submit" type="image" src="images/button.gif" onClick="calculate(5.875,5.75,5.375); return false;" value="Calculate")>
it would be for a 30 year, a 20 year, and a 15 year mortgage. but i also need to change the text that displays that.
<tr bgcolor="#FAF4DC">
<td style="border-style:solid;border-width:1 1 1 1px;border-color:#8288C2;">
<p>Rate:</p></td>
<td style="border-style:solid;border-width:1 1 1 1px;border-color:#8288C2;">
<p>5.875%</p></td>
<td style="border-style:solid;border-width:1 1 1 1px;border-color:#8288C2;">
<p>5.750%</p></td>
<td style="border-style:solid;border-width:1 1 1 1px;border-color:#8288C2;">
<p>5.375%</p></td>
</tr>
Now once i change it once, the script wont find the text its looking for, right?
I dont know how to do this, please help