Solved

Help with gallery slider Jquery

Posted on 2012-03-12
3
585 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Expert Comment

by:Mrunal
ID: 37713873
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 35

Accepted Solution

by:
gr8gonzo earned 500 total points
ID: 37714267
Try changing your call to:

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

Author Comment

by:bmanmike39
ID: 37714327
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 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