Frameworks| Hibernate| Struts| JSF| JavaFX| Ajax| Spring| DOJO| JDO| iBatis| Questions?

Hot Searches
struts-config.xml  web.xml  Java date format  read/write text file using javascript  ArrayList  Insert Data into Database Using Hibernat  create text file using java  insert data to text file using java  Visual Basic Date and Time Display the t  Create table and insert data by sql quer 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments

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

                         

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

1 comments so far (
post your own) View All Comments Latest 10 Comments:

The code in the page mentions jquery.jcarousel.pack.js to be used. Which script file is this? What is its significance?

Posted by Vinod on Thursday, 12.11.08 @ 05:49am | #82646

Tell A Friend
Your Friend Name

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.