ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JavaScript popup with dimensions of an image

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> JavaScript / DHTML / HTML / CSS
View previous topic :: View next topic  
Author Message
ItsMe



Joined: 07 Jan 2005
Posts: 1

PostPosted: Fri Jan 07, 2005 9:28 am    Post subject: JavaScript popup with dimensions of an image Reply with quote

Hello

I have written a simple ASP/database driven image gallery web application, but I need some help with JavaScript.

When the user clicks one of the thumbnails in my gallery, I open the full image in a new windows with JavaScript. My problem is that I don't know
what are the image's dimensions, before I open the JavaScript popup, hence I don't know what dimensions do I need for my popup.

In short I need a JavaScript function that opens a popup with dimensions depending on the image's size.

Any ideas?
_________________
It's me Smile
Back to top
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Mon Jan 10, 2005 12:23 pm    Post subject: Reply with quote

Hi,

We have an article showing how to resize your JavaScript popup depending on the image dimensions:

http://www.aspdev.org/articles/resize-popup-image-size/




Enjoy!
_________________
Peter
ASP & ASP.NET Articles and Tutorials
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> JavaScript / DHTML / HTML / CSS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group

SQL Tutorial