Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    More Than 1 Javascript on page

    I am attempting to run 2 javascripts on a page. But it's not working. I looked up my dilemma, I believe on your site, however because I am using external files I'm not sure how to code this. I am including both HTML file and external files for review. Thank you in advance for all your help.
    Attached Files Attached Files
    Last edited by c5353; 03-20-2005 at 02:40 PM.

  • #2
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,466
    Thanks
    3
    Thanked 495 Times in 482 Posts
    first thing you need to do is put all your external JSs in the page

    what is this all about?

    <script menumaker>
    document.write('<scr'+'ipt src="xaramenu.js">'+'</scr'+'ipt>');
    document.write('<scr'+'ipt src="arrow.js">'+'</scr'+'ipt>');

    /*img src="Arrow.gif" moduleid="Albuquerque (Project)\Arrow_off.xws"*/
    </script></p>
    <p

    but if you want this sorted you need to post xaramenu.js but see my first comment

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    This is a very frequently asked question. Have a look at:-

    http://www.javascriptkit.com/javatut...iplejava.shtml

    Another source of problems is that the same variable or function name
    is used in two or more scripts which have been copied and pasted. The duplicate names must be eliminated. E.g. replace var x by var x1 in second script.


  •  

    Posting Permissions

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