PDA

View Full Version : Any link drop down



Hawk
02-21-2006, 02:14 AM
I'm a little confused as to how to make this code

http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

an external link.
I use it on several pages on my site and it sure would be easier if it were external when I have to make changes.
Any help would be greatly appreciated.:D

sleipner
02-21-2006, 04:59 AM
keep the CSS in the head, and use an external src js after it, then use the links as it describes (onClick="action")


<script type="text/javascript" src="path/file.js">
/***********************************************
* AnyLink Drop Down Menu- &#169; Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>

then of course delete the javascript portion from the pages - I'm not sure how to call external css files, so you'll have to wait for somebody else on that one...

Hawk
02-21-2006, 05:19 AM
Thank you for your reply.
If I understand you right, I keep the call for the external js in the head as well, not in the body?
I'm pretty sure the call for the external css goes in the head, but I could be wrong.
I am kind of new to this stuff. :D