jQuery to Simple Image Scroller

In this first jQuery tutorial we will develop a program that simple image scroller

jQuery to Simple Image Scroller

jQuery to Simple Image Scroller


In this first jQuery tutorial we will develop a  program that simple  image scroller

Steps to develop the program

Step 1:

Create a new file (simple_carousel.html) and add the following code into

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
<title>jCarousel Examples</title>
<link href="../style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="script/jquery-1.2.3.pack.js">
<script type="text/javascript" 
<link rel="stylesheet" type="text/css" 
<link rel="stylesheet" type="text/css" 
href="style/skin.css" />

<script type="text/javascript">

jQuery(document).ready(function() {


<div id="wrap">
<ul id="mycarousel" class="jcarousel-skin-tango">
<li><img src="images/w1.gif" width="75" height="75" alt="i1" />
<li><img src="images/w2.gif" width="75" height="75" alt="i2" />
<li><img src="images/w3.gif" width="75" height="75" alt="i3" />
<li><img src="images/w4.gif" width="75" height="75" alt="i4" />

Program explanation:

The following code includes the jQuery JavaScript library file:

<script type="text/javascript" src="script/jquery-1.2.3.pack.js"></script>
<script type="text/javascript" src="script/jquery.jcarousel.pack.js"></script>


Function is called 



When you run the program in browser it will look like following screen shot:


Check online demo of the application

Learn from experts! Attend jQuery Training classes.