We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10031
    • 69 Posts



    Hi,
    Would you please inform how may I include one javascript call inside the body of my template?
    As you can see in the code:
    <div id="caja2">
                   
              <div id="binding">
    	  <img src="../mapasp~1/podocarpus.jpg" width="340" height="500" alt="Reserva Ecologica Antisana" style="border:0px solid;"/>
              </div>
                     
              <script type="text/javascript">
    	      loadMagnifier("binding", "../mapasp~1/podocarpus.jpg", 1863, 2000);
              </script>
    
    </div>

    it is necessary and the call only work good from here (it works without problems from html page only from the body section.
      • 17499 ☆ A M B ☆
      • 872 Posts
      Use a chunk and just copy past your javascript in it, that’s all:

      <script type="text/javascript">
      	      loadMagnifier("binding", "../mapasp~1/podocarpus.jpg", 1863, 2000);
                </script>
      


      But you should use a dom ready function and put your script either on the header or after the content of your page.