Thread: jquery gallery
View Single Post
Old 01-09-2013, 04:32 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,587
Thanks: 5
Thanked 864 Times in 841 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
init is the function you created after the document.ready. It just says “run the function called ‘init’ when the DOM is ready”, you could as well write it like:
PHP Code:
$(document).ready(function() {
  $(
'.class').cycle();
}); 
Which is the usual way it’s done. But there’s even a shortcut for this, just write:
PHP Code:
$(function() {
  
// JS code here
}); 
Now, in order to tell you why your slideshow isn’t working we need to see your HTML, too. What does the JS error console say?
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Users who have thanked VIPStephan for this post:
edgich (01-12-2013)