Javascript on BANS sites

Discussion in 'Affiliate Programs' started by rhyswynne, Apr 25, 2008.

  1. #1
    Hi everybody!

    I'm trying to paste in a javascript bowling handicap calculator into my BANS site on a content page.

    The calculator I have uploaded to this page:-

    http://ultrabowling.info/calculator.htm

    Anyway, you can see, it works.

    When I create a new content page, and switch to HTML source code and paste the code in, it seems to work, except it adds on a <<[CDATA before and after the code, which seems to squiffs it up.

    You can see it here:-

    http://www.ultrabowling.info/bowling-handicap-calculator

    Has anybody manage to implement a calculator onto a site, and if so, how?
     
    rhyswynne, Apr 25, 2008 IP
  2. rhyswynne

    rhyswynne Active Member

    Messages:
    520
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Figured it out.

    If you wish to install a javascript on your site, do the following.

    1. Copy the Javascript code to a separate file (call it - for example - "calc.js").

    2. Put the following line in the content page for your site:

    
    <script src="http://www.yourdomain.com/calc.js" type="text/JavaScript">
    </script>
    Code (markup):
    You can then call the javascript functions from your forms.

    You can see the results here:-

    Bowling Handicap Calculator
     
    rhyswynne, Apr 26, 2008 IP
  3. cylai

    cylai Peon

    Messages:
    549
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hi: just wondering why you are putting the calculator?
     
    cylai, Apr 27, 2008 IP