Page 1 of 1

js not working

Posted: Sat Feb 25, 2012 5:51 am
by barreybanu
i have using two js file one for menu drop down,second is slide show
the slide show work well,but the drop down is not working
If i remove the slide js the drop down is working


<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" title="style (screen)" >
<link type="image/gif" href="images/favicon.ico" rel="icon">
<script src="js/drop_menu.js" type="text/javascript"></script>

<script src="scripts/jquery-latest.js" type="text/javascript"></script>
<script src="scripts/jquery.flexslider.js" type="text/javascript"></script>
<script src="scripts/jquery.flexslider-min.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
$(window).load(function() {
$('.flexslider').flexslider();
});
</script>

this include code

:?
what can i do for working both js


thank in advance

Re: js not working

Posted: Sat Feb 25, 2012 6:30 am
by Gopesh
Hi,try to place drop_menu.js after jquery libaray file like this

Code: Select all




<script src="scripts/jquery-latest.js" type="text/javascript"></script>
<script src="js/drop_menu.js" type="text/javascript"></script>
<script src="scripts/jquery.flexslider.js" type="text/javascript"></script>
<script src="scripts/jquery.flexslider-min.js" type="text/javascript"></script>
Hope that this solves ur problem.
Debugging Tips:
Use Ctrl +shift +J to get the javascript or jquery errors .(It works only with Firefox)