abed akhi

abed akhi

  • NA
  • 57
  • 29.3k

javascript is not working while adding routing

Oct 13 2012 10:39 AM
hi,

I am using some javascripts to make a scrollhorz slideshow but my scripts are not working when I have a routed url which means a url that does not really exist it routes to a webpage I think that I must fix my source but I don't know how I added ../ and ~/ at the begining of the source url but that did not work please help:

<script src="jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery.cycle.all.latest.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
$('#slide').cycle({
fx:'scrollHorz', //or scrollhorz to scroll them horizontally
speed: 3000, /*precise the time that takes a slide to scroll to the left so speed:100 is faster than speed:1000*/
timeout: 3000 /*in millisecond*/

});
});

</script>


thanks.

Answers (5)