Quite often we wish that a particular link in our Blog or website must open in a new Window or a Tab, so that we don’t loose our traffic(Website visitors). But links within the same domain or even links to other domains open in Same window. We(Bloggers/Podcasters) are at loss because of such loss of traffic. Also, many of the web-pages opening in new windows are blocked by Pop-Up Blockers. So what can be done to open links to Websites, Images, etc in a new window without getting blocked by pop-up blockers?
A small 22kb script allows you to open a new browser window inside a window, for images, webpages and much more. The best thing is that this script is immune to Pop-up Blockers. But it should be noted that Web-Surfers hate pop-ups, so use this script sparingly. This script has a very simple and fast installation process and Also you can easily alter its style(appearance) as it is controlled through CSS.
Append following to your header section. GB_ROOT_DIR is the URL where static files are located:
var GB_ROOT_DIR = "http://mydomain.com/greybox/";
GB_ROOT_DIR should be absolute.
Append also following scripts and one stylesheet:
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" />
AJS_fx.js is optional. It’s used for effects.
You are ready to use GreyBox. Look on the documentation to see details and examples.
For more information Visit GreyBox At Orangoo Labs