Announcement

Collapse
No announcement yet.

Where is </body>?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Where is </body>?

    I need to place a little piece of third party JavaScript into my HTML which is recommended just before the </body> and </html> tags. However, since moving to Business 6.1.2 I cannot see this code in any of the templates. Indeed, it does not appear in the source if I view via the browser.

    Any ideas where they have disappeared to?

    #2
    its at the bse of act_primary.html

    Comment


      #3
      They are in Act_Primary.html right at the end (where else) on my 6.1.2 system using the standard demo site with theme Curves.

      Norman
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Ah ha, that's where we're I would have thought. However.....

        [code]
        </TABLE>
        </td>
        </tr>
        <tr valign="middle" align="center">
        <td colspan="2" height="45" background="bottom_bg.gif">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="45">
        <tr valign="middle" align="left" background="bottom_bg.gif">
        <td width="12%"><a href="NETQUOTEVAR:NAVBHOMELINK" target="NETQUOTEVAR:NAVBHOMETARGET"><img src="home.gif" width="100" height="15" border="0" alt="NETQUOTEVAR:NAVBHOMETEXT"></a></td>
        <td width="12%"><a href="NETQUOTEVAR:NAVBCATALOGLINK" target="NETQUOTEVAR:NAVBCATALOGTARGET"><img src="online_shop.gif" width="100" height="15" border="0" alt="NETQUOTEVAR:NAVBCATALOGTEXT"></a></td>
        <td width="12%"><a href="NETQUOTEVAR:NAVBCARTLINK" target="NETQUOTEVAR:NAVBCARTTARGET"><img src="view_basket.gif" width="100" height="15" border="0" alt="NETQUOTEVAR:NAVBCARTTEXT"></a></td>
        <td width="12%"><a href="NETQUOTEVAR:NAVBCHECKOUTLINK" target="NETQUOTEVAR:NAVBCHECKOUTTARGET"><img src="checkout.gif" width="100" height="15" border="0" alt="NETQUOTEVAR:NAVBCHECKOUTTEXT"></a></td>
        <td width="13%"><a href="NETQUOTEVAR:NAVBMAILLINK" target="NETQUOTEVAR:NAVBMAILTARGET"><img src="contact_us.gif" width="100" height="15" border="0" alt="NETQUOTEVAR:NAVBMAILTEXT"></a></td>
        <td width="13%" align="center">&nbsp;</td>
        <td width="13%"><img src="back_to_top.gif" width="100" height="14" border="0" alt="Back to top" OnClick="GotoAnchor('top')"></td>
        </tr>
        </table>
        </td>
        </tr>
        [code]

        is the last HTML in Act_Primary.html

        I assume I can place these end of page tags just under this? Or, what's missing?

        Comment


          #5
          it looks to me as if you have over editted your act_primary



          you may get way with just adding

          </BODY>
          </HTML>

          to the base of the template

          Comment


            #6
            If I recall, the only way I may have over-wrtten was when I upgraded the software last time.

            The issue is that there is a company called SiteStats (www.sitestats.co.uk) that provides web site stats. One needs to add some 5 lines of JavaScript code between the <body> and </body> tags on each page. This is how I found there was no </body> in Act_Primary.html as for ease of use they recommend placing the code just before the <\body> tag.

            What transpires is that the Javascript can be anywhere within the page, however they call a 12x12 transparent pixel. I have thus placed the Javasctipt just beneath the aforementioned code (which I assume is the end of Act_Primary) and I get a 12 pixel high line though the 'Funky' template I am using, just above the menu.

            I think I will try and place the </body></html> tags as has been suggested, but I cannot understand why the end of Act_Primary then shoves the code up abd above the navigation menu.

            What about the Footer template. Could I add the script there I wonder?

            Comment


              #7
              The snippet of code you posted appears to end in a </tr> indicating that you're still in a <table>. I'd try adding </table> before the </body></html> and then try putting your new code just before the </body>.

              Code inside a table should only appear within <td> and </td> statenments otherwise browsers place it in really wierd parts of the page.

              Norman
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment

              Working...
              X