morganshowman / jbanner Goto Github PK
View Code? Open in Web Editor NEWjQuery Plugin for displaying Image Slideshows and Rotating Banners
jQuery Plugin for displaying Image Slideshows and Rotating Banners
- 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>
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.