Announcement

Collapse
No announcement yet.

Adding custom javascript to all HTML docs

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

    Adding custom javascript to all HTML docs

    last question before I turn in for the night

    I want to add a snippet of javascript to the bottom of all my pages. Is there any way of editing one template to do this or do I need to go through each individual html document?

    basically i want to add Worldpay code that displays the Powered by... details

    Cheers
    London Kettlebells

    #2
    If you want that code at the very bottom of all of the pages, then you would need to do it in 2 templates, Act_Primary.html and Act_BrochurePrimary.html, unless you are using additional primary templates for the brochure and checkout pages that is.

    Positioning will ultimately be down to yourself, but at the bottom of both templates you should fine a </BODY> tag.

    Just above this, add in the java script, which I presume is the ...

    <script language="JavaScript" src="http://www.worldpay.com/cgenerator/cgenerator.php?instId=###YOURWORLDPAYID###"></script>

    Hope that helps....

    Comment


      #3
      Cheers

      Just a quick question...do you guys ever sleep?
      London Kettlebells

      Comment


        #4
        sometimes.....

        Comment


          #5
          Aha!

          The classic sleep at work ruse. I'm an expert at that
          London Kettlebells

          Comment


            #6
            Always asleep with electrodes attached to our bodies alerting us to problems....

            Always sleep through pager beepss LOL

            Just kidin

            Comment

            Working...
            X