开发者

Need help resolving a JavaScript conflict using jQuery Anything Slider

The site has an existing rotating header banner and I am attempting to add CSS-Trick's AnythingSlider to the body.

When the AnythingS开发者_Python百科lider is added, the rotating banner breaks. Here is my test page http://www.visfire.com/slidertest.html. Please see the home page to view the current rotating banner in action. I have tried turning off different versions of the multiple jQuery libraries referenced in the head but have not had any success.


This is actually quite a simple solution. You have your jquery.js file (which is the header rotator code) before the actual jquery javascript file.

Currently you have this:

<script src="js/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Swap those two and you get:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="js/jquery.js" type="text/javascript"></script>

That should do the trick.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜