js not working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
barreybanu
Forum Newbie
Posts: 3
Joined: Tue Apr 12, 2011 9:20 pm

js not working

Post 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
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Re: js not working

Post 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)
Post Reply