Dynadot โ€” .com Transfer

Popup Window

SpaceshipSpaceship
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.
AfternicAfternic
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 TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Live Options
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back