April 24, 200917 yr Hi all. I know this is already the 3d post about noobSlide, but i read the previous posts tried to play with some js but i still can't figure out how it properly works. I want to create sample 7. So basically what i did was; Copy the java script(sample 7) to the <head> of my html file. After that i copied the html to the body(sample 7). All the files are in one folder on the desktop. I also download the mootools-1.2.2-core-yc.js.txt plug in but can't really understand what it's for. Here are the codes im using. <me<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>ta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript" src="mootools-1.2-core.js"></script> <script type="text/javascript" src="_class.noobSlide.packed.js"></script> <script type="text/javascript"> var startItem = 3; //or 0 or any var thumbs_mask7 = $('thumbs_mask7').setStyle('left',(startItem*60-568)+'px').set('opacity',0.8); var fxOptions7 = {property:'left',duration:1000, transition:Fx.Transitions.Back.easeOut, wait:false} var thumbsFx = new Fx.Tween(thumbs_mask7,fxOptions7); var nS7 = new noobSlide({ box: $('box7'), items: [0,1,2,3,4,5,6,7], handles: $$('#thumbs_handles7 span'), fxOptions: fxOptions7, onWalk: function(currentItem){ thumbsFx.start(currentItem*60-568); }, startItem: startItem }); //walk to first with fx nS7.walk(0); </script> </head> <body> <h2>Sample 7</h2> <div class="sample"> <div class="mask6"> <div id="box7"> <span><img src="img1.jpg" alt="Photo" /></span> <span><img src="img2.jpg" alt="Photo" /></span> <span><img src="img3.jpg" alt="Photo" /></span> <span><img src="img4.jpg" alt="Photo" /></span> <span><img src="img5.jpg" alt="Photo" /></span> <span><img src="img6.jpg" alt="Photo" /></span> <span><img src="img7.jpg" alt="Photo" /></span> <span><img src="img8.jpg" alt="Photo" /></span> </div> </div> <div id="thumbs7"> <div class="thumbs"> <div><img src="img1.jpg" alt="Photo Thumb" /></div> <div><img src="img2.jpg" alt="Photo Thumb" /></div> <div><img src="img3.jpg" alt="Photo Thumb" /></div> <div><img src="img4.jpg" alt="Photo Thumb" /></div> <div><img src="img5.jpg" alt="Photo Thumb" /></div> <div><img src="img6.jpg" alt="Photo Thumb" /></div> <div><img src="img7.jpg" alt="Photo Thumb" /></div> <div><img src="img8.jpg" alt="Photo Thumb" /></div> </div> <div id="thumbs_mask7"></div> <p id="thumbs_handles7"> <span></span> <span></span> <span></span> <span></span> <span></span> <span></span> <span></span> <span></span> </p> </div> </div> </body> </html>
Create an account or sign in to comment