473,657 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JavaScript photo album for my website...pleas e point me in the right direction.

Hello all.

I have a family website that I have been maintaining for the past year
and a half or so. It includes a photo album that has grown quite
large. So far I've displayed the photo album using frames, with
thumbnails on the left side of the screen and full-size images
displayed on the right.

But now I'm sick of frames and I'd like to use javascript to make the
whole shebang cleaner and tighter. I'd like to use a table, basically
with a cell containing a "column" of thumbnails on the left, then a
cell to display the full-size photos on the right, similar in
appearance and functionality to the frames version. So far I've
gotten to the point that I can click on any thumbnail and display the
corresponding image in the cell on the right by changing the src
attribute.

The problem is that the thumbnail cell is often longer than the screen
is tall, and so must be scrolled. This, of course scrolls the
full-sized image as well.

Here's the problematic page:
http://www.texasellis.com/albumjs.htm

How can I display the full size image so that it stays vertically
centered in the window, regardless of the window being scrolled up or
down by the user?

I'd prefer not to use a popup window. I'd like the image to just sort
of 'float' on the screen at the desired position. I imagine this
being similar to those obnoxious advertisements I've seen on other
websites that float up and down as you scroll the web page up and
down, always staying in view.

Thanks for any help. I'm willing to do the research and learning on
my own...I just don't know where to look. Any suggestions or nudges
would be greatly appreciated.

Joseph

P.S. I'm moderately familiar with Perl. I intend to eventually use
Perl to generate the thumbnail pages on the fly. I just need to work
out the javascript bit first.
Jul 20 '05 #1
5 6538
TK
Hi Joseph,

While you'll be sticking only up to simple table structure, you won't be
able to solve your problem, because TD tags cannot have own scroll bars.
Rather there are some options for you.

1. Go back to the frame version.
2. Minimize the number of thumbnail on a page. Then put "Next 10 photos"
button on somewhere on the left pane.
3. Make full-size photo area be a "floating box". Meaning that dynamically
re-position right-side photo-box with custom event handler for
window.onscroll and appropreate stylesheet setting.

I think the first option is the simplest way if you will generate your page
by server side application. However, if you never want to have frames, the
second option will be an acceptable detour. The third option, your page
might be more complicated than the frame version.

Well, what's going on the frame version? If you show me, I might be able to
speak more futher.

TK
Jul 20 '05 #2
On Wed, 13 Aug 2003 12:06:54 +0900, "TK" <tk*******@hotm ail.com>
wrote:
Hi Joseph,

While you'll be sticking only up to simple table structure, you won't be
able to solve your problem, because TD tags cannot have own scroll bars.
Rather there are some options for you.

1. Go back to the frame version.
2. Minimize the number of thumbnail on a page. Then put "Next 10 photos"
button on somewhere on the left pane.
3. Make full-size photo area be a "floating box". Meaning that dynamically
re-position right-side photo-box with custom event handler for
window.onscrol l and appropreate stylesheet setting.
Thank you for your input! I'll consider those options - #3 seems to
be exactly what I was thinking of doing. I'd like to do the
javascript thing just for the sake of learning more about javascript,
really. I like complexity, in a simplistic sort of way. I've also
been wanting to learn more about CSS positioning (I assume that's what
you're referring to in option #3 above - ?). I have a book about it,
but haven't delved too deeply into it as of yet.
I think the first option is the simplest way if you will generate your page
by server side application. However, if you never want to have frames, the
second option will be an acceptable detour. The third option, your page
might be more complicated than the frame version.

Well, what's going on the frame version? If you show me, I might be able to
speak more futher.

TK


There's nothing necessarily wrong with the frames version, other than
the fact that I'm itching for a change and I don't much like frames
anyway. If you'd like to have a look, though, it's accessible from my
website at:

http://www.texasellis.com
(click on Photo Albums)

Or just go there directly:
http://www.texasellis.com/album.htm

Again, thank you so much for your input. I'll read up on
window.onscroll and related methods, and start reading more about CSS.
Can you suggest any other topics to research?

Thanks so much.
Joseph
Jul 20 '05 #3
TK
> http://www.texasellis.com
(click on Photo Albums)

Or just go there directly:
http://www.texasellis.com/album.htm
What a cool job you done! Well odered, unique design and small data. I like
it very much.

Again, thank you so much for your input. I'll read up on
window.onscroll and related methods, and start reading more about CSS.
Can you suggest any other topics to research?


Scripting with Stylesheet technique is kinda easy things for you. I do bet
it.
Also if you'd have any specific difficulties with them, I'll happy to help
you in this NG. It's my pleasure to help every nice daddy like you.

Good luck.
TK

Jul 20 '05 #4
On Wed, 13 Aug 2003 19:55:41 +0900, "TK" <tk*******@hotm ail.com>
wrote:
http://www.texasellis.com
(click on Photo Albums)

Or just go there directly:
http://www.texasellis.com/album.htm
What a cool job you done! Well odered, unique design and small data. I like
it very much.

Again, thank you so much for your input. I'll read up on
window.onscroll and related methods, and start reading more about CSS.
Can you suggest any other topics to research?


Scripting with Stylesheet technique is kinda easy things for you. I do bet
it.
Also if you'd have any specific difficulties with them, I'll happy to help
you in this NG. It's my pleasure to help every nice daddy like you.


Hehe. Thanks so much. It's good to find a truly nice person in
usenet.

Good luck.
TK


I'll read up on those topics over the next few days, and if I do run
into any trouble, I'll send up the flag, so to speak.

Thanks again for your suggestions.

Have good days.
Joseph
Jul 20 '05 #5
Have a look at my site

www.continue.to/pics

I have just finished tweaking my javascript web album

you are welcom to copy the format

let me know if you need any assistance with setting yours up
email me nicklambuk'at'y ahoo.co.uk

obviously change the 'at' bit
"Joseph Ellis" <ja*******@hotm ail.com> wrote in message
news:am******** *************** *********@4ax.c om...
Hello all.

I have a family website that I have been maintaining for the past year
and a half or so. It includes a photo album that has grown quite
large. So far I've displayed the photo album using frames, with
thumbnails on the left side of the screen and full-size images
displayed on the right.

But now I'm sick of frames and I'd like to use javascript to make the
whole shebang cleaner and tighter. I'd like to use a table, basically
with a cell containing a "column" of thumbnails on the left, then a
cell to display the full-size photos on the right, similar in
appearance and functionality to the frames version. So far I've
gotten to the point that I can click on any thumbnail and display the
corresponding image in the cell on the right by changing the src
attribute.

The problem is that the thumbnail cell is often longer than the screen
is tall, and so must be scrolled. This, of course scrolls the
full-sized image as well.

Here's the problematic page:
http://www.texasellis.com/albumjs.htm

How can I display the full size image so that it stays vertically
centered in the window, regardless of the window being scrolled up or
down by the user?

I'd prefer not to use a popup window. I'd like the image to just sort
of 'float' on the screen at the desired position. I imagine this
being similar to those obnoxious advertisements I've seen on other
websites that float up and down as you scroll the web page up and
down, always staying in view.

Thanks for any help. I'm willing to do the research and learning on
my own...I just don't know where to look. Any suggestions or nudges
would be greatly appreciated.

Joseph

P.S. I'm moderately familiar with Perl. I intend to eventually use
Perl to generate the thumbnail pages on the fly. I just need to work
out the javascript bit first.

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2995
by: Nick | last post by:
I am building a photo album webpage and am not sure exactly how I should organize the database. Here's where Im at so far... I have one table called 'images' which contains the columns 'albumID', 'url', 'title', and 'description'. Then another table called 'albums' which contains the column 'name'. The part where I am having the most trouble is the 'images.albumID' column. Some photos should be placed in mutliple albums, so should the...
5
4264
by: fraser | last post by:
Hi, I have a photo gallery with cat photos here http://mouserspage.cjb.net From the beginning, I have been making each page of thumbnails, with a separate page for each photo, entirely in plain html. Since the number of photos I have has increased greatly, it becomes a long and tedious process to go through all the pages to edit the links (to newly added pages) and add in the new pages etc...
5
2050
by: TrvlOrm | last post by:
HI There, I have been struggling with JavaScript code for days now, and this is my last resort! Please help... I am trying to create a JavaScript slide show with links for Next Slide, Previous Slide and Home Slide. Is it possible for you to view my page and tell me what I am doing wrong. I have looked at this page for hours and can't figure it out, I
8
2112
by: Robertico | last post by:
Hi, I found a tutorial to create an oline photo album (php and mySQL). Great, but i'd like to add some user management and that's not in the tutorial :-)) So i'am looking for an example, tutorial, or what ever that explanes me how to use user management with php and mySQL. If this is not the right place for this question, please advice me fot a better place. Regards,
13
4342
by: Viken Karaguesian | last post by:
Hello everyone, Can anyone recommend a good online site to learn PHP? The W3Schools website is quite lacking - leaves much to be desired. I'm sure there are many places, but which ones are good? I currently run a site with an extensive photo gallery. Hundreds of photos. Right now I have a system which the thumbnails are laid out in a table. You click on a thumbnail and you see the full size picture. That full size picture is in its...
1
1673
by: eldridge.brian | last post by:
I am very new to php, but eagerly picking it up. Thanks in advance for any assistance. I have a site I am working on that uses "PHP frames" - url is like http://www.xyz.com/home.php?page=photo inside home.php are several case statements that then tell the webserver which page to load. I have been trying to create small 7 picture photo album in file photo.php. I want to have the thumbs appear at the top, then the main image in the...
22
5114
by: bevoldjling | last post by:
Hi ! I need some help in putting together a website for our family gathering. Although I'm still pretty "green", I don't think what I need requires terribly advanced skills ...except for one area that has me right baffled. I want to put up a photo album slideshow but I want to stay away from Flash & Javascript. It just seems that anytime I use them, somebody
2
3167
by: David Griffiths | last post by:
Hi All Using VB 2005 I have been tasked with creating simple Photo Album page on our local intranet server that can display Thumbnails and then the full picture once the thumbnail is clicked in a new window, if the full picture is open I would like to be able to move forward or backwards through the pictures without returning to the thumbnails.
0
8395
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8310
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8826
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6166
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4155
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.