Git Product home page Git Product logo

jbanner's Introduction

- README -

jBanner is a jQuery plugin for displaying Slideshows and Rotating Banners from an unordered list.

SETTINGS
--------
height			-- height of images
width			-- width of images
borderSize 		-- size of border around images
borderStyle		-- style of border around images
borderColor		-- color of border around images
padding			-- padding around images
margin  		-- margin around images
caption			-- display caption? true or false
cheight			-- height of caption
delay			-- transition delay
speed			-- transition speed

EXAMPLE
-------
[include]
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.jbanner.js"></script>

[html]
<ul id="banner">
  <li><a href="link1.html"><img alt="Image 1" src="image1.jpg" /></a></li>
  <li><a href="link2.html"><img alt="Image 2" src="image2.jpg" /></a></li>
  <li><a href="link3.html" target="_blank"><img alt="Image 3" src="image3.jpg" /></a></li>
</ul>

[javascript]
<script type="text/javascript">
  // Basic Call
  $("ul#banner").jBanner();

  // Advanced Call
  // Sets a custom height, width, padding, and turns captions off
  $("ul#banner").jBanner({height:280,width:420,caption:false,padding:5});

  // Turns captions on with a caption height of 35px, a transition
  // speed of 2 seconds, and a transition delay of 5 seconds
  $("ul#banner").jBanner({caption:true,cheight:35,speed:2000,delay:5000});
</script>

jbanner's People

Stargazers

Angus H. avatar Erik Wahlstrom avatar Morgan Showman avatar

Watchers

 avatar

jbanner's Issues

jbanner adds double padding setting as padding-bottom.

I think i've found an issue with this but not sure. if i set padding:40 it definitely spaces the next image out far enough away to hide it on the right hand side of current image.

however it also seems to add a double pad below the image. ie i now have a 80 pixel padding below the banner image.

can be seen at g-werks.eu test site.

apologies if i've misunderstood how to work jBanner, but i've read everything i can find in an attempt to fix this.

CSS validation error

Hi,

after validating css on a website where your script is included I get some minor errors.
Maybe you can fix them in the next releases.

pseude classes :first and :last have to be changed to :first-child and :last-child.

thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.