I have a pretty simple question. I'm trying to insert this infinite carousel jQuery script into my HTML file: http://www.catchmyfame.com/catchmyfame-jquery-plugins/jquery-infinite-carousel-plugin/
I can't seem to figure out how to get it in there though. No matter what I've tried, the script yields no result. Can anyone help? I've never used jQuery before. Here is my code (it has a master page):
<%@ Page Title="" Language="C#" MasterPageFile="~/advisor.master" %>
<script runat="server">
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="js/infinitecarousel/jquery.infinitecarousel3.js"></script>
<script type="text/javascript">
$(function () {
$('#carousel').infiniteCarousel();
});
</script>
<style>
</style>
<div id="carousel"></div>
<ul>
<li><img alt="" class="auto-style1" src="image1.jpg" /></li>
<li><img alt="" class="auto-style1" src="image2.jpg" /></li>
<li><img alt="" class="auto-style1" src="image3.jpg" /></li>
</ul>
</asp:Content>
IIFEis intended and is correct. Used to insulate against possible other alias using$like prototype.js or mootools. This is expected for all jQuery pluginsjquery.infinitecarousel3.min.js. You need to write initialization code for the plugin per the plugin docs.<UL>or not. Am not familiar with the plugin itself. Docs should provide ideal html layout