RSS

Get popup center

06 Aug

function get_popup_center(popurl)
{

var top = (screen.availHeight/2)-61;
var left = (screen.availWidth/2)-150;
var width = 300;
var height = 150;
//var popurl = ‘http://www.svnlabs.com’;

var oWin = popUp(popurl, top, left, width, height);

}

function popUp(URL, top, left, width, height)
{
day = new Date();
id = day.getTime();

eval(“page” + id + ” = window.open(‘”+URL+”‘, ‘” + id + “‘,’toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=”+width+”,
height=”+height+”,top=”+top+”,left=”+left+”‘);”);
return “page” + id;
}

Advertisements
 
5 Comments

Posted by on August 6, 2009 in javascript, LAMP, php, Tips, Tricks

 

Tags: , ,

5 responses to “Get popup center

  1. looninons

    September 10, 2009 at 1:48 am

    Oh, so gald to see your views about acai berry,I’m also looking for acai supplements. I found a lots of websites online.
    and i have read some other idea about :acai berry,extreme acai berry,acai berry product,acai berry supplement,
    acai pills,extreme acai berry,acai berry diet.
    There are also some review sites about acai berry diet, are they true or not?
    Anyway, I’ll try acai soon.

     
  2. mcdonalds coupons

    September 14, 2009 at 5:39 am

    Thanks much for this wonderful blog post.

     
  3. discodaug

    September 19, 2009 at 4:39 am

    hello,

    Thank you for the great quality of your website, each time i come here, i’m amazed.

    I would like to invite you to discover the real black hattitude.
    will find a lot of tricks dealing with the black hattitude,

    You can buy some black hattitude, rent black hattitude, steal black hattitude, or find
    the ultimate black hattitude on our sites ofblack hattitude.

    have a nice day,

    John McCormick

    black hattitude

    you’ll find here also some good black hattitude

     
  4. James Fish

    November 28, 2009 at 12:44 am

    Really nice posts. I will be checking back here regularly.

     
  5. competitive intelligence

    December 3, 2009 at 1:28 am

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: