Home Ajax Jquery jQuery to Vertical Image Scroller



jQuery to Vertical Image Scroller
Posted on: September 8, 2008 at 12:00 AM
In this first jQuery tutorial we will develop a program that vertical image scroller

jQuery to Vertical Image Scroller

     

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

Steps to develop the program

Step 1:

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

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
<head>
<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>
<script type="text/javascript" 
src="script/jquery.jcarousel.pack.js">
</script>
<link rel="stylesheet" type="text/css" 
href="style/jquery.jcarousel.css" />
<link rel="stylesheet" type="text/css" 
href="style/skin.css" />

<script type="text/javascript">

jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
vertical: true,
scroll: 2
});
});

</script>

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

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 

jQuery('#mycarousel').jcarousel(

 When this function  having attributes vertical: true,
  scroll: 2

  

This set the animationType, speed,timeout and show thetype of data.

  

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.

Related Tags for jQuery to Vertical Image Scroller:
jquerycqueryimagetutorialscrollriathisprogramtoramicalverticaleilimdevfirstincalmcajscrollerageprotorsatisirhalldeveloprttutorscrssrollerrithsthatmageicaicaprogrolo


More Tutorials from this section

Ask Questions?    Discuss: jQuery to Vertical Image Scroller   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.