|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
#1
|
|||
|
|||
|
1) Script Title: AnyLink Drop Down Menu
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pmenuindex.htm 3) Describe problem: How can I put the javascript bit into a separate .js page rather than in the <head> to try and reduce the size of the webpage. |
|
#2
|
||||
|
||||
|
Just place everything between the <script> tags in a seperate .js file and call the file in the <head> of the document like so:
Code:
<script type="text/javascript" src="anylink.js"> /*********************************************** * AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ </script>
__________________
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989 The Testing Site | Atomic Yeti |
| The Following User Says Thank You to thetestingsite For This Useful Post: | ||
flyingpig (07-11-2008) | ||
|
#3
|
|||
|
|||
|
Cheers that's helped, sorted it now.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|