Please elaborate what you mean by calling the script from another JavaScript file. The initiliazation code for the script:
Code:
animatedcollapse.addDiv('jason', 'fade=1,height=80px')
can be called inside any .js file, as long as the reference to that file in your HTML comes after those for the animated collapsible div script itself:
Code:
<script type="text/javascript" src="jquery-1.2.2.pack.js"></script>
<script type="text/javascript" src="animatedcollapse.js">
/***********************************************
* Animated Collapsible DIV v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script src="myfile.js"></script>
Bookmarks