+ Reply to Thread
Results 1 to 3 of 3

Thread: How to save Java as an external file

  1. #1
    Join Date
    Jun 2004
    Location
    Pensacola, Florida
    Posts
    185

    Default How to save Java as an external file

    I've created a rotating banner using Java. I want to save the script as an external file, so could someone please give me step by step instructions.

    TIA
    beachgal
    Realtor and wannabe webmistress.

    Pensacola Real Estate
    Florida Pre-Construction Condos

  2. #2
    Join Date
    Jul 2005
    Location
    Boston, MA
    Posts
    566

    Default Re: How to save Java as an external file

    I assume that you mean javascript, if so:

    1. Save the javascript in an external file (give it a name such as banner.js).
    2. Upload the banner.js file in the directory of your choice (let's assume that you place it in your root directory).
    3. Within your index.htm file, place the following tag inside the <head> tag, for instance:

    <head>
    ...
    ...
    <SCRIPT SRC="banner.js"></SCRIPT>
    </head>

    4. Upload your index file, and you should now have the ability to call the banner.js code from the index file.

    Let me know if that works for you.
    285 Columbus Lofts - New 63-unit Boston loft development in the former Red Cross building
    FP3 Boston Condos - FP3 Fort Point Channel Boston Seaport Condos
    Boston Real Estate - Providing Google Map based search of condo developments

  3. #3
    Join Date
    Jun 2004
    Location
    Auckland, New Zealand
    Posts
    594

    Default Re: How to save Java as an external file

    and omit the <script> tags and the <!-- bits from the javascript file. They're not needed.

    Normal javascript comments can start with //

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts