webdizzy77
02-03-2012, 05:53 PM
1) Script Title:
AnyLink JS Drop Down Menu v2.3
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem:
Hello. this is a VERY amateur problem. normally when I use the scripts there is just a script to copy and paste and to customize. However i have found that all of the drop down menu scripts have external files to download and link to. So, I thought that's fine. However I have tried so many different scripts with external files instead of just putting the script directly into my code and can never get it to work correctly. I would honestly much rather just put the code into my code without external files but cannot find a good code that does that.
I do realize i could easily do it with CSS but don't want to because I need the javascript to override other elements on my page with out using absolute positioning (but that's a whole other issue...)
Anyways, this AnyLink JS Drop Down Menu v2.3 script for example, has 3 external files:
anylinkmenu.js
menucontents.js
anylinkmenu.css
And I think you link to them in the head:
<link rel="stylesheet" type="text/css" href="anylinkmenu.css" />
<script type="text/javascript" src="menucontents.js"></script>
<script type="text/javascript" src="anylinkmenu.js">
however i have realized that only in scripts with external files, i cannot get to work on my page. I have of course tried uuploading the files to my go daddy site under html. Also I have tried changing the src="" to the whole link like www.page.com/file.js instead of just file.js
I know it has to be that i am not linking to external files correctly but i dont know... all the scripts have external files, instead of just copy and paste into your head and body and then customize..
AnyLink JS Drop Down Menu v2.3
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm
3) Describe problem:
Hello. this is a VERY amateur problem. normally when I use the scripts there is just a script to copy and paste and to customize. However i have found that all of the drop down menu scripts have external files to download and link to. So, I thought that's fine. However I have tried so many different scripts with external files instead of just putting the script directly into my code and can never get it to work correctly. I would honestly much rather just put the code into my code without external files but cannot find a good code that does that.
I do realize i could easily do it with CSS but don't want to because I need the javascript to override other elements on my page with out using absolute positioning (but that's a whole other issue...)
Anyways, this AnyLink JS Drop Down Menu v2.3 script for example, has 3 external files:
anylinkmenu.js
menucontents.js
anylinkmenu.css
And I think you link to them in the head:
<link rel="stylesheet" type="text/css" href="anylinkmenu.css" />
<script type="text/javascript" src="menucontents.js"></script>
<script type="text/javascript" src="anylinkmenu.js">
however i have realized that only in scripts with external files, i cannot get to work on my page. I have of course tried uuploading the files to my go daddy site under html. Also I have tried changing the src="" to the whole link like www.page.com/file.js instead of just file.js
I know it has to be that i am not linking to external files correctly but i dont know... all the scripts have external files, instead of just copy and paste into your head and body and then customize..