Hi
I am trying to implement a jquery image gallery like jqgalscroll, but I can't get it to work. If I set it up with a plain html file, it works.
Here is the required code http://benjaminsterling.com/jquery-jqgalscroll-photo-gallery
This is what I have tried in SS:
in /mysite/code/page.php
Requirements::javascript('mysite/javascript/jqgalscroll.js');
Requirements::javascript('http://code.jquery.com/jquery-latest.pack.js');
Requirements::css('mysite/css/jqGalScroll.css');
then I have put this function in /themes/mytheme/templates/page.ss
<script type="text/javascript">
$(document).ready(function() {
$('#demoOne').jqGalScroll();
});
</script>
and also tried to have it in my /mysite/code/page.php
Requirements::customScript("
(function($){
$(document).ready(function() {
$('#demoOne').jqGalScroll();
});
})(jQuery);
");
Anyone here see what I am doing wrong?