PDA

View Full Version : Can I put 3 java scripts together to create one?



robin9000
06-08-2009, 05:00 PM
I would like to know if I can take the following javascripts
http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.js
and the last one....
<script type="text/javascript">

ddsmoothmenu.init({
mainmenuid: "smoothmenu1", //menu DIV id
orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu', //class added to menu's outer DIV
//customtheme: ["#1c5a80", "#18374a"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

ddsmoothmenu.init({
mainmenuid: "smoothmenu2", //Menu DIV id
orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
//customtheme: ["#804000", "#482400"],
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>

and put these all togeather and make them into one external script.


The below link is the menu I am working with
http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm

I know I can do it as it says to do and have done so but would like to condense it into one if possible?


Thank you.