Results 1 to 2 of 2

Thread: change to javcascript

  1. #1
    Join Date
    Apr 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default change to javcascript

    I have a script of popover
    is too long , I wish to make it to 2 javascript files
    but It didnt work
    please help
    Thank you

    The scripts as below

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Why make it two? One file is fine. Just get rid of (from the beginning):

    Code:
    <SCRIPT language='JavaScript' type=text/javascript>
    <!--
    and (from the end):

    Code:
    //-->
    </SCRIPT>
    Save it as java.js (the name isn't important, it's just a way to reference it in your page). Then in your page put:

    HTML Code:
    <script type="text/javascript" src="java.js"></script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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