newbie issue
-
Ok… totally blank… need help figuring this out please…
have script at
https://mdn-realtors.com/mortgage-calculators/calculators.php
installed new wordpress on site.. need to have script show in page of wordpress..
https://mdn-realtors.com/?page_id=25
how to… please
Viewing 1 replies (of 1 total)
-
You need to bring the javascript into your template:
So, link this from the header.php (with the appropriate new path):
<script type="text/javascript" src="https://www.mdn-realtors.com/calculators.js"></script>
For this particular page you also have this script, so maybe you’d want to create a special page template with this code in it:
<script type="text/javascript"><!-- tips = new Array(); tips['loan_amount'] = "Enter the exact amount of money to be borrowed."; tips['interest_rate'] = "Enter the actual interest rate on the loan, as quoted by the lender."; tips['loan_term'] = "Enter the number of years over which the loan will be amortized."; tips['tax'] = "Enter the amount of Property Tax assessed by the municipality governing your property."; tips['insurance'] = "Enter the amount you pay annually for Home Owners Insurance."; tips['income'] = "Enter your true Gross Annual Income, or the amount of income you recieve before taxes."; tips['debt'] = "Add up all monthly installment loan payments (e.g. car, boat, student, furniture), Minimum Monthly Payments on Credit Cards, Monthly Legal Obligations (e.g. child support, alimony, court judgements)."; //--></script>
Then you’d paste in your data to the actual WordPress page from the WordPress editor:
<table id="texttable" align="center" cellpadding="5"><tr><td align="left"> Want to know how big of a loan you can take on? Fill in the boxes below to find out. </td></tr></table><br /> <table align="center" cellpadding="5"><tr><td valign="top"> <form method="post"> <table class="calc" cellpadding="5" cellspacing="0" align="center" width="100%"> <tr> <th colspan="3"><b>How much can I borrow?</b></th> </tr> <tr><td align="right"> Annual Interest Rate: </td><td> <input class="calc_input" type="text" name="param[interest_rate]" value="6.5" size="3"> % </td><td valign="middle"> <img id="interest_rate" src="images/tip.gif" width="19" height="19" onMouseOver="show_tip(this.id)" onMouseOut="hide_tip()" align="absMiddle"> </td></tr> <tr><td align="right"> Term of the Loan: </td><td> <input class="calc_input" type="text" name="param[loan_term]" value="30" size="3"> years </td><td valign="middle"> <img id="loan_term" src="images/tip.gif" width="19" height="19" onMouseOver="show_tip(this.id)" onMouseOut="hide_tip()" align="absMiddle"> </td></tr> <tr><td align="right"> Annual Real Estate Taxes: </td><td> <input class="calc_input" type="text" name="param[tax]" value="3,500" size="3"> $ </td><td valign="middle"> <img id="tax" src="images/tip.gif" width="19" height="19" onMouseOver="show_tip(this.id)" onMouseOut="hide_tip()" align="absMiddle"> </td></tr> <tr><td align="right"> Annual Homeowners Insurance: </td><td> <input class="calc_input" type="text" name="param[insurance]" value="300" size="3"> $ </td><td valign="middle"> <img id="insurance" src="images/tip.gif" width="19" height="19" onMouseOver="show_tip(this.id)" onMouseOut="hide_tip()" align="absMiddle"> </td></tr> <tr><td align="right"> Gross Annual Income: </td><td> <input class="calc_input" type="text" name="param[income]" value="120,000" size="8"> $ </td><td valign="middle"> <img id="income" src="images/tip.gif" width="19" height="19" onMouseOver="show_tip(this.id)" onMouseOut="hide_tip()" align="absMiddle"> </td></tr> <tr><td align="right"> Monthly Debt Obligations: </td><td> <input class="calc_input" type="text" name="param[debt]" value="1,500" size="3"> $ </td><td valign="middle"> <img id="debt" src="images/tip.gif" width="19" height="19" onMouseOver="show_tip(this.id)" onMouseOut="hide_tip()" align="absMiddle"> </td></tr> </table> <br /> <table cellpadding="5" cellspacing="0" align="center" width="100%"> <tr><td align="center"> <input class="calc_button" type="submit" name="param[calculate]" value="Calculate"> </td></tr> </table> <!-- DO NOT REMOVE THE LINE BELOW. SEE THE LICENSE AGREEMENT. THANKS --> <div id="powered_by">Powered by <a href="https://www.mortgagecalculatorsplus.com/">Mortgage Calculators Plus</a></div> <!-- DO NOT REMOVE THE LINE ABOVE. SEE THE LICENSE AGREEMENT. THANKS --> </td></tr></table>
Hope that gets you headed in the right direction.
Viewing 1 replies (of 1 total)
- The topic ‘newbie issue’ is closed to new replies.