budimir Posted December 9, 2010 Share Posted December 9, 2010 Hey guys, I'm trying to run two javascripts on same page. One javascript is for the dropdown menu and second one is for the image gallery. I can't get them both to work in the same time. Only one of them is working. Either a dropdown menu or image gallery. Is it possible to have both javascripts on the same page??? Dropdown Navigation Menu code is: <script type="text/javascript" src="js/mootools-for-dropdown.js"> </script> <script type="text/javascript" src="js/UvumiDropdown-compressed.js"> </script> <link rel="stylesheet" type="text/css" media="screen" href="css/uvumi-dropdown.css" /> Image gallery code is: <script type="text/javascript" src="/high/highslide/highslide.js"></script> <link rel="stylesheet" type="text/css" href="/high/highslide/highslide.css" /> I'm not so good with javascript. I'm just following the instructions from the website. Thanks in advance!!! Quote Link to comment https://forums.phpfreaks.com/topic/221153-runing-two-javascripts-on-same-page-problem/ Share on other sites More sharing options...
requinix Posted December 9, 2010 Share Posted December 9, 2010 Yes, it's totally possible. But to figure out what's wrong will take more than you just pasting the My guess is that the second one running is overwriting event hooks that the first one created, but without being able to see everything working (or not) it's just a shot in the dark. Quote Link to comment https://forums.phpfreaks.com/topic/221153-runing-two-javascripts-on-same-page-problem/#findComment-1145144 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.