You are not logged in.

1

Wednesday, August 19th 2015, 6:52am

Fancybox

Hi Everyone,

I am trying to do a Fancybox, but I am having some issues calling the function.


This is the Java Script...

function openPopup(linktourl,w,h,type)
{
$.fancybox({
href : linktourl,
width: w,
height: h,
type : type,
padding : 5
});
}

This the XML

<hotspot name="iframe"
url="coral_thumb.jpg"
ath="0" atv="0"
distorted="true"
onclick="js(openPopup('iframe.html', 800, 360, 'iframe'));"
/>