Unstoppable Domains

Popup Window

Spaceship Spaceship
Watch

xtremeoff-road

Established Member
Impact
2
Ok this is an elementary question, however, I cannot seem to get it to work like I want it to.

I am using Dreamweaver CS3 and would like to set the page up so that when a thumbnail is clicked, another page the same size with no side bars, menus, etc. pops up.

Using the onClick behavior within Dreamweaver I can get the popup to work, however, I want it to center itself on the page as well as be the shrik or expand based on the full image size.

Any thoughts?

Thanks in advance!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
PHP:
pop_up_width = 300;
pop_up_height = 200;

screen_width = screen.width;
screen_height = screen.height;

popup_left = Math.floor( ( screen_width - pop_up_width ) / 2 );
popup_top = Math.floor( ( screen_height - pop_up_height ) / 2 );

// do normal pop up with left and top coordinates
 
Last edited:
0
•••
Nice Xrvel :) !
 
0
•••
Appreciate that, however, can that be used within a normal HTML page?
 
0
•••
Hi,

yes, but may be you can post your old popup javascript here. :tu:
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back