Salve a tutti e scusate, ma avrei bisogno di una mano , io vorrei creare una specie di slideshow di immagini in JQuery, ma non riesco a far funzionare i codici, qualcuno riesce a darmi una mano?
Questo è il contenuto della pagina.html
Questo è il contenuto del slideshow.js:Codice HTML:<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> <style> #contenitore{overflow:hidden; width:600px} #contenitore_interno{height:100px; width:1000px; overflow:hidden; position:relative} #contenitore_interno img{float:left; width:100px; height:100px} </style> <script href='slideshow.js'></script> </head> <body> <div id='contenitore'> <div id='contenitore_interno'> <img src='img/1.jpg' alt='1'> <img src='img/2.jpg' alt='2'> <img src='img/3.jpg' alt='3'> <img src='img/4.jpg' alt='4'> <img src='img/5.jpg' alt='5'> <img src='img/6.jpg' alt='6'> <img src='img/7.jpg' alt='7'> <img src='img/8.jpg' alt='8'> <img src='img/9.jpg' alt='9'> </div> </div> </body> </html>
Codice HTML:$('#contenitore_interno').toggle(function(){ var scrollAmount = $(this).width() - $(this).parent().width(); $(this).animate({'left':'-=' + scrollAmount}, 'slow'); }, function() { $(this).animate({'left':'0'}, 'slow'); });

LinkBack URL
About LinkBacks

