Hi,
We manage to open a link in a new tab from unity through the use of jslib:
var OpenWindowPlugin = {
openWindow: function(link)
{
var url = Pointer_stringify(link);
document.onmouseup = function()
{
window.open(url);
document.onmouseup = null;
}
}
};
mergeInto(LibraryManager.library, OpenWindowPlugin);
We need to open viimeo movies in a lighbox/colorbox though, instead of a new tab.
Any suggestions?
we put the following instead of window.open :
$.colorbox({iframe: true, href: elementURL, innerWidth: 645, innerHeight: 509});
But we get an error in the browser saying reference $ is not defined.
Any helping hands on this, seamingly, easy challenge?
thnx
sven![alt text][1]
[1]: /storage/temp/176082-image.png
↧