Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Popup Window

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
Nice Xrvel :) !
 
0
Close
Appreciate that, however, can that be used within a normal HTML page?
 
0
Close
Hi,

yes, but may be you can post your old popup javascript here. :tu:
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back