...

View Full Version : JavaScript in Seperate file.



james13009
06-17-2007, 02:54 PM
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.

Jacka
06-17-2007, 03:58 PM
Try renaming it jumptoscript.js, it could be the hyphens that stop it from working.

Philip M
06-17-2007, 04:49 PM
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.

james13009
06-17-2007, 05:46 PM
thanks for the help guys will give it ago



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum