himesh Posted April 9, 2010 Share Posted April 9, 2010 I have downloaded and am trying to get photo slider to work but have been unsuccessful so far. This is what I have and am puzzled as to why it is not working as it is what they have in the example. <script type="text/javascript"> $(document).ready(function(){ //change the 'baseURL' to reflect the host and or path to your images FOTO.Slider.baseURL = 'http://himeshs.co.uk/Communicate/images/phoneimages/'; //set images by filling our bucket directly FOTO.Slider.bucket = { 'default': { 0: {'thumb': '<?php echo $row_viewproduct['thumb1']; ?>', 'main': '<?php echo $row_viewproduct['image4']; ?>'), 1: {'thumb': '<?php echo $row_viewproduct['thumb2']; ?>', 'main': '<?php echo $row_viewproduct['image4']; ?>'}, 2: {'thumb': '<?php echo $row_viewproduct['thumb3']; ?>', 'main': '<?php echo $row_viewproduct['image4']; ?>'), 3: {'thumb': '<?php echo $row_viewproduct['thumb4']; ?>', 'main': '<?php echo $row_viewproduct['image4']; ?>'} } }; }); </script> <script type="text/javascript"> $(document).ready(function(){ FOTO.Slider.reload('default'); }); </script> When I go to the debugger, it retrieves the image names fine but is unable to show them onscreen can anybody shed some light on this? Thanks Link to comment Share on other sites More sharing options...
jeffman Posted April 9, 2010 Share Posted April 9, 2010 Does your page link to jQuery somewhere? Link to comment Share on other sites More sharing options...
himesh Posted April 11, 2010 Author Share Posted April 11, 2010 Yup, I have this underneath my css. <script src="jquery-1.2.1.min.js" type="text/javascript"></script> <script src="menu.js" type="text/javascript"></script> <script src="photoslider.js" type="text/javascript"></script> Link to comment Share on other sites More sharing options...
jeffman Posted April 11, 2010 Share Posted April 11, 2010 Maybe you can get more help on a jquery forum. I'm sure people there deal with this stuff every day. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.