I have a javascript that uses jquery objects to do a number of things
first it finds images that are in a table adding these to a Fancybox gallery. This gallery has the Helper buttons allowing the original image to be seen in it's full size.
Secondly it finds tables that are wider than the holding div and reduces the text font size so it fits. Adding a make bigger button so the table can be seen in all it's glory within a fancybox.
I'm new to Wordpress and am struggling to understand the following
- Do i need to link to jquery.ui.js & css the way you do in a html document?
Where to put the code, Do i link it in the header.php or as a addition to the Fancybox plugin?
How do you make a Jquery object as this doesn't work
$(document).ready(function() { $("table").each(function() // do stuff alert ("hello Holly"); )};
How do you add the Fancybox helper buttons?
$(document).ready(function() { $(".fancybox-button").fancybox({ prevEffect : 'none', nextEffect : 'none', closeBtn : false, helpers : { buttons : {} } });
});
Thanx for your help