Help for pop-up div

Need help for pop-up div.

Page 1 of 1

1 Replies - 1486 Views - Last Post: 19 September 2008 - 05:57 AM

#1 mohsinsha  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 18-September 08

Help for pop-up div

Posted 18 September 2008 - 09:52 PM

I am done with pop-up div with the help of js. But the problem is when i call pop-up, it is poping-up at the place which I have given. I want it to be center of the screen. Is anyone have js to centralized the pop-up? please help...
Is This A Good Question/Topic? 0
  • +

Replies To: Help for pop-up div

#2 xerxes333  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 31
  • View blog
  • Posts: 504
  • Joined: 05-July 07

Re: Help for pop-up div

Posted 19 September 2008 - 05:57 AM

You need to get the window size and calculate the center of the screen and modify the top and left of the pop-up div accordingly. If you paste what code you have so far (for centering the div) we can help you more.

Some useful information would be to start by looking into the following:

Non-IE
innerWidth
innerHeight

IE
clientWidth
clientHeight
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1