photo popup that changes size depending on pic?

G

Guest

I have a database that changes every week. On the home page of the site I am working on (for a newspaper) there are photos (thumbnails if you will.) Now...the links for the photos come from a database and they change EVERY WEEK.

I would like a popup window that will display the image in full size. No bars, no nothing. Just the photo. Now, I have Jimco Spawn but I have to input a size every time and since the size of the pic sizes changes in dimensions (both horz and vert) every week, I cannot use this.

Anybody have any ideas? It would be greatly appreciated. I am not a good coder, just so you know.
 
T

Thomas A. Rowe

Store the height and width values in the database and then replace the current hard coded values for
height and width value at the same time you call the image in the code generated by Spawn.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Tokey666 said:
I have a database that changes every week. On the home page of the site I am working on (for a
newspaper) there are photos (thumbnails if you will.) Now...the links for the photos come from a
database and they change EVERY WEEK.
I would like a popup window that will display the image in full size. No bars, no nothing. Just
the photo. Now, I have Jimco Spawn but I have to input a size every time and since the size of the
pic sizes changes in dimensions (both horz and vert) every week, I cannot use this.
 
G

Guest

Good idea. But now the problem I would have is getting the height and width of the photos TO the database using a script of some sort.

This seems like a good deal of work. It would definately work though if I had to patience to do it.

Any other suggestions, just in case?

Thanks Thomas.
 
T

Thomas A. Rowe

How are the images currently referenced from the database now, how does this info get into the
database?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Tokey666 said:
Good idea. But now the problem I would have is getting the height and width of the photos TO the
database using a script of some sort.
 
J

Jens Peter Karlsen[FP-MVP]

You must know the size of the picture in order to size the window so it
fits.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: Tokey666 [mailto:[email protected]]
Posted At: 18. juli 2004 03:12
Posted To: microsoft.public.frontpage.client
Conversation: photo popup that changes size depending on pic?
Subject: photo popup that changes size depending on pic?


I have a database that changes every week. On the home page of the site
I am working on (for a newspaper) there are photos (thumbnails if you
will.) Now...the links for the photos come from a database and they
change EVERY WEEK.

I would like a popup window that will display the image in full size. No
bars, no nothing. Just the photo. Now, I have Jimco Spawn but I have to
input a size every time and since the size of the pic sizes changes in
dimensions (both horz and vert) every week, I cannot use this.

Anybody have any ideas? It would be greatly appreciated. I am not a
good coder, just so you know.
 
G

Guest

Oh no. Ready for a long story?

First off, I could not get the frontpage upload componant to ever upload a picture. There is a problem with the server, but the people who "work" at the server do not know anything about it. blah blah blah.....

SO.... all i do is upload the pic via web FTP to a Photos folder ...and then in a form, I ask for the picture's name with extension.

So, I create a Database results region on the page, insert a picture in there. Then change the parameters of the picture source and insert the field value.
I then resize the picture making the width = 210.

Thanks again.
 
T

Thomas A. Rowe

Well, you would have to check the width and height of each image before you upload via FTP to the
live server, then enter those values into the database, or if you all photos will always be larger
than a certain width, then you could do the same as you currently do with the thumbnail, set the
width value to 400 pixels, let say, then allow scrollbars.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Tokey666 said:
Oh no. Ready for a long story?

First off, I could not get the frontpage upload componant to ever upload a picture. There is a
problem with the server, but the people who "work" at the server do not know anything about it. blah
blah blah.....
SO.... all i do is upload the pic via web FTP to a Photos folder ...and then in a form, I ask for
the picture's name with extension.
So, I create a Database results region on the page, insert a picture in there. Then change the
parameters of the picture source and insert the field value.
 
G

Guest

Thats what I was thinking. Finding the picture size is a real inconvenience and I don't believe the people who want this are going to go for that. I know it can be done, but requires javascript and whatnot.. An adventure I would rather not take.

Anyway, thanks again for the help.
 
T

Thomas A. Rowe

When they provide the photo each time, are the photos basically the same sizes?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Tokey666 said:
Thats what I was thinking. Finding the picture size is a real inconvenience and I don't believe
the people who want this are going to go for that. I know it can be done, but requires javascript
and whatnot.. An adventure I would rather not take.
Anyway, thanks again for the help.




Jens Peter Karlsen said:
You must know the size of the picture in order to size the window so it
fits.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: Tokey666 [mailto:[email protected]]
Posted At: 18. juli 2004 03:12
Posted To: microsoft.public.frontpage.client
Conversation: photo popup that changes size depending on pic?
Subject: photo popup that changes size depending on pic?


I have a database that changes every week. On the home page of the site
I am working on (for a newspaper) there are photos (thumbnails if you
will.) Now...the links for the photos come from a database and they
change EVERY WEEK.

I would like a popup window that will display the image in full size. No
bars, no nothing. Just the photo. Now, I have Jimco Spawn but I have to
input a size every time and since the size of the pic sizes changes in
dimensions (both horz and vert) every week, I cannot use this.

Anybody have any ideas? It would be greatly appreciated. I am not a
good coder, just so you know.
 
G

Guest

No not really. Sometimes they are verticle and sometimes they are horizontal. Meaining at one point, they are 400 pixels wide and then at others they are only 150. So it depends.

Thomas A. Rowe said:
When they provide the photo each time, are the photos basically the same sizes?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Tokey666 said:
Thats what I was thinking. Finding the picture size is a real inconvenience and I don't believe
the people who want this are going to go for that. I know it can be done, but requires javascript
and whatnot.. An adventure I would rather not take.
Anyway, thanks again for the help.




Jens Peter Karlsen said:
You must know the size of the picture in order to size the window so it
fits.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: Tokey666 [mailto:[email protected]]
Posted At: 18. juli 2004 03:12
Posted To: microsoft.public.frontpage.client
Conversation: photo popup that changes size depending on pic?
Subject: photo popup that changes size depending on pic?


I have a database that changes every week. On the home page of the site
I am working on (for a newspaper) there are photos (thumbnails if you
will.) Now...the links for the photos come from a database and they
change EVERY WEEK.

I would like a popup window that will display the image in full size. No
bars, no nothing. Just the photo. Now, I have Jimco Spawn but I have to
input a size every time and since the size of the pic sizes changes in
dimensions (both horz and vert) every week, I cannot use this.

Anybody have any ideas? It would be greatly appreciated. I am not a
good coder, just so you know.
 
T

Thomas A. Rowe

Ok, I can't think of any additional solutions.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Tokey666 said:
No not really. Sometimes they are verticle and sometimes they are horizontal. Meaining at one
point, they are 400 pixels wide and then at others they are only 150. So it depends.
Thomas A. Rowe said:
When they provide the photo each time, are the photos basically the same sizes?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

Tokey666 said:
Thats what I was thinking. Finding the picture size is a real inconvenience and I don't
believe
the people who want this are going to go for that. I know it can be done, but requires javascript
and whatnot.. An adventure I would rather not take.
Anyway, thanks again for the help.




:

You must know the size of the picture in order to size the window so it
fits.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

-----Original Message-----
From: Tokey666 [mailto:[email protected]]
Posted At: 18. juli 2004 03:12
Posted To: microsoft.public.frontpage.client
Conversation: photo popup that changes size depending on pic?
Subject: photo popup that changes size depending on pic?


I have a database that changes every week. On the home page of the site
I am working on (for a newspaper) there are photos (thumbnails if you
will.) Now...the links for the photos come from a database and they
change EVERY WEEK.

I would like a popup window that will display the image in full size. No
bars, no nothing. Just the photo. Now, I have Jimco Spawn but I have to
input a size every time and since the size of the pic sizes changes in
dimensions (both horz and vert) every week, I cannot use this.

Anybody have any ideas? It would be greatly appreciated. I am not a
good coder, just so you know.
 
C

chris leeds

there's a great example of what you want to do on www.sitepoint.com
I think it's called gallery pop-up but you'll find it if you use the site's
internal search.

HTH

--
Chris Leeds,
Microsoft MVP FrontPage

The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--


Tokey666 said:
I have a database that changes every week. On the home page of the site I
am working on (for a newspaper) there are photos (thumbnails if you will.)
Now...the links for the photos come from a database and they change EVERY
WEEK.
I would like a popup window that will display the image in full size. No
bars, no nothing. Just the photo. Now, I have Jimco Spawn but I have to
input a size every time and since the size of the pic sizes changes in
dimensions (both horz and vert) every week, I cannot use this.
Anybody have any ideas? It would be greatly appreciated. I am not a good
coder, just so you know.
 
C

chris leeds

Cool!
I guess it's always good to look at threads that look like they're done. ;-)

--
Chris Leeds,
Microsoft MVP FrontPage

The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top