- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › integrate Slideshow into a .js file, works on codepen
I have tried this great slideshow script by Mark Lee and adapted to my own site and it works fine in codepen: http://codepen.io/GroovyMotion/pen/ufasG
So, I copy/pasted the .js and created a file called diy-slideshow.js that I link in the html head but the code simply doesn’t work! I tried to just copy/paste the code and do it as an inline script and still no go!
Thanks in advance!
edit those are the tags I have in my html page: <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="js/diy-slideshow.js" type="text/javascript"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.touchswipe/1.6.4/jquery.touchSwipe.js"></script>
Unfortunately, no luck when trying with 1.10!
It’s weird, I just put all the code in a jsbin and it works! So it has to do with the way I call my js file!
Here is the link: http://groovymotion.com/PageStyle_slideshow.html
Here is a link to the jsbin: http://jsbin.com/yeququyi/1/edit?html,css,js,output
Wow your great! Thanks a lot! I am still new to js and jquery! :)
Now I just have to figure out why it doesn’t start by itself