Domanda

I have recently been working on a site and have implemented both light window and easyslider. They both work fine on their own but if you combine the two of them then either easy slider works or light window. I have come to the conclusion that they are both trying to use a function with the same name but with different declarations...

The address for the site is http://semaphoredesign.com/web-devel/oceanair/

Just fixed the missing prototype.js file

È stato utile?

Soluzione

To use Prototype and jQuery together:

<script type="text/javascript" src="scripts/easyslider/js/jquery.js"></script>
<script type="text/javascript">
    // declare a global variable set to jQuery.noConflict();
    var jq = jQuery.noConflict();
    // in all jQuery scripts, use jq (or whatever you call the global) instead of $.
</script>

Altri suggerimenti

When i look in my console in chrome i'm seeing that you're getting a 404 on your prototype.js, which lightwindow wants. Try addressing that and see what happens.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top