Solved

Help with gallery slider Jquery

Posted on 2012-03-12
3
570 Views
Last Modified: 2012-03-27
I can’t figure out how to get this gallery to work.  The slider app is jquery.jcoverflip.js

This is my code, all I get is two bulleted list items.:

<html xmlns="http://www.w3.org/1<wbr ></wbr>999/xhtml"<wbr ></wbr>>

<head>

<title>Test 1</title>
<script type="text/javascript" src="jquery-1.7.1.min.js"><wbr ></wbr></script>

<script type="text/javascript" src="ui/jquery.ui.js"></sc<wbr ></wbr>ript>
<script type="text/javascript" src="jquery.jcoverflip.js"<wbr ></wbr>></script><wbr ></wbr>

<script type="text/javascript">

$(function(){
    $('#flip').jcoverflip();
 
  });
  
    Add the styles to your site: 
      .ui-jcoverflip {
        position: relative;
      }
      
      .ui-jcoverflip--item {
        position: absolute;
        display: block;
      }

</script>


</head>

<body>

<ul id="flip">
    <li><a href=""><img../lemons1/1.j<wbr ></wbr>pg><span class="title">My title</span></a></li>
    <li><a href=""><img../lemons1/2.j<wbr ></wbr>pg><span  class="title">Another title</span></a></li>
    ...
  </ul>

</body>

</html>

Open in new window



Thanks.
0
Comment
Question by:bmanmike39
3 Comments
 
LVL 22

Expert Comment

by:Mrunal
Comment Utility
First of all add this in your css:

ul, ul li {
    display: block;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

And try by adding your code for jCoverFlip after body tag.

$(function(){
    $('#flip').jcoverflip();
});

If still not working then check by running same page in firefox with firebug addon. you will get proper error if any.
0
 
LVL 34

Accepted Solution

by:
gr8gonzo earned 500 total points
Comment Utility
Try changing your call to:

$(document).ready(function() {
  $('#flip').jcoverflip();
}
0
 

Author Comment

by:bmanmike39
Comment Utility
I ran firebug and don't quite know how to use it but i don't see an error.  below is what i have.  I followed the instructions.  Don't understand whats going on.

This is what i have.

<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.7.2/ui/minified/jquery-ui.js"></script>
<script type="text/javascript" src="jquery.jcoverflip.js"></script>

<script type="text/css">

      .ui-jcoverflip {
        position: relative;
      }
      
      .ui-jcoverflip--item {
        position: absolute;
        display: block;
      }
}
</script>

</head>

<body>

<script type="text/javascript">
$(function(){
    $('#flip').jcoverflip(); 
});
</script>



<ul id="flip">
    <li><a href="http://www.gmx3.com"><img src="../lemons1/1.jpg"><span class="title">My title</span></a></li>
    <li><a href="http://www.gmx3.com"><img src="../lemons1/2.jpg"><span  class="title">Another title</span></a></li>
    ...
  </ul>

Open in new window

0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now