I would like to use fancybox as an Error and Success Message indication withouth clicking on a link.
Scenario:
A user fills out an HTML form and if some things are wrong, they see a fancybox image that is an Error. If they filled out the HTML form correctly, they see a fancybox image that is a Success message.
I am close to getting this working, but there is a bug where the image does not show up as a fancybox, it is just the image on a blank white page.
Here is my Code. These includes are in the correct directories.