Based on the jquery horizontal accordion effect is a jquery-based left and right slide accordion image carousel switch effect. As follows:
Online preview Source Download
As follows:
<Divclass= "Flash"> <Divclass= "Con"> <ul> <Liclass= "Current Ti1"> <H3>About Us</H3> <Divclass= "Show"> <imgsrc= "Images/big_1.jpg"/> <imgsrc= "Images/big_2.jpg"/> <imgsrc= "Images/big_3.jpg"/> <imgsrc= "Images/big_4.jpg"/> </Div> </Li> <binclass= "Ti2"> <H3>Contact Us</H3> <Divclass= "Show"> <imgsrc= "Images/big_5.jpg"/> <imgsrc= "Images/big_6.jpg"/> <imgsrc= "Images/big_7.jpg"/> <imgsrc= "Images/big_8.jpg"/> </Div> </Li> <Liclass= "Ti3"> <H3>Leave a message for me</H3> <Divclass= "Show"> <imgsrc= "Images/big_1.jpg"/> <imgsrc= "Images/big_3.jpg"/> <imgsrc= "Images/big_5.jpg"/> <imgsrc= "Images/big_7.jpg"/> </Div> </Li> <Liclass= "Ti4"> <H3>Website Home</H3> <Divclass= "Show"> <imgsrc= "Images/big_2.jpg"/> <imgsrc= "Images/big_4.jpg"/> <imgsrc= "Images/big_6.jpg"/> <imgsrc= "Images/big_8.jpg"/> </Div> </Li> </ul> </Div></Div>
JavaScript code:
varTimer=NULL;varI=0;$(function(){ $(". Flash. Con ul li"). MouseOver (function() {clearinterval (timer); }); $(". Flash. Con ul li"). Click (function(){ $( This). Stop (). Animate ({width: "970px"},300). Siblings (). Stop (). Animate ({width: "46px"},300) }); $(". Flash. Con ul li"). Mouseout (function() {Timer=setinterval ("Startmove ()", 2000) }); })functionStartmove () {i++; if(i>$ (". Flash. Con ul li"). Length-1) {i=0} $(". Flash. Con ul li"). Stop (). EQ (i). Animate ({width: "970px"},300). Siblings (). Stop (). Animate ({width: "46px"},300)};timer=setinterval ("Startmove ()", 2000)
via:http://www.w2bc.com/article/43486
Based on jquery transverse accordion effect