I have managed to make all Fancybox JS work by including the initialise code on every page however when I do this for the Nivoslider on the pages below, it does not work. The slider will work on first load but if you navigate away from the page and go back it will not.
Try adding $('#slider').nivoSlider({effect:'fade'}); somewhere in the page (Probably the header). This code turns your #slider div into a nivoSlider. Right now this code is only in dynamicpage.js, so it only runs when there is a hashtag in the url. But it sounds like you want it to run regardless. Hope that works for ya! By the way, nice looking site!
Hello,
I am using AJAX to load each page on this website: http://medicalfutures.co.uk.s156312.gridserver.com/index.php
I have managed to make all Fancybox JS work by including the initialise code on every page however when I do this for the Nivoslider on the pages below, it does not work. The slider will work on first load but if you navigate away from the page and go back it will not.
http://medicalfutures.co.uk.s156312.gridserver.com/sir-james-black.php
http://medicalfutures.co.uk.s156312.gridserver.com/archie-brain.php
http://medicalfutures.co.uk.s156312.gridserver.com/rodney-perkins.php
Any ideas?
Dont worry just needed to add it to my hashchange file!
Try adding
$('#slider').nivoSlider({effect:'fade'});somewhere in the page (Probably the header). This code turns your #slider div into a nivoSlider. Right now this code is only in dynamicpage.js, so it only runs when there is a hashtag in the url. But it sounds like you want it to run regardless. Hope that works for ya! By the way, nice looking site!Ah awesome! Thanks
Beautiful Site!