Hi,
I'm using Fancybox to open a number of links from a menu and I wondered if there's a function to do this instead of writing out each one. I'm using:
$("#linkID").fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'fade',
'transitionOut' : 'fade'
});
And I was trying to use:
$(document).ready(function() {
function FancyBoxItemMenu(linkID){
$("#linkID").fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'fade',
'transitionOut' : 'fade'
});
};
On the menu item (an "a" tag) I used:
onClick="javascript:FancyBoxItemMenu(this.value);"
But that doesn't seem to do it and I think I'm close, but there's something I'm missing.
Thanks in advance, Steph