I have tested Javascript validation at testing website.
jQuery(document).ready(function()
{
jQuery("a.single_image").fancybox(
{
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'titlePosition': 'outside',
'overlayColor': '#000',
'overlayOpacity': 0.6
}
);
jQuery("a#videolink0").click(function()
{
jQuery.fancybox(
{
'padding': 0,
'autoScale': false,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'titlePosition': 'outside',
'overlayColor': '#eee',
'overlayOpacity': 0.4,
'title': this.title,
'width': 800,
'height': 550,
'href': this.href.replace(new RegExp("([0-9])", "i"), 'moogaloop.swf?clip_id=$1'),
'type': 'swf'
}
);
return false;
}
);
}
);
If I understand I have to put } after 0.6 but validation will show an error.
Error: SyntaxError: missing } after property list
Source Code:
'overlayOpacity': 0.6}
What is correct actually?