Hello
I have a marquee on my page with this code:
and then i have a slideshow with this code:Code:<script type="text/javascript" src="marquee/scroll.js"></script> <script type="text/javascript"> (function(){ window.addEvent('domready',function(){ var jvnewintro = $$('.scroll-intro')[0]; if(!jvnewintro) return; jvnewintro.setStyle('overflow','hidden'); var fx = new Fx.Scroll(jvnewintro), delay = 3000 ; var step = function(){ setTimeout(function(){ var toTop = jvnewintro.scrollTop + 50; if(toTop >= jvnewintro.scrollHeight - jvnewintro.getStyle('height').toInt() + 50) toTop = 0; fx.scrollTo(0,toTop).chain(function(){ step(); }); },delay); } step(); }); })(); </script>
when i put them together, only the one that is first works, no matter which one it is.Code:<script type="text/javascript" src="scripts/jquery.js"></script> <script type="text/javascript" src="scripts/jquery.slideshow.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#slideshow').slideshow({ timeout: 5000, type: 'sequence', pauselink: 'pause1', pausecallback: function(self){ self.html('Play') }, playcallback: function(self){ self.html('Pause'); } }); }); function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } </script>
How can i make them both work together on the page ? I am searching for the answer but can't seem to find exactly what i need.
please help thanks.



Reply With Quote

Bookmarks