Jump to content

Runing two javascripts on same page problem?


budimir

Recommended Posts

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!!!

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.