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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.