[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 599
  • Last Modified:

Help with gallery slider Jquery

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
bmanmike39
Asked:
bmanmike39
1 Solution
 
MrunalCommented:
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
 
gr8gonzoConsultantCommented:
Try changing your call to:

$(document).ready(function() {
  $('#flip').jcoverflip();
}
0
 
bmanmike39Author Commented:
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now