Monday, 29 September 2014

Jquery slide show in web application

Step1 :- Navigate to this url https://github.com/Pagawa/PgwSlideshow and then click on download zip at the right end bottom.

Step2 :- Now create a dynamic web project and place the css and js files like below.


Step 3 :-  Add some images as given above under images page. Then create a SlideShow.jsp under asp folder and paste below content.

<!DOCTYPE HTML><%@page language="java"
contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<html>
<head>
<title>SlideShow</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  <link href="css/pgwslideshow_light.css" rel="stylesheet" type="text/css">
  <link href="css/pgwslideshow_light.min.css" rel="stylesheet" type="text/css">
  <link href="css/pgwslideshow.css" rel="stylesheet" type="text/css">
  <link href="css/pgwslideshow.min.css" rel="stylesheet" type="text/css">
  <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
 <script type="text/javascript" src="js/pgwslideshow.js" ></script>
 <script type="text/javascript" src="js/pgwslideshow.min.js" ></script>
 <script type="text/javascript">
     $(document).ready(function() {
    $('.pgwSlideshow').pgwSlideshow();
});
 </script>

</head>
<body>
<ul class="pgwSlideshow">
    <li><img src="images/san-francisco.jpg" alt="San Francisco, USA" data-description="Golden Gate Bridge"></li>
    <li><img src="images/rio.jpg" alt="Rio de Janeiro, Brazil"></li>

</ul>
</body>

</html>

Step 4 :- Now run it on server you will be able to see slide show



Step 5 :- Best works in chrome,firefox



No comments:

Post a Comment

Custom single threaded java server

 package com.diffengine.csv; import java.io.*; import java.net.*; import java.util.Date; public class Server { public static void main(Str...