Hi @bugada, I need more help, my knolgement in javascript is very poor.
I try reconstruct all the script but the result is not good, so, I need a help, realy!
If nobody helps with @bugada script (I really believe is a good script, I test in my server and work), I like to show what is my idea:
1 - Javascript detect screen resolution, and made a script for when I call the code of the box, box appear in the center. I don't know do that script, and worst, I don't know how I connect the variables to the box.
Help me with your code, or somebody give me a new idea for put the box in the center of the screen.
Regards, JC
Main Topics
Browse All Topics





by: bugadaPosted on 2009-05-06 at 16:32:39ID: 24320979
This sample page contains the javascript that show how to center a div in the screen or in the visible area of the browser (without toolbars).
You can easily adapt it to your needs.
Remember that it works if the div dimensions are set by the stylesheet.
Select allOpen in new window