Executing Thickbox (or Facebox) for a link

Modules, Add-ons and custom code that's more than just a quick hack or Mod.
Post Reply
mipra
Posts: 23
Joined: Fri Sep 03, 2010 7:08 pm

Executing Thickbox (or Facebox) for a link

Post by mipra »

Hello All
I am trying to use thickbox (comes with interspire) or facebox (http://defunkt.io/facebox/) to display my link rather than a simple popup box such as bellow:

<a href="/example.html" onclick="window.open('/example.html','','left='+(screen.availWidth/2-479)+',top='+(screen.availHeight/2-276)+'');return false;"><img src="/images/image.png"></a>

I would prefer using thickbox rather than loading another facebox script. However, can anybody point me out how to do this when I put a simple link in any part of the website?

Thank You
Post Reply