Jump to content

[SOLVED]How to PUT Length Converter?


Recommended Posts

That code you linked to is very messy. I cleaned up a bit, but it is still pretty messy. It does appear to work though. Change the product description line I mentioned above from:

{$product->description}



to:

>
<div id="idTab1" class="rte">{$product->description}

   <style type="text/css">#mort_cal_1 br{ldelim}display:none{rdelim}</style>
   <div style="width:210px;text-align:center">
       <div style="border:1px solid #000;background-color:#fefefe;padding:0;margin:0;align:center;text-align:center;overflow:hidden">
           <div id="xcolor1_1" style="font-size:12px;color:#173a00;line-height:16px;font-family:arial;font-weight:bold;background:#94abf0;padding:3px 1px;text-align:center">
               <a href="http://www.bestconverter.org/unitconverter_length.php" alt="Length Converter" title="Length Converter" id="upper_link" style="color:#000;font-size:14px;text-decoration:none;line-height:16px;font-family:arial;">Length Converter

           <script type="text/javascript" src="http://www.bestconverter.org/js/unitconverter_length2.js"></script>
</pre>
<table width="99%" align="center" style="text-align:left;background-color:#fefefe;color:#222;">From:<input type="text" size="20" name="valuefromlength2" id="valuefromlength2" value="1" onkeyup="cc_length2();"></td><script type='text/javascript'>ins_length2('selectfromlength2');</script>To:<input type="text" size="20" name="valuetolength2" id="valuetolength2" value="1" onkeyup="cc_length2();"></td><script type='text/javascript'>ins_length2('selecttolength2');</script>Result:</table>
<br><br><br



This will add the length converter after the product description.

Link to comment
Share on other sites

×
×
  • Create New...