1125 Posts in 304 Topics by 428 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1521 Views |
-
how can I merge Javascript code

1 July 2009 at 9:03pm Last edited: 1 July 2009 11:06pm
hallo,
I want to build a simple moseover and mouseout function into my navi (grafik-elements).
I have uploaded a code in: mysite->javascript->my.js -- (I tried it out already at a simple HTML file) --then I inserted the following code in my head page.ss :
function init(){
parent::init();
Requirements::javascript("mysite/javascript/my.js");
}hm? did i forget something.
thanks in advance. m. -
Re: how can I merge Javascript code

2 July 2009 at 12:03pm
Merge? You mean insert JS code into the page?. That should be all you need to do to include the JS on the page.
If you want to merge multiple JS files into 1 and include that you do
Requirements::combine_files('output.js', array('file1.js', 'file2.js'));
| 1521 Views | ||
|
Page:
1
|
Go to Top |


