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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JavaScript in Seperate file.

    First off hello im new here,

    I've have a quick look on how to solve this is your FAQ, but still confused.

    I want to move my java script to a seperate file (called "jump-to-script.js")

    but can not get it too work its a simple javascript drop down menu, am trying to use this.

    <script type="text/javascript" src="Jump-To-Script.js"></script>
    To direct the code, and this is the link, the user will press, if u need the script let me know

    thanks in advance


    <a href="../Mainpages/Contact.htm" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu2, '150px')" onMouseout="delayhidemenu()">
    Scrap Yards by Brand |</a>
    the menu works when its in the same file.

  • #2
    New Coder
    Join Date
    Dec 2006
    Location
    GB
    Posts
    79
    Thanks
    3
    Thanked 1 Time in 1 Post
    Try renaming it jumptoscript.js, it could be the hyphens that stop it from working.

  • #3
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,151
    Thanks
    203
    Thanked 2,548 Times in 2,526 Posts
    I want to move my java script to a seperate file (called "jump-to-script.js")

    <script type="text/javascript" src="Jump-To-Script.js"></script>

    More likely the caps. JavaScript is case sensitive.

  • #4
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for the help guys will give it ago


  •  

    Posting Permissions

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